Method |
Description |
|
__clone ( ) |
Clones all children too. |
|
__construct ( $name = NULL, $attrs = NULL ) |
|
|
__get ( $name ) : mixed |
Overloaded getter for element's attribute. |
|
__set ( $name, $value ) : void |
Overloaded setter for element's attribute. |
|
add ( $child ) : self |
Adds new element's child. |
|
count ( ) : integer |
Required by the Countable interface. |
|
create ( $name, $attrs = NULL ) : HtmlElement |
Creates and adds a new HtmlElement child. |
|
el ( $name = NULL, $attrs = NULL ) |
|
|
endTag ( ) : string |
Returns element's end tag. |
|
getChildren ( ) |
Returns all of children. |
|
getContentType ( ) : integer |
|
|
getIterator ( ) : ArrayIterator |
Required by the IteratorAggregate interface. |
|
getName ( ) : string |
Returns element's name. |
|
getText ( ) : string |
Gets element's textual content. |
|
href ( $path, $query = NULL ) : self |
Special setter for element's attribute. |
|
insert ( $index, $child, $replace = FALSE ) : self |
Inserts child node. |
|
isEmpty ( ) : boolean |
Is element empty? |
|
offsetExists ( $index ) : boolean |
Exists child node? (ArrayAccess implementation). |
|
offsetGet ( $index ) : mixed |
Returns child node (ArrayAccess implementation). |
|
offsetSet ( $index, $child ) : void |
Inserts (replaces) child node (ArrayAccess implementation). |
|
offsetUnset ( $index ) : void |
Removes child node (ArrayAccess implementation). |
|
parseBlock ( Texy $texy, $s, $indented = FALSE ) : void |
Parses text as block. |
|
parseLine ( Texy $texy, $s ) : void |
Parses text as single line. |
|
removeChildren ( ) : void |
Removed all children. |
|
setName ( $name, $empty = NULL ) : self |
Changes element's name. |
|
setText ( $text ) : self |
Sets element's textual content. |
|
startTag ( ) : string |
Returns element's start tag. |
|
toHtml ( Texy $texy ) : string |
Renders to final HTML. |
|
toString ( Texy $texy ) : string |
Renders element's start tag, content and end tag to internal string representation. |
|
toText ( Texy $texy ) : string |
Renders to final text. |
|
validateAttrs ( array $dtd ) : void |
|
|
validateChild ( $child, $dtd ) |
|
|