ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Legacy Content Object Parser. More...
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 () | |
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, string $a_name) | |
handlerCharacterData ($a_xml_parser, string $a_data) | |
emptyMediaMetaCache ($a_xml_parser) | |
getGlossaryTermMap () | |
![]() | |
__construct (?string $a_xml_file='') | |
enableMDParsing (bool $a_status) | |
getMDParsingStatus () | |
setMDObject (ilMD $md) | |
getMDObject () | |
inMetaData () | |
setHandlers ($a_xml_parser) | |
Set event handlers. More... | |
handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
handlerEndTag ($a_xml_parser, string $a_name) | |
handlerCharacterData ($a_xml_parser, string $a_data) | |
__getCharacterData () | |
__pushParent (object $md_obj) | |
__popParent () | |
__getParent () | |
![]() | |
__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) | |
Private Member Functions | |
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 | |
![]() | |
trimAndStripAttribs (array $attribs) | |
trimAndStrip (string $input) | |
![]() | |
openXMLFile () | |
handleError (string $message) | |
setThrowException (bool $throw_exception) | |
Legacy Content Object Parser.
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(), ilLoggerFactory\getLogger(), and ILIAS\Repository\lng().
ilQuestionPageParser::beginElement | ( | string | $a_name | ) |
Definition at line 359 of file class.ilQuestionPageParser.php.
Referenced by buildTag().
ilQuestionPageParser::buildTag | ( | string | $type, |
string | $name, | ||
array | $attr = [] |
||
) |
Definition at line 388 of file class.ilQuestionPageParser.php.
References $content_object, $glossary_definition, $glossary_object, $lm_page_object, $name, beginElement(), ilGlossaryDefinition\create(), emptyMediaMetaCache(), ilMDSaxParser\enableMDParsing(), ilMDSaxParser\handlerBeginTag(), IL_EXT_LINK, IL_INT_LINK, ilUtil\parseImportId(), parseLinkTarget(), processMeta(), and ilUtil\yn2tf().
Referenced by handlerEndTag().
ilQuestionPageParser::copyFileItems | ( | ) |
copy files of file items
Definition at line 327 of file class.ilQuestionPageParser.php.
References $import_dir.
Referenced by startParsing().
ilQuestionPageParser::copyMobFiles | ( | ) |
copy multimedia object files from import zip file to mob directory
Definition at line 301 of file class.ilQuestionPageParser.php.
References $import_dir, ilLoggerFactory\getLogger(), ilFileUtils\getWebspaceDir(), ilFileUtils\makeDir(), and ilFileUtils\rCopy().
Referenced by startParsing().
ilQuestionPageParser::emptyMediaMetaCache | ( | $a_xml_parser | ) |
resource | $a_xml_parser |
Definition at line 1373 of file class.ilQuestionPageParser.php.
Referenced by buildTag().
ilQuestionPageParser::endElement | ( | string | $a_name | ) |
Definition at line 369 of file class.ilQuestionPageParser.php.
Referenced by handlerEndTag().
ilQuestionPageParser::getCurrentElement | ( | ) |
Definition at line 375 of file class.ilQuestionPageParser.php.
Referenced by handlerCharacterData().
ilQuestionPageParser::getGlossaryTermMap | ( | ) |
Definition at line 1408 of file class.ilQuestionPageParser.php.
References $glossary_term_map.
ilQuestionPageParser::getOpenCount | ( | string | $a_name | ) |
Definition at line 380 of file class.ilQuestionPageParser.php.
ilQuestionPageParser::handlerCharacterData | ( | $a_xml_parser, | |
string | $a_data | ||
) |
Definition at line 1318 of file class.ilQuestionPageParser.php.
References getCurrentElement(), and processMeta().
ilQuestionPageParser::handlerEndTag | ( | $a_xml_parser, | |
string | $a_name | ||
) |
Definition at line 904 of file class.ilQuestionPageParser.php.
References $cur_qid, $import_dir, $xml, ilLMObject\_writeImportId(), buildTag(), ilMDSaxParser\enableMDParsing(), endElement(), IL_MODE_ALIAS, ILIAS\Repository\int(), ILIAS\Repository\lng(), ilUtil\parseImportId(), and processMeta().
|
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 1418 of file class.ilQuestionPageParser.php.
References ILIAS\Repository\int().
Referenced by buildTag(), and processPagesToParse().
ilQuestionPageParser::processMeta | ( | ) |
Definition at line 890 of file class.ilQuestionPageParser.php.
References $in_glossary_definition.
Referenced by buildTag(), handlerCharacterData(), and handlerEndTag().
ilQuestionPageParser::processPagesToParse | ( | ) |
parse pages that contain files, mobs and/or internal links
Definition at line 201 of file class.ilQuestionPageParser.php.
References ILIAS\LTI\ToolProvider\$key, $source, ilPageObject\_exists(), ilInternalLink\_getSourcesOfTarget(), SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilMediaItem\_resolveMapAreaLinks(), ilPageObject\buildDom(), ilPageObjectFactory\getInstance(), parseLinkTarget(), ilPageObject\resolveIntLinks(), and ilPageObject\update().
Referenced by startParsing().
ilQuestionPageParser::setHandlers | ( | $a_xml_parser | ) |
resource | $a_xml_parser |
Definition at line 133 of file class.ilQuestionPageParser.php.
ilQuestionPageParser::setImportMapping | ( | ilImportMapping | $mapping = null | ) |
ilQuestionPageParser::setQuestionMapping | ( | array | $a_map | ) |
set question import ident to pool/test question id mapping
mixed[] | $a_map |
Definition at line 354 of file class.ilQuestionPageParser.php.
ilQuestionPageParser::startParsing | ( | ) |
Definition at line 145 of file class.ilQuestionPageParser.php.
References copyFileItems(), copyMobFiles(), processPagesToParse(), and storeTree().
ilQuestionPageParser::storeTree | ( | ) |
insert StructureObjects and PageObjects into tree
Definition at line 165 of file class.ilQuestionPageParser.php.
References $log, and ilLogger\write().
Referenced by startParsing().
|
protected |
Definition at line 83 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$cnt = [] |
Definition at line 45 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$container = [] |
Definition at line 56 of file class.ilQuestionPageParser.php.
ilObject ilQuestionPageParser::$content_object = null |
Definition at line 63 of file class.ilQuestionPageParser.php.
Referenced by buildTag().
|
protected |
Definition at line 42 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 81 of file class.ilQuestionPageParser.php.
Referenced by handlerEndTag().
array ilQuestionPageParser::$current_element = [] |
Definition at line 46 of file class.ilQuestionPageParser.php.
object ilQuestionPageParser::$current_object = null |
Definition at line 52 of file class.ilQuestionPageParser.php.
ilObjFile ilQuestionPageParser::$file_item = null |
Definition at line 65 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$file_item_mapping = [] |
Definition at line 68 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 82 of file class.ilQuestionPageParser.php.
Referenced by buildTag().
ilObjGlossary ilQuestionPageParser::$glossary_object = null |
Definition at line 64 of file class.ilQuestionPageParser.php.
Referenced by buildTag().
|
protected |
Definition at line 79 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 77 of file class.ilQuestionPageParser.php.
Referenced by getGlossaryTermMap().
|
protected |
Definition at line 43 of file class.ilQuestionPageParser.php.
Referenced by copyFileItems(), copyMobFiles(), and handlerEndTag().
bool ilQuestionPageParser::$in_file_item = false |
Definition at line 60 of file class.ilQuestionPageParser.php.
bool ilQuestionPageParser::$in_glossary = false |
Definition at line 61 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 36 of file class.ilQuestionPageParser.php.
Referenced by processMeta().
bool ilQuestionPageParser::$in_map_area = false |
Definition at line 62 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 84 of file class.ilQuestionPageParser.php.
bool ilQuestionPageParser::$in_media_object = false |
Definition at line 59 of file class.ilQuestionPageParser.php.
bool ilQuestionPageParser::$in_meta_data = false |
Definition at line 58 of file class.ilQuestionPageParser.php.
bool ilQuestionPageParser::$in_meta_meta_data = false |
Definition at line 76 of file class.ilQuestionPageParser.php.
bool 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.
ilObjLearningModule ilQuestionPageParser::$learning_module = null |
Definition at line 47 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$link_targets = [] |
Definition at line 73 of file class.ilQuestionPageParser.php.
ilLMPageObject ilQuestionPageParser::$lm_page_object = null |
Definition at line 49 of file class.ilQuestionPageParser.php.
Referenced by buildTag().
ilLMTree ilQuestionPageParser::$lm_tree = null |
Definition at line 53 of file class.ilQuestionPageParser.php.
string 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().
ilMapArea 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().
ilMediaItem 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.
ilObjMediaObject ilQuestionPageParser::$media_object = null |
Definition at line 51 of file class.ilQuestionPageParser.php.
bool ilQuestionPageParser::$metadata_parsing_disabled = false |
Definition at line 75 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$mob_mapping = [] |
Definition at line 67 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 40 of file class.ilQuestionPageParser.php.
ilPageObject ilQuestionPageParser::$page_object = null |
Definition at line 48 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$pages_to_parse = [] |
Definition at line 66 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$pg_into_tree = [] |
Definition at line 54 of file class.ilQuestionPageParser.php.
|
protected |
Definition at line 39 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$qst_mapping = [] |
Definition at line 74 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$st_into_tree = [] |
Definition at line 55 of file class.ilQuestionPageParser.php.
array ilQuestionPageParser::$structure_objects = [] |
Definition at line 50 of file class.ilQuestionPageParser.php.
string ilQuestionPageParser::$subdir = "" |
Definition at line 69 of file class.ilQuestionPageParser.php.
ilTree ilQuestionPageParser::$tree |
Definition at line 44 of file class.ilQuestionPageParser.php.
Referenced by __construct().