Méthode | Description | |
---|---|---|
addContent ( string $text ) : boolean | Unparsed, but relevant data. The data is added to every open tag. | |
can ( ) : boolean | This builder is always available. | |
endElement ( string $name ) : boolean | End of element event. | |
free ( ) | Frees up any references so as to allow the PHP garbage collection from unset() to work. | |
parse ( $response ) : SimplePage | Reads the raw content and send events into the page to be built. | |
startElement ( string $name, hash $attributes ) : boolean | Start of element event. Opens a new tag. |
Méthode | Description | |
---|---|---|
acceptFormEnd ( ) | Closes the most recently opened form. | |
acceptFormStart ( SimpleFormTag $tag ) | Opens a form. New widgets go here. | |
acceptFrame ( SimpleFrameTag $tag ) | Takes a single frame tag and stashes it in the current frame set. | |
acceptFramesetEnd ( ) | Closes the most recently opened frameset. | |
acceptFramesetStart ( SimpleFramesetTag $tag ) | Opens a frameset. A frameset may contain nested frameset tags. | |
acceptLabelEnd ( ) | Closes the most recently opened label. | |
acceptLabelStart ( SimpleFormTag $tag ) | Opens a label for a described widget. | |
acceptPageEnd ( ) | Marker for end of complete page. Any work in progress can now be closed. | |
acceptTag ( SimpleTag $tag ) | Adds a tag to the page. | |
addContentTagToOpenTags ( SimpleTag &$tag ) | Parsed data in tag form. | |
addContentToAllOpenTags ( string $text ) | Any content fills all currently open tags unless it is part of an option tag. | |
createPage ( $response ) : SimplePage | Creates an empty page. | |
createParser ( SimplePhpPageBuilder &$listener ) : SimpleSaxParser | Creates the parser used with the builder. | |
hasNamedTagOnOpenTagStack ( string $name ) : boolean | Test to see if there are any open tags awaiting closure that match the tag name. | |
isFormElement ( string $name ) : boolean | Tests to see if a tag is a possible form element. | |
isLoadingFrames ( ) : boolean | Test to see if in the middle of reading a frameset. | |
openTag ( SimpleTag $tag ) | Opens a tag for receiving content. |
protected acceptFormStart ( SimpleFormTag $tag ) | ||
$tag | SimpleFormTag | Tag to accept. |
protected acceptFrame ( SimpleFrameTag $tag ) | ||
$tag | SimpleFrameTag | Tag to accept. |
protected acceptFramesetEnd ( ) |
protected acceptFramesetStart ( SimpleFramesetTag $tag ) | ||
$tag | SimpleFramesetTag | Tag to accept. |
protected acceptLabelEnd ( ) |
protected acceptLabelStart ( SimpleFormTag $tag ) | ||
$tag | SimpleFormTag | Tag to accept. |
protected acceptPageEnd ( ) |
protected acceptTag ( SimpleTag $tag ) | ||
$tag | SimpleTag | Tag to accept. |
public addContent ( string $text ) : boolean | ||
$text | string | May include unparsed tags. |
Résultat | boolean | False on parse error. |
protected addContentTagToOpenTags ( SimpleTag &$tag ) | ||
$tag | SimpleTag | Option tags only. |
protected addContentToAllOpenTags ( string $text ) | ||
$text | string | May include unparsed tags. |
protected createPage ( $response ) : SimplePage | ||
Résultat | SimplePage | New unparsed page. |
protected createParser ( SimplePhpPageBuilder &$listener ) : SimpleSaxParser | ||
$listener | SimplePhpPageBuilder | Target of parser. |
Résultat | SimpleSaxParser | Parser to generate events for the builder. |
public endElement ( string $name ) : boolean | ||
$name | string | Element name. |
Résultat | boolean | False on parse error. |
public free ( ) |
protected hasNamedTagOnOpenTagStack ( string $name ) : boolean | ||
$name | string | Element name. |
Résultat | boolean | True if any are still open. |
protected isFormElement ( string $name ) : boolean | ||
$name | string | HTML element name. |
Résultat | boolean | True if form element. |
protected isLoadingFrames ( ) : boolean | ||
Résultat | boolean | True if inframeset. |
protected openTag ( SimpleTag $tag ) | ||
$tag | SimpleTag | New content tag. |
public parse ( $response ) : SimplePage | ||
$response | SimpleHttpResponse Fetched response. | |
Résultat | SimplePage | Newly parsed page. |
public startElement ( string $name, hash $attributes ) : boolean | ||
$name | string | Element name. |
$attributes | hash | Attributes without content are marked as true. |
Résultat | boolean | False on parse error. |