|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
The intention for this reader class, is to read past the end element. More...
Inheritance diagram for Sabre\Xml\Element\Eater:
Collaboration diagram for Sabre\Xml\Element\Eater:Public Member Functions | |
| xmlSerialize (Xml\Writer $writer) | |
| The serialize method is called during xml writing. More... | |
Public Member Functions inherited from Sabre\Xml\XmlSerializable | |
| xmlSerialize (Writer $writer) | |
| The xmlSerialize method is called during xml writing. More... | |
Static Public Member Functions | |
| static | xmlDeserialize (Xml\Reader $reader) |
| The deserialize method is called during xml parsing. More... | |
Static Public Member Functions inherited from Sabre\Xml\XmlDeserializable | |
| static | xmlDeserialize (Reader $reader) |
| The deserialize method is called during xml parsing. More... | |
The intention for this reader class, is to read past the end element.
This should trigger a ParseException
|
static |
The deserialize method is called during xml parsing.
This method is called statictly, this is because in theory this method may be used as a type of constructor, or factory method.
Often you want to return an instance of the current class, but you are free to return other data as well.
Important note 2: You are responsible for advancing the reader to the next element. Not doing anything will result in a never-ending loop.
If you just want to skip parsing for this element altogether, you can just call $reader->next();
$reader->parseSubTree() will parse the entire sub-tree, and advance to the next element.
| Xml\Reader | $reader |
Definition at line 61 of file Eater.php.
References $reader.
| Sabre\Xml\Element\Eater::xmlSerialize | ( | Xml\Writer | $writer | ) |
The serialize method is called during xml writing.
It should use the $writer argument to encode this object into Xml.
Important note: it is not needed to create the parent element. The parent element is already created, and we only have to worry about attributes, child elements and text (if any).
Important note 2: If you are writing any new elements, you are also responsible for closing them.
| Xml\Writer | $writer |
Definition at line 32 of file Eater.php.