Inheritance diagram for ilXMLResultSetParser:
Collaboration diagram for ilXMLResultSetParser:Public Member Functions | |
| ilXMLResultSetParser ($a_xml_data= '') | |
| Constructor. | |
| getXMLResultSet () | |
| setHandlers ($a_xml_parser) | |
| set event handlers | |
| handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
| handler for begin of element | |
| handlerEndTag ($a_xml_parser, $a_name) | |
| handler for end of element | |
| handlerCharacterData ($a_xml_parser, $a_data) | |
| handler for character data | |
Data Fields | |
| $xmlResultSet | |
Definition at line 40 of file class.ilXMLResultSetParser.php.
| ilXMLResultSetParser::getXMLResultSet | ( | ) |
Definition at line 55 of file class.ilXMLResultSetParser.php.
{
return $this->xmlResultSet;
}
| ilXMLResultSetParser::handlerBeginTag | ( | $ | a_xml_parser, | |
| $ | a_name, | |||
| $ | a_attribs | |||
| ) |
handler for begin of element
| resource | $a_xml_parser xml parser | |
| string | $a_name element name | |
| array | $a_attribs element attributes array |
Definition at line 81 of file class.ilXMLResultSetParser.php.
{
switch($a_name)
{
case 'result':
$this->xmlResultSet = new ilXMLResultSet();
break;
case 'colspecs':
break;
case 'colspec':
$this->xmlResultSet->addColumn ($a_attribs["idx"], $a_attribs["name"]);
break;
case 'row':
$this->currentRow = new ilXMLResultSetRow();
$this->xmlResultSet->addRow ($this->currentRow);
$this->colCounter = -1;
break;
case 'column':
$this->currentColumnIndex ++;
break;
}
}
| ilXMLResultSetParser::handlerCharacterData | ( | $ | a_xml_parser, | |
| $ | a_data | |||
| ) |
handler for character data
| resource | $a_xml_parser xml parser | |
| string | $a_data character data |
Definition at line 128 of file class.ilXMLResultSetParser.php.
{
if($a_data != "\n")
{
// Replace multiple tabs with one space
$a_data = preg_replace("/\t+/"," ",$a_data);
$this->cdata .= $a_data;
}
}
| ilXMLResultSetParser::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 112 of file class.ilXMLResultSetParser.php.
{
switch($a_name)
{
case 'column':
$this->currentRow->setValue ($this->currentColumnIndex, $this->cdata);
break;
}
}
| ilXMLResultSetParser::ilXMLResultSetParser | ( | $ | a_xml_data = '' |
) |
Constructor.
| string | $a_xml_data xml data public |
Definition at line 49 of file class.ilXMLResultSetParser.php.
References ilSaxParser::ilSaxParser(), and ilSaxParser::setXMLContent().
{
parent::ilSaxParser();
$this->setXMLContent($a_xml_data);
}
Here is the call graph for this function:| ilXMLResultSetParser::setHandlers | ( | $ | a_xml_parser | ) |
set event handlers
| resource | reference to the xml parser private |
Reimplemented from ilSaxParser.
Definition at line 66 of file class.ilXMLResultSetParser.php.
{
xml_set_object($a_xml_parser,$this);
xml_set_element_handler($a_xml_parser,'handlerBeginTag','handlerEndTag');
xml_set_character_data_handler($a_xml_parser,'handlerCharacterData');
}
| ilXMLResultSetParser::$xmlResultSet |
Definition at line 42 of file class.ilXMLResultSetParser.php.
1.7.1