Overview

Namespaces

  • PHP
  • SimpleExcel
    • Enums
    • Parser
    • Spreadsheet
    • Writer

Classes

  • BaseParser
  • CSVParser
  • HTMLParser
  • JSONParser
  • TSVParser
  • XLSXParser
  • XMLParser

Interfaces

  • IParser
  • Overview
  • Namespace
  • Class
  • Tree

Class HTMLParser

SimpleExcel class for parsing HTML table

SimpleExcel\Parser\BaseParser implements SimpleExcel\Parser\IParser
Extended by SimpleExcel\Parser\HTMLParser implements SimpleExcel\Parser\IParser
Namespace: SimpleExcel\Parser
Package: SimpleExcel
Author: Faisalman
Located at Parser/HTMLParser.php
Methods summary
protected
# parseDOM( DOMDocument $html )

Process the loaded file/string

Process the loaded file/string

Parameters

$html
DOMDocument
$html DOMDocument object of HTML
public
# loadFile( string $file_path, array $options = NULL )

Load the HTML file to be parsed

Load the HTML file to be parsed

Parameters

$file_path
string
$file_path Path to HTML file
$options
array
$options Options

Implementation of

SimpleExcel\Parser\IParser::loadFile()
public
# loadString( string $str, array $options = NULL )

Load the string to be parsed

Load the string to be parsed

Parameters

$str
string
$str String with HTML format
$options
array
$options Options

Implementation of

SimpleExcel\Parser\IParser::loadString()
Methods inherited from SimpleExcel\Parser\BaseParser
__construct(), checkFile()
Properties summary
protected string $file_extension 'html'
#

Defines valid file extension

Defines valid file extension

Properties inherited from SimpleExcel\Parser\BaseParser
$workbook
API documentation generated by ApiGen 2.8.0