ILIAS
Release_3_10_x_branch Revision 61812
|
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and implement their own handler methods. More...
Public Member Functions | |
ilSaxParser ($a_xml_file= '', $throwException=false) | |
Constructor setup ILIAS global object public. | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
startParsing () | |
stores xml data in array | |
createParser () | |
create parser | |
setOptions ($a_xml_parser) | |
set parser options | |
setHandlers ($a_xml_parser) | |
set event handler should be overwritten by inherited class private | |
openXMLFile () | |
open xml file | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file | |
freeParser ($a_xml_parser) | |
free xml parser handle | |
setThrowException ($throwException) | |
set error handling |
Data Fields | |
$input_type = null | |
$xml_content = '' | |
$ilias | |
$lng | |
$xml_file | |
$throwException = false |
Protected Member Functions | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle |
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and implement their own handler methods.
Definition at line 37 of file class.ilSaxParser.php.
ilSaxParser::createParser | ( | ) |
create parser
private
Definition at line 154 of file class.ilSaxParser.php.
References handleError().
Referenced by ilnetucateResponse\startParsing(), and startParsing().
ilSaxParser::freeParser | ( | $a_xml_parser | ) |
free xml parser handle
private
Definition at line 255 of file class.ilSaxParser.php.
Referenced by ilnetucateResponse\startParsing(), and startParsing().
ilSaxParser::getInputType | ( | ) |
Definition at line 114 of file class.ilSaxParser.php.
References $input_type.
Referenced by ilXMLChecker\parse(), SurveyImportParser\parse(), SurveyImportParserPre38\parse(), parse(), and startParsing().
ilSaxParser::getXMLContent | ( | ) |
Definition at line 109 of file class.ilSaxParser.php.
References $xml_content.
Referenced by ilXMLChecker\parse(), SurveyImportParser\parse(), SurveyImportParserPre38\parse(), and parse().
|
protected |
use given error handler to handle error message or internal ilias error message handle
string | $message | |
string | $code |
Definition at line 234 of file class.ilSaxParser.php.
Referenced by createParser(), openXMLFile(), parse(), and startParsing().
ilSaxParser::ilSaxParser | ( | $a_xml_file = '' , |
|
$throwException = false |
|||
) |
Constructor setup ILIAS global object public.
Definition at line 88 of file class.ilSaxParser.php.
References $ilias, $lng, and $throwException.
Referenced by ilCategoryImportParser\ilCategoryImportParser(), ilCopyWizardSettingsXMLParser\ilCopyWizardSettingsXMLParser(), ilExerciseXMLParser\ilExerciseXMLParser(), ilFileXMLParser\ilFileXMLParser(), ilForumImportParser\ilForumImportParser(), ilGroupXMLParser\ilGroupXMLParser(), ilMailImportParser\ilMailImportParser(), ilMDSaxParser\ilMDSaxParser(), ilnetucateResponse\ilnetucateResponse(), ilObjDefReader\ilObjDefReader(), ilObjectDefinition\ilObjectDefinition(), ilObjectXMLParser\ilObjectXMLParser(), ilPluginReader\ilPluginReader(), ilQTIParser\ilQTIParser(), ilSCORMPackageParser\ilSCORMPackageParser(), ilStyleDefinition\ilStyleDefinition(), ilStyleImportParser\ilStyleImportParser(), ilUserImportParser\ilUserImportParser(), ilXMLChecker\ilXMLChecker(), ilXMLResultSetParser\ilXMLResultSetParser(), SurveyImportParser\SurveyImportParser(), and SurveyImportParserPre38\SurveyImportParserPre38().
ilSaxParser::openXMLFile | ( | ) |
open xml file
private
Definition at line 187 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
ilSaxParser::parse | ( | $a_xml_parser, | |
$a_fp = null |
|||
) |
parse xml file
private
Reimplemented in SurveyImportParserPre38, SurveyImportParser, ilnetucateResponse, and ilXMLChecker.
Definition at line 200 of file class.ilSaxParser.php.
References $data, getInputType(), getXMLContent(), and handleError().
Referenced by startParsing().
ilSaxParser::setHandlers | ( | $a_xml_parser | ) |
set event handler should be overwritten by inherited class private
Reimplemented in ilObjectDefinition, ilUserImportParser, ilQTIParser, ilStyleDefinition, ilContObjParser, SurveyImportParserPre38, SurveyImportParser, ilFileXMLParser, ilMDSaxParser, ilExerciseXMLParser, ilnetucateResponse, ilGroupXMLParser, ilForumImportParser, ilCourseXMLParser, ilMailImportParser, ilSCORMPackageParser, ilXMLResultSetParser, ilXMLChecker, ilObjectXMLParser, ilCategoryImportParser, ilStyleImportParser, ilPluginReader, ilMDXMLCopier, ilServiceReader, ilModuleReader, ilObjDefReader, ilCopyWizardSettingsXMLParser, and ilMDXMLParser.
Definition at line 178 of file class.ilSaxParser.php.
Referenced by startParsing().
ilSaxParser::setOptions | ( | $a_xml_parser | ) |
set parser options
private
Definition at line 169 of file class.ilSaxParser.php.
Referenced by ilnetucateResponse\startParsing(), and startParsing().
ilSaxParser::setThrowException | ( | $throwException | ) |
set error handling
$error_handler |
Definition at line 268 of file class.ilSaxParser.php.
References $throwException.
ilSaxParser::setXMLContent | ( | $a_xml_content | ) |
Definition at line 103 of file class.ilSaxParser.php.
Referenced by ilCopyWizardSettingsXMLParser\ilCopyWizardSettingsXMLParser(), ilExerciseXMLParser\ilExerciseXMLParser(), ilFileXMLParser\ilFileXMLParser(), ilGroupXMLParser\ilGroupXMLParser(), ilMDXMLCopier\ilMDXMLCopier(), ilMDXMLParser\ilMDXMLParser(), ilObjectXMLParser\ilObjectXMLParser(), and ilXMLResultSetParser\ilXMLResultSetParser().
ilSaxParser::startParsing | ( | ) |
stores xml data in array
private
ilSaxParserException | or ILIAS Error |
Reimplemented in ilUserImportParser, ilQTIParser, ilContObjParser, SurveyImportParserPre38, SurveyImportParser, ilnetucateResponse, ilGroupXMLParser, ilForumImportParser, ilMailImportParser, ilSCORMPackageParser, ilXMLChecker, ilCategoryImportParser, ilStyleImportParser, and ilPluginReader.
Definition at line 125 of file class.ilSaxParser.php.
References createParser(), freeParser(), getInputType(), handleError(), openXMLFile(), parse(), setHandlers(), and setOptions().
Referenced by ilMD\cloneMD(), ilModuleReader\getModules(), ilServiceReader\getServices(), ilObjCourseGUI\importFileObject(), ilExerciseXMLParser\start(), and ilFileXMLParser\start().
ilSaxParser::$ilias |
Definition at line 61 of file class.ilSaxParser.php.
Referenced by ilGroupXMLParser\__assignMembers(), ilGroupXMLParser\__parseId(), ilCourseXMLParser\__parseId(), ilCategoryImportParser\handlerEndTag(), ilObjectDefinition\ilObjectDefinition(), ilSaxParser(), ilStyleDefinition\ilStyleDefinition(), ilUserImportParser\ilUserImportParser(), ilUserImportParser\importBeginTag(), and ilUserImportParser\importEndTag().
ilSaxParser::$input_type = null |
Definition at line 46 of file class.ilSaxParser.php.
Referenced by getInputType().
ilSaxParser::$lng |
Definition at line 68 of file class.ilSaxParser.php.
Referenced by ilUserImportParser\getProtocolAsHTML(), ilMDSaxParser\ilMDSaxParser(), ilSaxParser(), ilStyleImportParser\ilStyleImportParser(), ilUserImportParser\ilUserImportParser(), ilUserImportParser\importBeginTag(), ilUserImportParser\importEndTag(), ilUserImportParser\verifyBeginTag(), and ilUserImportParser\verifyEndTag().
ilSaxParser::$throwException = false |
Definition at line 82 of file class.ilSaxParser.php.
Referenced by ilObjectXMLParser\ilObjectXMLParser(), ilSaxParser(), and setThrowException().
ilSaxParser::$xml_content = '' |
Definition at line 54 of file class.ilSaxParser.php.
Referenced by getXMLContent().
ilSaxParser::$xml_file |
Definition at line 75 of file class.ilSaxParser.php.