ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 |
||
) |
Reimplemented in ilObjTestXMLParser.
Definition at line 49 of file class.ilSaxParser.php.
References $DIC, $throw_exception, ILIAS\Repository\lng(), TYPE_FILE, and TYPE_STRING.
ilSaxParser::createParser | ( | ) |
ilSaxParserException | or ILIAS Error |
Definition at line 118 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
|
private |
resource | $a_xml_parser |
ilSaxParserException |
Definition at line 198 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
ilSaxParser::getInputType | ( | ) |
Definition at line 80 of file class.ilSaxParser.php.
References $input_type.
Referenced by SurveyImportParser\parse(), parse(), and startParsing().
ilSaxParser::getXMLContent | ( | ) |
Definition at line 75 of file class.ilSaxParser.php.
References $xml_content.
Referenced by SurveyImportParser\parse(), and parse().
|
protected |
ilSaxParserException |
Definition at line 187 of file class.ilSaxParser.php.
References $message.
Referenced by createParser(), freeParser(), openXMLFile(), parse(), and startParsing().
|
protected |
ilSaxParserException |
Reimplemented in ilQTIParser.
Definition at line 143 of file class.ilSaxParser.php.
References handleError().
Referenced by startParsing().
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().
|
abstract |
XMLParser | resource | $a_xml_parser |
Reimplemented in ilAdvancedMDParser, ilAdvancedMDRecordParser, ilCategoryImportParser, ilCategoryXmlParser, ilChatroomXMLParser, ilContainerReferenceXmlParser, ilCourseXMLParser, ilExerciseXMLParser, ilExportFileParser, ilManifestParser, ilDataSetImportParser, ilFileXMLParser, ilFolderXmlParser, ilForumXMLParser, ilGroupXMLParser, ilLearningSequenceXMLParser, ilSCORMPackageParser, ilCopyWizardSettingsXMLParser, ilObjectXMLParser, ilSoapMailXmlParser, ilXMLResultSetParser, ilStyleImportParser, SurveyImportParser, ilTestResultsImportParser, ilTestSkillLevelThresholdXmlParser, ilObjQuestionPoolXMLParser, ilQTIParser, ilAssQuestionSkillAssignmentXmlParser, ilUserImportParser, ilWebLinkXmlParser, ilObjTestXMLParser, and ilQuestionPageParser.
Referenced by startParsing().
|
private |
Definition at line 128 of file class.ilSaxParser.php.
Referenced by startParsing().
|
protected |
Definition at line 206 of file class.ilSaxParser.php.
References $throw_exception.
Referenced by ilFolderXmlParser\__construct(), ilWebLinkXmlParser\__construct(), and ilSoapMailXmlParser\__construct().
ilSaxParser::setXMLContent | ( | string | $a_xml_content | ) |
Reimplemented in ilQTIParser.
Definition at line 69 of file class.ilSaxParser.php.
References TYPE_STRING.
Referenced by ilFolderXmlParser\__construct(), ilExerciseXMLParser\__construct(), ilGroupXMLParser\__construct(), ilWebLinkXmlParser\__construct(), ilForumXMLParser\__construct(), ilChatroomXMLParser\__construct(), ilLearningSequenceXMLParser\__construct(), ilFileXMLParser\__construct(), ilDataSetImportParser\__construct(), ilSoapMailXmlParser\__construct(), ilCategoryXmlParser\__construct(), ilContainerReferenceXmlParser\__construct(), ilXMLResultSetParser\__construct(), ilObjectXMLParser\__construct(), and ilCopyWizardSettingsXMLParser\__construct().
ilSaxParser::startParsing | ( | ) |
stores xml data in array
ilSaxParserException |
Reimplemented in ilAdvancedMDRecordParser, ilCategoryXmlParser, ilExportFileParser, ilGroupXMLParser, ilSCORMPackageParser, ilStyleImportParser, ilQuestionPageParser, ilQTIParser, and ilWebLinkXmlParser.
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(), ilExerciseXMLParser\start(), ilFileXMLParser\start(), ilFolderXmlParser\start(), ilLearningSequenceXMLParser\start(), and ilSoapMailXmlParser\start().
|
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 ilQuestionPageParser\__construct().
bool ilSaxParser::$throw_exception = false |
Definition at line 46 of file class.ilSaxParser.php.
Referenced by ilObjTestXMLParser\__construct(), __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.
Referenced by ilQuestionPageParser\__construct().
|
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().