PHP 클래스 pQuery\HtmlParser

상속: extends HtmlParserBase
파일 보기 프로젝트 열기: tburry/pquery

공개 프로퍼티들

프로퍼티 타입 설명
$hierarchy array Current parsing hierarchy
$root DomNode Root object
$tags_selfclose array Tags that don't need closing tags

공개 메소드들

메소드 설명
__construct ( string $doc = '', integer $pos, DomNode $root = null ) 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

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( string $doc = '', integer $pos, DomNode $root = null )
$doc string Document to be tokenized
$pos integer Position to start parsing
$root DomNode Root node, null to auto create

__invoke() 공개 메소드

Class magic invoke method, performs {@link select()}
public __invoke ( $query = '*' ) : array
리턴 array

__toString() 공개 메소드

Class magic toString method, performs {@link DomNode::toString()}
public __toString ( ) : string
리턴 string

parse_all() 공개 메소드

public parse_all ( )

parse_asp() 공개 메소드

public parse_asp ( )

parse_cdata() 공개 메소드

public parse_cdata ( )

parse_comment() 공개 메소드

public parse_comment ( )

parse_conditional() 공개 메소드

public parse_conditional ( )

parse_doctype() 공개 메소드

public parse_doctype ( )

parse_hierarchy() 보호된 메소드

Updates the current hierarchy status and checks for correct opening/closing of tags
protected parse_hierarchy ( boolean $self_close = null )
$self_close boolean Is current tag self closing? Null to use {@link tags_selfclose}

parse_php() 공개 메소드

public parse_php ( )

parse_script() 공개 메소드

public parse_script ( )

parse_style() 공개 메소드

public parse_style ( )

parse_tag_default() 공개 메소드

public parse_tag_default ( )

parse_text() 공개 메소드

public parse_text ( )

select() 공개 메소드

Performs a css select query on the root node
또한 보기: DomNode::select()
public select ( $query = '*', $index = false, $recursive = true, $check_self = false ) : array
리턴 array

프로퍼티 상세

$hierarchy 공개적으로 프로퍼티

Current parsing hierarchy
public array $hierarchy
리턴 array

$root 공개적으로 프로퍼티

Root object
public DomNode,pquery $root
리턴 DomNode

$tags_selfclose 공개적으로 프로퍼티

Tags that don't need closing tags
public array $tags_selfclose
리턴 array