Свойство | Тип | Описание | |
---|---|---|---|
$hierarchy | array | Current parsing hierarchy | |
$root | Root object | ||
$tags_selfclose | array | Tags that don't need closing tags |
Метод | Описание | |
---|---|---|
__construct ( string $doc = '', integer $pos, |
Class constructor | |
__invoke ( $query = '*' ) : array | Class magic invoke method, performs {@link select()} | |
__toString ( ) : string | Class magic toString method, performs {@link DomNode::toString()} | |
parse_all ( ) | ||
parse_asp ( ) | ||
parse_cdata ( ) | ||
parse_comment ( ) | ||
parse_conditional ( ) | ||
parse_doctype ( ) | ||
parse_php ( ) | ||
parse_script ( ) | ||
parse_style ( ) | ||
parse_tag_default ( ) | ||
parse_text ( ) | ||
select ( $query = '*', $index = false, $recursive = true, $check_self = false ) : array | Performs a css select query on the root node |
Метод | Описание | |
---|---|---|
parse_hierarchy ( boolean $self_close = null ) | Updates the current hierarchy status and checks for correct opening/closing of tags |
public __construct ( string $doc = '', integer $pos, |
||
$doc | string | Document to be tokenized |
$pos | integer | Position to start parsing |
$root | Root node, null to auto create |
public __toString ( ) : string | ||
Результат | string |
protected parse_hierarchy ( boolean $self_close = null ) | ||
$self_close | boolean | Is current tag self closing? Null to use {@link tags_selfclose} |
public array $tags_selfclose | ||
Результат | array |