|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Controller class for sax element handlers. More...
Collaboration diagram for ilSaxController:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| setHandlers ($a_xml_parser) | |
| Set handlers. More... | |
| setDefaultElementHandler (ilSaxSubsetParser $a_default_parser) | |
| Set default element handler. More... | |
| setElementHandler (ilSaxSubsetParser $a_parser, $a_element) | |
| Set element handler by element name. More... | |
| handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
| Set default element handler. More... | |
| handlerEndTag ($a_xml_parser, $a_name) | |
| handler for end of element More... | |
| handlerCharacterData ($a_xml_parser, $a_data) | |
| handler for character data More... | |
Protected Attributes | |
| $default_handler = null | |
| $element_handlers = array() | |
| $handlers_in_use = array() | |
Controller class for sax element handlers.
Could be used to split the xml handling in different responsible classes. Use the methods addElementHandler, addDefaultElementHandler
Definition at line 35 of file class.ilSaxController.php.
| ilSaxController::__construct | ( | ) |
Constructor.
@access public
Definition at line 48 of file class.ilSaxController.php.
| ilSaxController::handlerBeginTag | ( | $a_xml_parser, | |
| $a_name, | |||
| $a_attribs | |||
| ) |
Set default element handler.
@access public
| string | xml element that triggers the handler call |
| object | object that parses the xmlsubset |
| string | method name default handlerBeginTag |
@access public
| resource | $a_xml_parser | xml parser |
| string | $a_name | element name |
| array | $a_attribs | element attributes array |
Definition at line 111 of file class.ilSaxController.php.
References $default_handler.
| ilSaxController::handlerCharacterData | ( | $a_xml_parser, | |
| $a_data | |||
| ) |
handler for character data
| resource | $a_xml_parser | xml parser |
| string | $a_data | character data |
Definition at line 159 of file class.ilSaxController.php.
| ilSaxController::handlerEndTag | ( | $a_xml_parser, | |
| $a_name | |||
| ) |
handler for end of element
| resource | $a_xml_parser | xml parser |
| string | $a_name | element name |
Definition at line 135 of file class.ilSaxController.php.
References $default_handler.
| ilSaxController::setDefaultElementHandler | ( | ilSaxSubsetParser | $a_default_parser | ) |
Set default element handler.
@access public
| object | object that parses the xmlsubset must implement interface ilSaxSubsetParser |
Definition at line 74 of file class.ilSaxController.php.
| ilSaxController::setElementHandler | ( | ilSaxSubsetParser | $a_parser, |
| $a_element | |||
| ) |
Set element handler by element name.
| string | element name that triggers the handler |
| object | object that parses the xmlsubset must implement interface ilSaxSubsetParser @access public |
Definition at line 87 of file class.ilSaxController.php.
| ilSaxController::setHandlers | ( | $a_xml_parser | ) |
Set handlers.
@access public
| resource | xml_parser instance |
Definition at line 59 of file class.ilSaxController.php.
|
protected |
Definition at line 37 of file class.ilSaxController.php.
Referenced by handlerBeginTag(), and handlerEndTag().
|
protected |
Definition at line 38 of file class.ilSaxController.php.
|
protected |
Definition at line 39 of file class.ilSaxController.php.