PHP 클래스 pQuery\HtmlParserBase

Functionality can be extended by overriding functions or adjusting the tag map. Document may contain small errors, the parser will try to recover and resume parsing.
상속: extends TokenizerBase
파일 보기 프로젝트 열기: tburry/pquery

공개 프로퍼티들

프로퍼티 타입 설명
$custom_char_map Map characters to match their tokens
$identifiers Sets HTML identifiers, tags/attributes are considered identifiers
$status array Status of the parser (tagname, closing tag, etc)
$tag_map Callback functions for certain tags

공개 메소드들

메소드 설명
__construct ( $doc = '', $pos )
parse_all ( ) : boolean Parse full document
parse_asp ( ) : boolean Parse asp tags
parse_attributes ( ) : boolean Parse attributes (names + value)
parse_cdata ( ) : boolean Parse cdata tag
parse_comment ( ) : boolean Parse comment tags
parse_conditional ( ) : boolean Parse conditional tags (+ all conditional tags inside)
parse_doctype ( ) : boolean Parse doctype tag
parse_php ( ) : boolean Parse php tags
parse_script ( ) : boolean Parse script tags
parse_style ( ) : boolean Parse style tags
parse_tag ( ) : boolean Parse tag
parse_tag_default ( ) : boolean Default callback for tags
parse_text ( ) Parse text between tags

보호된 메소드들

메소드 설명
parse_string ( ) : integer Parse a HTML string (attributes)

메소드 상세

__construct() 공개 메소드

public __construct ( $doc = '', $pos )

parse_all() 공개 메소드

Parse full document
public parse_all ( ) : boolean
리턴 boolean

parse_asp() 공개 메소드

Parse asp tags
public parse_asp ( ) : boolean
리턴 boolean

parse_attributes() 공개 메소드

Parse attributes (names + value)
public parse_attributes ( ) : boolean
리턴 boolean

parse_cdata() 공개 메소드

Parse cdata tag
public parse_cdata ( ) : boolean
리턴 boolean

parse_comment() 공개 메소드

Parse comment tags
public parse_comment ( ) : boolean
리턴 boolean

parse_conditional() 공개 메소드

Parse conditional tags (+ all conditional tags inside)
public parse_conditional ( ) : boolean
리턴 boolean

parse_doctype() 공개 메소드

Parse doctype tag
public parse_doctype ( ) : boolean
리턴 boolean

parse_php() 공개 메소드

Parse php tags
public parse_php ( ) : boolean
리턴 boolean

parse_script() 공개 메소드

Parse script tags
public parse_script ( ) : boolean
리턴 boolean

parse_string() 보호된 메소드

Parse a HTML string (attributes)
protected parse_string ( ) : integer
리턴 integer

parse_style() 공개 메소드

Parse style tags
public parse_style ( ) : boolean
리턴 boolean

parse_tag() 공개 메소드

Parse tag
public parse_tag ( ) : boolean
리턴 boolean

parse_tag_default() 공개 메소드

Default callback for tags
public parse_tag_default ( ) : boolean
리턴 boolean

parse_text() 공개 메소드

Parse text between tags
public parse_text ( )

프로퍼티 상세

$custom_char_map 공개적으로 프로퍼티

Map characters to match their tokens
또한 보기: TokenizerBase::$custom_char_map
public $custom_char_map

$identifiers 공개적으로 프로퍼티

Sets HTML identifiers, tags/attributes are considered identifiers
또한 보기: TokenizerBase::$identifiers
public $identifiers

$status 공개적으로 프로퍼티

Status of the parser (tagname, closing tag, etc)
public array $status
리턴 array

$tag_map 공개적으로 프로퍼티

Callback functions for certain tags
public $tag_map