|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Legacy Content Object Parser. More...
Inheritance diagram for ilQuestionPageParser:
Collaboration diagram for ilQuestionPageParser:Public Member Functions | |
| __construct (private readonly ilObject $content_object, string $xml_file, private readonly string $importdir) | |
| setHandlers ($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... | |
| 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, string $a_name) | |
| handlerCharacterData ($a_xml_parser, string $a_data) | |
| getGlossaryTermMap () | |
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 | |
| ilTree | $tree |
| array | $cnt = [] |
| array | $current_element = [] |
| ilObjLearningModule | $learning_module = null |
| ilPageObject | $page_object = null |
| ilLMPageObject | $lm_page_object = null |
| array | $structure_objects = [] |
| ilObjMediaObject | $media_object = null |
| object | $current_object = null |
| ilLMTree | $lm_tree = null |
| array | $pg_into_tree = [] |
| array | $st_into_tree = [] |
| array | $container = [] |
| bool | $in_page_object = false |
| bool | $in_media_object = false |
| bool | $in_file_item = false |
| bool | $in_glossary = false |
| bool | $in_map_area = false |
| ilObjGlossary | $glossary_object = null |
| ilObjFile | $file_item = null |
| array | $pages_to_parse = [] |
| array | $mob_mapping = [] |
| array | $file_item_mapping = [] |
| ilMediaItem | $media_item = null |
| string | $loc_type = '' |
| ilMapArea | $map_area = null |
| array | $link_targets = [] |
| array | $qst_mapping = [] |
Data Fields inherited from ilSaxParser | |
| string | $xml_file |
| bool | $throw_exception = false |
Protected Attributes | |
| bool | $in_properties |
| bool | $in_glossary_definition = false |
| array | $pg_mapping = [] |
| array | $mobs_with_int_links = [] |
| bool | $inside_code = false |
| string | $content_type = '' |
| array | $glossary_term_map = [] |
| ilLogger | $log |
| ilGlossaryTerm | $glossary_term = null |
| ilImportMapping | $mapping = null |
| string | $cur_qid = '' |
| string | $chr_data = '' |
| bool | $in_media_item = false |
Protected Attributes inherited from ilSaxParser | |
| ilLanguage | $lng = null |
Private Member Functions | |
| copyFileItems () | |
| copy files of file items More... | |
| parseLinkTarget (string $identifier) | |
| Parse a string the get the elements of a link target Return null if the string is not a link target. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ilSaxParser | |
| openXMLFile () | |
| handleError (string $message) | |
| setThrowException (bool $throw_exception) | |
Legacy Content Object Parser.
Definition at line 27 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::__construct | ( | private readonly ilObject | $content_object, |
| string | $xml_file, | ||
| private readonly string | $importdir | ||
| ) |
Definition at line 77 of file class.ilQuestionPageParser.php.
References $DIC, ilSaxParser\$lng, $tree, ilSaxParser\$xml_file, ILIAS\GlobalScreen\Provider\__construct(), ilLoggerFactory\getLogger(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilQuestionPageParser::beginElement | ( | string | $a_name | ) |
Definition at line 293 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::buildTag | ( | string | $type, |
| string | $name, | ||
| array | $attr = [] |
||
| ) |
Definition at line 322 of file class.ilQuestionPageParser.php.
|
private |
copy files of file items
Definition at line 262 of file class.ilQuestionPageParser.php.
Referenced by startParsing().
Here is the caller graph for this function:| ilQuestionPageParser::endElement | ( | string | $a_name | ) |
Definition at line 303 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::getCurrentElement | ( | ) |
Definition at line 309 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::getGlossaryTermMap | ( | ) |
Definition at line 1049 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::getOpenCount | ( | string | $a_name | ) |
Definition at line 314 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::handlerCharacterData | ( | $a_xml_parser, | |
| string | $a_data | ||
| ) |
Definition at line 1009 of file class.ilQuestionPageParser.php.
Referenced by setHandlers().
Here is the caller graph for this function:| ilQuestionPageParser::handlerEndTag | ( | $a_xml_parser, | |
| string | $a_name | ||
| ) |
Definition at line 704 of file class.ilQuestionPageParser.php.
References IL_MODE_ALIAS, ILIAS\Repository\int(), and ilUtil\parseImportId().
Referenced by setHandlers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Parse a string the get the elements of a link target Return null if the string is not a link target.
Definition at line 1059 of file class.ilQuestionPageParser.php.
References ILIAS\Repository\int().
Referenced by processPagesToParse().
Here is the call graph for this function:
Here is the caller graph for this function:| ilQuestionPageParser::processMeta | ( | ) |
Definition at line 690 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::processPagesToParse | ( | ) |
parse pages that contain files, mobs and/or internal links
Definition at line 174 of file class.ilQuestionPageParser.php.
References $page_object, ilPageObject\_exists(), ilInternalLink\_getSourcesOfTarget(), ilMediaItem\_resolveMapAreaLinks(), ilPageObject\buildDom(), ilPageObjectFactory\getInstance(), assQuestion\instantiateQuestion(), parseLinkTarget(), ilPageObject\resolveIntLinks(), and ilPageObject\update().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilQuestionPageParser::setHandlers | ( | $xml_parser | ) |
| resource | $a_xml_parser |
Reimplemented from ilSaxParser.
Definition at line 114 of file class.ilQuestionPageParser.php.
References handlerCharacterData(), and handlerEndTag().
Here is the call graph for this function:| ilQuestionPageParser::setImportMapping | ( | ?ilImportMapping | $mapping = null | ) |
Definition at line 120 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 288 of file class.ilQuestionPageParser.php.
| ilQuestionPageParser::startParsing | ( | ) |
stores xml data in array
| ilSaxParserException |
Reimplemented from ilSaxParser.
Definition at line 125 of file class.ilQuestionPageParser.php.
References copyFileItems(), processPagesToParse(), and storeTree().
Here is the call graph for this function:| ilQuestionPageParser::storeTree | ( | ) |
insert StructureObjects and PageObjects into tree
Definition at line 138 of file class.ilQuestionPageParser.php.
References $log, and ilLogger\write().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 74 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$cnt = [] |
Definition at line 42 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$container = [] |
Definition at line 53 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 40 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 73 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$current_element = [] |
Definition at line 43 of file class.ilQuestionPageParser.php.
| object ilQuestionPageParser::$current_object = null |
Definition at line 49 of file class.ilQuestionPageParser.php.
| ilObjFile ilQuestionPageParser::$file_item = null |
Definition at line 60 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$file_item_mapping = [] |
Definition at line 63 of file class.ilQuestionPageParser.php.
| ilObjGlossary ilQuestionPageParser::$glossary_object = null |
Definition at line 59 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 71 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 69 of file class.ilQuestionPageParser.php.
| bool ilQuestionPageParser::$in_file_item = false |
Definition at line 56 of file class.ilQuestionPageParser.php.
| bool ilQuestionPageParser::$in_glossary = false |
Definition at line 57 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 36 of file class.ilQuestionPageParser.php.
| bool ilQuestionPageParser::$in_map_area = false |
Definition at line 58 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 75 of file class.ilQuestionPageParser.php.
| bool ilQuestionPageParser::$in_media_object = false |
Definition at line 55 of file class.ilQuestionPageParser.php.
| bool ilQuestionPageParser::$in_page_object = false |
Definition at line 54 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 32 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 39 of file class.ilQuestionPageParser.php.
| ilObjLearningModule ilQuestionPageParser::$learning_module = null |
Definition at line 44 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$link_targets = [] |
Definition at line 67 of file class.ilQuestionPageParser.php.
| ilLMPageObject ilQuestionPageParser::$lm_page_object = null |
Definition at line 46 of file class.ilQuestionPageParser.php.
| ilLMTree ilQuestionPageParser::$lm_tree = null |
Definition at line 50 of file class.ilQuestionPageParser.php.
| string ilQuestionPageParser::$loc_type = '' |
Definition at line 65 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 70 of file class.ilQuestionPageParser.php.
Referenced by storeTree().
| ilMapArea ilQuestionPageParser::$map_area = null |
Definition at line 66 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 72 of file class.ilQuestionPageParser.php.
Referenced by setImportMapping().
| ilMediaItem ilQuestionPageParser::$media_item = null |
Definition at line 64 of file class.ilQuestionPageParser.php.
| ilObjMediaObject ilQuestionPageParser::$media_object = null |
Definition at line 48 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$mob_mapping = [] |
Definition at line 62 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 38 of file class.ilQuestionPageParser.php.
| ilPageObject ilQuestionPageParser::$page_object = null |
Definition at line 45 of file class.ilQuestionPageParser.php.
Referenced by processPagesToParse().
| array ilQuestionPageParser::$pages_to_parse = [] |
Definition at line 61 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$pg_into_tree = [] |
Definition at line 51 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 37 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$qst_mapping = [] |
Definition at line 68 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$st_into_tree = [] |
Definition at line 52 of file class.ilQuestionPageParser.php.
| array ilQuestionPageParser::$structure_objects = [] |
Definition at line 47 of file class.ilQuestionPageParser.php.
| ilTree ilQuestionPageParser::$tree |
Definition at line 41 of file class.ilQuestionPageParser.php.
Referenced by __construct().