ILIAS
release_8 Revision v8.19
|
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 |
||
) |
Definition at line 49 of file class.ilSaxParser.php.
References $DIC, and ILIAS\Repository\lng().
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(), ilPluginReader\startParsing(), 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.
Referenced by createParser(), freeParser(), openXMLFile(), parse(), and startParsing().
|
protected |
ilSaxParserException |
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 |
Definition at line 156 of file class.ilSaxParser.php.
References $data, getInputType(), getXMLContent(), and handleError().
Referenced by startParsing().
|
abstract |
XMLParser | resource | $a_xml_parser |
Referenced by setOptions(), and startParsing().
|
private |
Definition at line 128 of file class.ilSaxParser.php.
References setHandlers().
Referenced by startParsing().
|
protected |
Definition at line 206 of file class.ilSaxParser.php.
References $throw_exception.
Referenced by ilSoapMailXmlParser\__construct(), ilFolderXmlParser\__construct(), and ilWebLinkXmlParser\__construct().
ilSaxParser::setXMLContent | ( | string | $a_xml_content | ) |
Definition at line 69 of file class.ilSaxParser.php.
Referenced by ilCopyWizardSettingsXMLParser\__construct(), ilXMLResultSetParser\__construct(), ilObjectXMLParser\__construct(), ilSoapMailXmlParser\__construct(), ilFolderXmlParser\__construct(), ilMDXMLCopier\__construct(), ilContainerReferenceXmlParser\__construct(), ilCategoryXmlParser\__construct(), ilDataSetImportParser\__construct(), ilChatroomXMLParser\__construct(), ilLearningSequenceXMLParser\__construct(), ilExerciseXMLParser\__construct(), ilForumXMLParser\__construct(), ilWebLinkXmlParser\__construct(), ilGroupXMLParser\__construct(), and ilFileXMLParser\__construct().
ilSaxParser::startParsing | ( | ) |
stores xml data in array
ilSaxParserException |
Definition at line 89 of file class.ilSaxParser.php.
References createParser(), freeParser(), getInputType(), handleError(), openXMLFile(), parse(), setHandlers(), and setOptions().
Referenced by ilManifestParser\__construct(), ilDataSetImportParser\__construct(), ilSoapMailXmlParser\start(), ilFolderXmlParser\start(), ilLearningSequenceXMLParser\start(), ilExerciseXMLParser\start(), and ilFileXMLParser\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(), ilQTIParser\__construct(), ilUserImportParser\getProtocolAsHTML(), ilUserImportParser\importBeginTag(), ilUserImportParser\importEndTag(), ilUserImportParser\verifyBeginTag(), and ilUserImportParser\verifyEndTag().
bool ilSaxParser::$throw_exception = false |
Definition at line 46 of file class.ilSaxParser.php.
Referenced by 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.
|
private |
Definition at line 28 of file class.ilSaxParser.php.