|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilSaxParser:
Collaboration diagram for ilSaxParser:Public Member Functions | |
| __construct (?string $path_to_file='', ?bool $throw_exception=false) | |
| setXMLContent (string $a_xml_content) | |
| getXMLContent () | |
| getInputType () | |
| startParsing () | |
| stores xml data in array More... | |
| createParser () | |
| setHandlers ($a_xml_parser) | |
| parse ($a_xml_parser, $a_fp=null) | |
Data Fields | |
| string | $xml_file |
| bool | $throw_exception = false |
Protected Member Functions | |
| openXMLFile () | |
| handleError (string $message) | |
| setThrowException (bool $throw_exception) | |
Protected Attributes | |
| ilLanguage | $lng = null |
Private Member Functions | |
| setOptions ($a_xml_parser) | |
| freeParser ($a_xml_parser) | |
Private Attributes | |
| const | TYPE_FILE = 'file' |
| const | TYPE_STRING = 'string' |
| string | $input_type |
| XML-Content type 'file' or 'string' If you choose file set the filename in constructor If you choose 'String' call the constructor with no argument and use setXMLContent() More... | |
| string | $xml_content |
| XML-Content in case of content type 'string'. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and implement their own handler methods
Definition at line 25 of file class.ilSaxParser.php.
| ilSaxParser::__construct | ( | ?string | $path_to_file = '', |
| ?bool | $throw_exception = false |
||
| ) |
Definition at line 49 of file class.ilSaxParser.php.
References $DIC, $throw_exception, ILIAS\Repository\lng(), TYPE_FILE, and TYPE_STRING.
Here is the call graph for this function:| ilSaxParser::createParser | ( | ) |
| ilSaxParserException | or ILIAS Error |
Definition at line 118 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| resource | $a_xml_parser |
| ilSaxParserException |
Definition at line 198 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSaxParser::getInputType | ( | ) |
Definition at line 80 of file class.ilSaxParser.php.
References $input_type.
Referenced by SurveyImportParser\parse(), parse(), ilPluginReader\startParsing(), and startParsing().
Here is the caller graph for this function:| ilSaxParser::getXMLContent | ( | ) |
Definition at line 75 of file class.ilSaxParser.php.
References $xml_content.
Referenced by SurveyImportParser\parse(), and parse().
Here is the caller graph for this function:
|
protected |
| ilSaxParserException |
Definition at line 187 of file class.ilSaxParser.php.
References $message.
Referenced by createParser(), freeParser(), openXMLFile(), parse(), and startParsing().
Here is the caller graph for this function:
|
protected |
| ilSaxParserException |
Reimplemented in ilQTIParser.
Definition at line 143 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSaxParser::parse | ( | $a_xml_parser, | |
$a_fp = null |
|||
| ) |
| resource | $a_xml_parser | |
| resource | null | $a_fp |
| ilSaxParserException |
Reimplemented in SurveyImportParser.
Definition at line 156 of file class.ilSaxParser.php.
References $data, getInputType(), getXMLContent(), handleError(), TYPE_FILE, and TYPE_STRING.
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
| XMLParser | resource | $a_xml_parser |
Reimplemented in ilCategoryImportParser, ilCategoryXmlParser, ilChatroomXMLParser, ilCourseXMLParser, ilExerciseXMLParser, ilFileXMLParser, ilFolderXmlParser, ilForumXMLParser, ilGroupXMLParser, ilLearningSequenceXMLParser, ilSCORMPackageParser, SurveyImportParser, ilObjTestXMLParser, ilQuestionPageParser, ilTestResultsImportParser, ilTestSkillLevelThresholdXmlParser, ilObjQuestionPoolXMLParser, ilAssQuestionSkillAssignmentXmlParser, ilWebLinkXmlParser, ilAdvancedMDParser, ilAdvancedMDRecordParser, ilPluginReader, ilContainerReferenceXmlParser, ilDataSetImportParser, ilExportFileParser, ilManifestParser, ilMDSaxParser, ilQTIParser, ilStyleImportParser, ilUserImportParser, ilCopyWizardSettingsXMLParser, ilObjectXMLParser, ilSoapMailXmlParser, and ilXMLResultSetParser.
Referenced by startParsing().
Here is the caller graph for this function:
|
private |
Definition at line 128 of file class.ilSaxParser.php.
Referenced by startParsing().
Here is the caller graph for this function:
|
protected |
Definition at line 206 of file class.ilSaxParser.php.
References $throw_exception.
Referenced by ilFolderXmlParser\__construct(), ilWebLinkXmlParser\__construct(), and ilSoapMailXmlParser\__construct().
Here is the caller graph for this function:| ilSaxParser::setXMLContent | ( | string | $a_xml_content | ) |
Reimplemented in ilQTIParser.
Definition at line 69 of file class.ilSaxParser.php.
References TYPE_STRING.
Referenced by ilMDXMLCopier\__construct(), ilChatroomXMLParser\__construct(), ilFolderXmlParser\__construct(), ilExerciseXMLParser\__construct(), ilFileXMLParser\__construct(), ilForumXMLParser\__construct(), ilGroupXMLParser\__construct(), ilLearningSequenceXMLParser\__construct(), ilWebLinkXmlParser\__construct(), ilDataSetImportParser\__construct(), ilSoapMailXmlParser\__construct(), ilCategoryXmlParser\__construct(), ilContainerReferenceXmlParser\__construct(), ilXMLResultSetParser\__construct(), ilObjectXMLParser\__construct(), and ilCopyWizardSettingsXMLParser\__construct().
Here is the caller graph for this function:| ilSaxParser::startParsing | ( | ) |
stores xml data in array
| ilSaxParserException |
Reimplemented in ilCategoryXmlParser, ilCourseXMLParser, ilGroupXMLParser, ilSCORMPackageParser, ilQuestionPageParser, ilWebLinkXmlParser, ilAdvancedMDRecordParser, ilPluginReader, ilExportFileParser, ilMDXMLCopier, ilQTIParser, and ilStyleImportParser.
Definition at line 89 of file class.ilSaxParser.php.
References createParser(), freeParser(), getInputType(), handleError(), openXMLFile(), parse(), setHandlers(), setOptions(), TYPE_FILE, and TYPE_STRING.
Referenced by ilManifestParser\__construct(), ilDataSetImportParser\__construct(), ilFileXMLParser\start(), ilFolderXmlParser\start(), ilLearningSequenceXMLParser\start(), and ilSoapMailXmlParser\start().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
XML-Content type 'file' or 'string' If you choose file set the filename in constructor If you choose 'String' call the constructor with no argument and use setXMLContent()
Definition at line 35 of file class.ilSaxParser.php.
Referenced by getInputType().
|
protected |
Definition at line 42 of file class.ilSaxParser.php.
Referenced by ilQTIParser\__construct(), and ilQuestionPageParser\__construct().
| bool ilSaxParser::$throw_exception = false |
Definition at line 46 of file class.ilSaxParser.php.
Referenced by __construct(), ilObjectXMLParser\__construct(), and setThrowException().
|
private |
XML-Content in case of content type 'string'.
Definition at line 40 of file class.ilSaxParser.php.
Referenced by getXMLContent().
| string ilSaxParser::$xml_file |
Definition at line 44 of file class.ilSaxParser.php.
|
private |
Definition at line 27 of file class.ilSaxParser.php.
Referenced by __construct(), parse(), and startParsing().
|
private |
Definition at line 28 of file class.ilSaxParser.php.
Referenced by __construct(), parse(), setXMLContent(), and startParsing().