|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Legacy Content Object Parser. More...
Inheritance diagram for ilQuestionPageParser:
Collaboration diagram for ilQuestionPageParser:Public Member Functions | |
| __construct (ilObject $a_content_object, string $a_xml_file, string $a_subdir, string $a_import_dir="") | |
| setHandlers ($a_xml_parser) | |
| setImportMapping (ilImportMapping $mapping=null) | |
| startParsing () | |
| stores xml data in array More... | |
| storeTree () | |
| insert StructureObjects and PageObjects into tree More... | |
| processPagesToParse () | |
| parse pages that contain files, mobs and/or internal links More... | |
| copyMobFiles () | |
| copy multimedia object files from import zip file to mob directory More... | |
| copyFileItems () | |
| copy files of file items More... | |
| setQuestionMapping (array $a_map) | |
| set question import ident to pool/test question id mapping More... | |
| beginElement (string $a_name) | |
| endElement (string $a_name) | |
| getCurrentElement () | |
| getOpenCount (string $a_name) | |
| buildTag (string $type, string $name, array $attr=[]) | |
| processMeta () | |
| handlerEndTag ($a_xml_parser, $a_name) | |
| handler for end of element More... | |
| handlerCharacterData ($a_xml_parser, $a_data) | |
| handler for character data More... | |
| emptyMediaMetaCache ($a_xml_parser) | |
| getGlossaryTermMap () | |
Public Member Functions inherited from ilMDSaxParser | |
| __construct ($a_xml_file='') | |
| Constructor. More... | |
| enableMDParsing ($a_status) | |
| getMDParsingStatus () | |
| setMDObject (&$md) | |
| & | getMDObject () |
| inMetaData () | |
| setHandlers ($a_xml_parser) | |
| set event handlers More... | |
| handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
| handler for begin of element More... | |
| handlerEndTag ($a_xml_parser, $a_name) | |
| handler for end of element More... | |
| handlerCharacterData ($a_xml_parser, $a_data) | |
| handler for character data More... | |
| __getCharacterData () | |
| __pushParent (&$md_obj) | |
| __popParent () | |
| __getParent () | |
| __construct ($a_xml_file='') | |
| Constructor. More... | |
| setMDObject (&$md) | |
| inMetaData () | |
| handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
| handler for begin of element More... | |
| handlerEndTag ($a_xml_parser, $a_name) | |
| handler for end of element More... | |
| handlerCharacterData ($a_xml_parser, $a_data) | |
| handler for character data More... | |
| __getCharacterData () | |
| __pushParent (&$md_obj) | |
| & | __popParent () |
| & | __getParent () |
Public Member Functions inherited from ilSaxParser | |
| __construct ($a_xml_file='', $throwException=false) | |
| Constructor setup ILIAS global object @access public. More... | |
| setXMLContent ($a_xml_content) | |
| getXMLContent () | |
| getInputType () | |
| startParsing () | |
| stores xml data in array More... | |
| createParser () | |
| create parser More... | |
| setOptions ($a_xml_parser) | |
| set parser options More... | |
| setHandlers ($a_xml_parser) | |
| set event handler should be overwritten by inherited class @access private More... | |
| openXMLFile () | |
| open xml file More... | |
| parse ($a_xml_parser, $a_fp=null) | |
| parse xml file More... | |
| freeParser ($a_xml_parser) | |
| free xml parser handle More... | |
| setThrowException ($throwException) | |
| set error handling More... | |
Public Member Functions inherited from PEAR | |
| __construct ($error_class=null) | |
| Constructor. More... | |
| _PEAR () | |
| Destructor (the emulated type of...). More... | |
| registerShutdownFunc ($func, $args=array()) | |
| Use this function to register a shutdown method for static classes. More... | |
| isError ($data, $code=null) | |
| Tell whether a value is a PEAR error. More... | |
| expectError ($code=' *') | |
| This method is used to tell which errors you expect to get. More... | |
| popExpect () | |
| This method pops one element off the expected error codes stack. More... | |
| _checkDelExpect ($error_code) | |
| This method checks unsets an error code if available. More... | |
| delExpect ($error_code) | |
| This method deletes all occurences of the specified element from the expected error codes stack. More... | |
| & | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More... | |
| & | throwError ($message=null, $code=null, $userinfo=null) |
| Simpler form of raiseError with fewer options. More... | |
| staticPushErrorHandling ($mode, $options=null) | |
| staticPopErrorHandling () | |
| pushErrorHandling ($mode, $options=null) | |
| Push a new error handler on top of the error handler options stack. More... | |
| popErrorHandling () | |
| Pop the last error handler used. More... | |
| loadExtension ($ext) | |
| OS independant PHP extension load. More... | |
Protected Attributes | |
| $in_properties | |
| $in_glossary_definition = false | |
| $media_meta_cache = [] | |
| $media_meta_start = false | |
| $pg_mapping = [] | |
| $mobs_with_int_links = [] | |
| $inside_code = false | |
| $coType = "" | |
| $import_dir = "" | |
| $glossary_term_map = [] | |
| $log | |
| $glossary_term = null | |
| $mapping = null | |
| $cur_qid = "" | |
| $glossary_definition = null | |
| $chr_data = "" | |
| $in_media_item = false | |
Protected Attributes inherited from ilMDSaxParser | |
| $meta_log | |
Additional Inherited Members | |
Static Public Member Functions inherited from PEAR | |
| static & | getStaticProperty ($class, $var) |
| If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More... | |
| static | setErrorHandling ($mode=null, $options=null) |
| Sets how errors generated by this object should be handled. More... | |
Protected Member Functions inherited from ilMDSaxParser | |
| trimAndStripAttribs (array $attribs) | |
| trimAndStrip (string $input) | |
Protected Member Functions inherited from ilSaxParser | |
| handleError ($message, $code) | |
| use given error handler to handle error message or internal ilias error message handle More... | |
Definition at line 27 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::__construct | ( | ilObject | $a_content_object, |
| string | $a_xml_file, | ||
| string | $a_subdir, | ||
| string | $a_import_dir = "" |
||
| ) |
Definition at line 86 of file class.ilQuestionPageParser.php.
References $DIC, ilSaxParser\$lng, $tree, ILIAS\GlobalScreen\Provider\__construct(), and ilLoggerFactory\getLogger().
Here is the call graph for this function:| ilQuestionPageParser::beginElement | ( | string | $a_name | ) |
Definition at line 355 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::buildTag | ( | string | $type, |
| string | $name, | ||
| array | $attr = [] |
||
| ) |
Definition at line 384 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::copyFileItems | ( | ) |
copy files of file items
Definition at line 323 of file class.ilQuestionPageParser.php.
References $import_dir.
Referenced by startParsing().
Here is the caller graph for this function:| ilQuestionPageParser::copyMobFiles | ( | ) |
copy multimedia object files from import zip file to mob directory
Definition at line 297 of file class.ilQuestionPageParser.php.
References $import_dir, ilLoggerFactory\getLogger(), ilUtil\getWebspaceDir(), ilUtil\makeDir(), and ilUtil\rCopy().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilQuestionPageParser::emptyMediaMetaCache | ( | $a_xml_parser | ) |
| resource | $a_xml_parser |
Definition at line 1361 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::endElement | ( | string | $a_name | ) |
Definition at line 365 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::getCurrentElement | ( | ) |
Definition at line 371 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::getGlossaryTermMap | ( | ) |
Definition at line 1396 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::getOpenCount | ( | string | $a_name | ) |
Definition at line 376 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::handlerCharacterData | ( | $a_xml_parser, | |
| $a_data | |||
| ) |
handler for character data
Reimplemented from ilMDSaxParser.
Definition at line 1306 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::handlerEndTag | ( | $a_xml_parser, | |
| $a_name | |||
| ) |
handler for end of element
Reimplemented from ilMDSaxParser.
Definition at line 892 of file class.ilQuestionPageParser.php.
References $xml, ilLMObject\_writeImportId(), IL_MODE_ALIAS, and ilUtil\parseImportId().
Here is the call graph for this function:| ilQuestionPageParser::processMeta | ( | ) |
Definition at line 878 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::processPagesToParse | ( | ) |
parse pages that contain files, mobs and/or internal links
Definition at line 201 of file class.ilQuestionPageParser.php.
References $page_object, $source, $target_id, $target_type, ilPageObject\_exists(), ilInternalLink\_getSourcesOfTarget(), SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilMediaItem\_resolveMapAreaLinks(), and ilPageObjectFactory\getInstance().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilQuestionPageParser::setHandlers | ( | $a_xml_parser | ) |
| resource | $a_xml_parser |
Reimplemented from ilMDSaxParser.
Definition at line 133 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::setImportMapping | ( | ilImportMapping | $mapping = null | ) |
Definition at line 140 of file class.ilQuestionPageParser.php.
References $mapping.
| ilQuestionPageParser::setQuestionMapping | ( | array | $a_map | ) |
set question import ident to pool/test question id mapping
| mixed[] | $a_map |
Definition at line 350 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::startParsing | ( | ) |
stores xml data in array
@access private
| ilSaxParserException | or ILIAS Error |
Reimplemented from ilSaxParser.
Definition at line 145 of file class.ilQuestionPageParser.php.
References copyFileItems(), copyMobFiles(), processPagesToParse(), and storeTree().
Here is the call graph for this function:| ilQuestionPageParser::storeTree | ( | ) |
insert StructureObjects and PageObjects into tree
Definition at line 165 of file class.ilQuestionPageParser.php.
References $log.
Referenced by startParsing().
Here is the caller graph for this function:
|
protected |
Definition at line 83 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$cnt = [] |
Definition at line 45 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$container = [] |
Definition at line 56 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$content_object = null |
Definition at line 63 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 42 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 81 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$current_element = [] |
Definition at line 46 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$current_object = null |
Definition at line 52 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$file_item = null |
Definition at line 65 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$file_item_mapping = [] |
Definition at line 68 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 82 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$glossary_object = null |
Definition at line 64 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 79 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 77 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 43 of file class.ilQuestionPageParser.php.
Referenced by copyFileItems(), and copyMobFiles().
| ilQuestionPageParser::$in_file_item = false |
Definition at line 60 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$in_glossary = false |
Definition at line 61 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 36 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$in_map_area = false |
Definition at line 62 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 84 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$in_media_object = false |
Definition at line 59 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$in_meta_data = false |
Definition at line 58 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$in_meta_meta_data = false |
Definition at line 76 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$in_page_object = false |
Definition at line 57 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 32 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 41 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$learning_module = null |
Definition at line 47 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$link_targets = [] |
Definition at line 73 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$lm_page_object = null |
Definition at line 49 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$lm_tree = null |
Definition at line 53 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$loc_type = "" |
Definition at line 71 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 78 of file class.ilQuestionPageParser.php.
Referenced by storeTree().
| ilQuestionPageParser::$map_area = null |
Definition at line 72 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 80 of file class.ilQuestionPageParser.php.
Referenced by setImportMapping().
| ilQuestionPageParser::$media_item = null |
Definition at line 70 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 37 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 38 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$media_object = null |
Definition at line 51 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$metadata_parsing_disabled = false |
Definition at line 75 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$mob_mapping = [] |
Definition at line 67 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 40 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$page_object = null |
Definition at line 48 of file class.ilQuestionPageParser.php.
Referenced by processPagesToParse().
| ilQuestionPageParser::$pages_to_parse = [] |
Definition at line 66 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$pg_into_tree = [] |
Definition at line 54 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 39 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$qst_mapping = [] |
Definition at line 74 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$st_into_tree = [] |
Definition at line 55 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$structure_objects = [] |
Definition at line 50 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$subdir = "" |
Definition at line 69 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::$tree |
Definition at line 44 of file class.ilQuestionPageParser.php.
Referenced by __construct().