|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilSCORMPackageParser:
Collaboration diagram for ilSCORMPackageParser:Public Member Functions | |
| __construct (object $a_slm_object, string $a_xml_file) | |
| Constructor. More... | |
| setHandlers ($a_xml_parser) | |
| set event handler should be overwritten by inherited class More... | |
| startParsing () | |
| getPackageTitle () | |
| beginElement (string $a_name) | |
| update parsing status for a element begin More... | |
| endElement (string $a_name) | |
| update parsing status for an element ending More... | |
| getCurrentElement () | |
| returns current element More... | |
| getAncestorElement (int $nr=1) | |
| buildTag (string $type, string $name, ?array $attr=null) | |
| generate a tag with given name and attributes More... | |
| getCurrentParent () | |
| handlerBeginTag (XMLParser $a_xml_parser, string $a_name, array $a_attribs) | |
| handler for begin of element More... | |
| handlerEndTag (XMLParser $a_xml_parser, string $a_name) | |
| handler for end of element More... | |
| handlerCharacterData (XMLParser $a_xml_parser, ?string $a_data) | |
| handler for character data More... | |
Public Member Functions inherited from ilSaxParser | |
| __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 | |
| array | $current_element |
| object | $slm_object |
| array | $parent_stack |
| bool | $tree_created |
| object | $scorm_tree |
| object | $current_organization |
| object | $current_resource |
| array | $item_stack |
| string | $package_title = "" |
Data Fields inherited from ilSaxParser | |
| string | $xml_file |
| bool | $throw_exception = false |
Private Attributes | |
| ilSCORMTree | $sc_tree |
Additional Inherited Members | |
Protected Member Functions inherited from ilSaxParser | |
| openXMLFile () | |
| handleError (string $message) | |
| setThrowException (bool $throw_exception) | |
Protected Attributes inherited from ilSaxParser | |
| ilLanguage | $lng = null |
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 SCORM Package Parser
\
Definition at line 28 of file class.ilSCORMPackageParser.php.
| ilSCORMPackageParser::__construct | ( | object | $a_slm_object, |
| string | $a_xml_file | ||
| ) |
Constructor.
| object | $a_lm_object | must be of type ilObjLearningModule |
| string | $a_xml_file | xml file |
Definition at line 47 of file class.ilSCORMPackageParser.php.
References ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ilSCORMPackageParser::beginElement | ( | string | $a_name | ) |
update parsing status for a element begin
Definition at line 88 of file class.ilSCORMPackageParser.php.
Referenced by handlerBeginTag().
Here is the caller graph for this function:| ilSCORMPackageParser::buildTag | ( | string | $type, |
| string | $name, | ||
| ?array | $attr = null |
||
| ) |
generate a tag with given name and attributes
Definition at line 135 of file class.ilSCORMPackageParser.php.
| ilSCORMPackageParser::endElement | ( | string | $a_name | ) |
update parsing status for an element ending
Definition at line 101 of file class.ilSCORMPackageParser.php.
Referenced by handlerEndTag().
Here is the caller graph for this function:| ilSCORMPackageParser::getAncestorElement | ( | int | $nr = 1 | ) |
Definition at line 115 of file class.ilSCORMPackageParser.php.
Referenced by handlerCharacterData().
Here is the caller graph for this function:| ilSCORMPackageParser::getCurrentElement | ( | ) |
returns current element
Definition at line 110 of file class.ilSCORMPackageParser.php.
Referenced by handlerCharacterData().
Here is the caller graph for this function:| ilSCORMPackageParser::getCurrentParent | ( | ) |
Definition at line 156 of file class.ilSCORMPackageParser.php.
Referenced by handlerBeginTag().
Here is the caller graph for this function:| ilSCORMPackageParser::getPackageTitle | ( | ) |
Definition at line 80 of file class.ilSCORMPackageParser.php.
References ilUtil\stripSlashes().
Here is the call graph for this function:| ilSCORMPackageParser::handlerBeginTag | ( | XMLParser | $a_xml_parser, |
| string | $a_name, | ||
| array | $a_attribs | ||
| ) |
handler for begin of element
| resource | XMLParser | $a_xml_parser | |
| string | $a_name | |
| array | $a_attribs |
Definition at line 168 of file class.ilSCORMPackageParser.php.
References $resources, ilTree\addTree(), beginElement(), and getCurrentParent().
Here is the call graph for this function:| ilSCORMPackageParser::handlerCharacterData | ( | XMLParser | $a_xml_parser, |
| ?string | $a_data | ||
| ) |
handler for character data
| resource | XMLParser | $a_xml_parser | |
| string | null | $a_data |
Definition at line 335 of file class.ilSCORMPackageParser.php.
References getAncestorElement(), getCurrentElement(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilSCORMPackageParser::handlerEndTag | ( | XMLParser | $a_xml_parser, |
| string | $a_name | ||
| ) |
handler for end of element
| resource | XMLParser | $a_xml_parser | |
| string | $a_name |
Definition at line 298 of file class.ilSCORMPackageParser.php.
References endElement().
Here is the call graph for this function:| ilSCORMPackageParser::setHandlers | ( | $a_xml_parser | ) |
set event handler should be overwritten by inherited class
| resource | XMLParser | $a_xml_parser |
Definition at line 65 of file class.ilSCORMPackageParser.php.
| ilSCORMPackageParser::startParsing | ( | ) |
| ilSaxParserException |
Definition at line 75 of file class.ilSCORMPackageParser.php.
| array ilSCORMPackageParser::$current_element |
Definition at line 32 of file class.ilSCORMPackageParser.php.
| object ilSCORMPackageParser::$current_organization |
Definition at line 37 of file class.ilSCORMPackageParser.php.
| object ilSCORMPackageParser::$current_resource |
Definition at line 38 of file class.ilSCORMPackageParser.php.
| array ilSCORMPackageParser::$item_stack |
Definition at line 39 of file class.ilSCORMPackageParser.php.
| string ilSCORMPackageParser::$package_title = "" |
Definition at line 40 of file class.ilSCORMPackageParser.php.
| array ilSCORMPackageParser::$parent_stack |
Definition at line 34 of file class.ilSCORMPackageParser.php.
|
private |
Definition at line 30 of file class.ilSCORMPackageParser.php.
| object ilSCORMPackageParser::$scorm_tree |
Definition at line 36 of file class.ilSCORMPackageParser.php.
| object ilSCORMPackageParser::$slm_object |
Definition at line 33 of file class.ilSCORMPackageParser.php.
| bool ilSCORMPackageParser::$tree_created |
Definition at line 35 of file class.ilSCORMPackageParser.php.