ILIAS
Release_3_10_x_branch Revision 61812
|
Content Object Parser. More...
Public Member Functions | |
ilContObjParser (&$a_content_object, $a_xml_file, $a_subdir) | |
Constructor. | |
setHandlers ($a_xml_parser) | |
set event handlers | |
startParsing () | |
start parser | |
storeTree () | |
insert StructureObjects and PageObjects into tree | |
processPagesToParse () | |
parse pages that contain files, mobs and/or internal links | |
copyMobFiles () | |
copy multimedia object files from import zip file to mob directory | |
copyFileItems () | |
copy files of file items | |
setQuestionMapping ($a_map) | |
set question import ident to pool/test question id mapping | |
beginElement ($a_name) | |
endElement ($a_name) | |
getCurrentElement () | |
getOpenCount ($a_name) | |
buildTag ($type, $name, $attr="") | |
generate a tag with given name and attributes | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element | |
processMeta () | |
check whether meta data should be processed | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data | |
emptyMediaMetaCache (&$a_xml_parser) | |
send all cached tags to the meta data parser and clear the cache | |
Public Member Functions inherited from ilMDSaxParser | |
ilMDSaxParser ($a_xml_file= '') | |
Constructor. | |
enableMDParsing ($a_status) | |
getMDParsingStatus () | |
setMDObject (&$md) | |
& | getMDObject () |
inMetaData () | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
& | __popParent () |
& | __getParent () |
ilMDSaxParser ($a_xml_file= '') | |
Constructor. | |
setMDObject (&$md) | |
inMetaData () | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
& | __popParent () |
& | __getParent () |
Public Member Functions inherited from ilSaxParser | |
ilSaxParser ($a_xml_file= '', $throwException=false) | |
Constructor setup ILIAS global object public. | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
createParser () | |
create parser | |
setOptions ($a_xml_parser) | |
set parser options | |
openXMLFile () | |
open xml file | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file | |
freeParser ($a_xml_parser) | |
free xml parser handle | |
setThrowException ($throwException) | |
set error handling |
Data Fields | |
$lng | |
$tree | |
$cnt | |
$current_element | |
$learning_module | |
$page_object | |
$lm_page_object | |
$structure_objects | |
$media_object | |
$current_object | |
$meta_data | |
$paragraph | |
$table | |
$lm_tree | |
$pg_into_tree | |
$st_into_tree | |
$container | |
$in_page_object | |
$in_meta_data | |
$in_media_object | |
$in_file_item | |
$in_glossary | |
$in_map_area | |
$content_object | |
$glossary_object | |
$file_item | |
$keyword_language | |
$pages_to_parse | |
$mob_mapping | |
$file_item_mapping | |
$subdir | |
$media_item | |
$loc_type | |
$bib_item | |
$map_area | |
$in_bib_item | |
$link_targets | |
$qst_mapping | |
$metadata_parsing_disabled | |
$in_meta_meta_data = false | |
Data Fields inherited from ilMDSaxParser | |
$md_in_md = false | |
$md_chr_data = '' | |
$md_cur_el = null | |
$md_parsing_enabled = null | |
$md = null | |
$md_gen | |
Data Fields inherited from ilSaxParser | |
$input_type = null | |
$xml_content = '' | |
$ilias | |
$lng | |
$xml_file | |
$throwException = false |
Additional Inherited Members | |
Protected Member Functions inherited from ilSaxParser | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle |
Definition at line 52 of file class.ilContObjParser.php.
ilContObjParser::beginElement | ( | $a_name | ) |
Definition at line 405 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
ilContObjParser::buildTag | ( | $type, | |
$name, | |||
$attr = "" |
|||
) |
generate a tag with given name and attributes
string | "start" | "end" for starting or ending tag |
string | element/tag name |
array | array of attributes |
Definition at line 462 of file class.ilContObjParser.php.
Referenced by handlerBeginTag(), and handlerEndTag().
ilContObjParser::copyFileItems | ( | ) |
copy files of file items
Definition at line 360 of file class.ilContObjParser.php.
References $test, ilUtil\makeDir(), and ilUtil\rCopy().
Referenced by startParsing().
ilContObjParser::copyMobFiles | ( | ) |
copy multimedia object files from import zip file to mob directory
Definition at line 316 of file class.ilContObjParser.php.
References ilUtil\getWebspaceDir(), ilUtil\makeDir(), and ilUtil\rCopy().
Referenced by startParsing().
ilContObjParser::emptyMediaMetaCache | ( | & | $a_xml_parser | ) |
send all cached tags to the meta data parser and clear the cache
Definition at line 1553 of file class.ilContObjParser.php.
References handlerBeginTag(), handlerCharacterData(), and handlerEndTag().
Referenced by handlerBeginTag().
ilContObjParser::endElement | ( | $a_name | ) |
Definition at line 423 of file class.ilContObjParser.php.
Referenced by handlerEndTag().
ilContObjParser::getCurrentElement | ( | ) |
Definition at line 432 of file class.ilContObjParser.php.
Referenced by handlerCharacterData().
ilContObjParser::getOpenCount | ( | $a_name | ) |
Definition at line 442 of file class.ilContObjParser.php.
ilContObjParser::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element
resource | $a_xml_parser | xml parser |
string | $a_name | element name |
array | $a_attribs | element attributes array |
Meta Data Section /////////////////////////////////////////////
Reimplemented from ilMDSaxParser.
Definition at line 489 of file class.ilContObjParser.php.
References $_GET, $content_object, $glossary_object, $lm_page_object, beginElement(), buildTag(), emptyMediaMetaCache(), ilMDSaxParser\enableMDParsing(), IL_EXT_LINK, IL_INT_LINK, processMeta(), and ilUtil\yn2tf().
Referenced by emptyMediaMetaCache().
ilContObjParser::handlerCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
handler for character data
resource | $a_xml_parser | xml parser |
string | $a_data | character data |
Reimplemented from ilMDSaxParser.
Definition at line 1475 of file class.ilContObjParser.php.
References getCurrentElement(), and processMeta().
Referenced by emptyMediaMetaCache().
ilContObjParser::handlerEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
handler for end of element
resource | $a_xml_parser | xml parser |
string | $a_name | element name |
Reimplemented from ilMDSaxParser.
Definition at line 979 of file class.ilContObjParser.php.
References $cnt, $dir, $file, $in_glossary, $in_media_object, ilLMObject\_writeImportId(), buildTag(), ilMDSaxParser\enableMDParsing(), endElement(), IL_MODE_ALIAS, and processMeta().
Referenced by emptyMediaMetaCache().
ilContObjParser::ilContObjParser | ( | & | $a_content_object, |
$a_xml_file, | |||
$a_subdir | |||
) |
Constructor.
object | $a_content_object | must be of type ilObjContentObject ilObjTest or ilObjQuestionPool |
string | $a_xml_file | xml file |
string | $a_subdir | subdirectory in import directory public |
Definition at line 104 of file class.ilContObjParser.php.
References $lng, $tree, ilMDSaxParser\ilMDSaxParser(), and ilTree\setTreeTablePK().
ilContObjParser::processMeta | ( | ) |
check whether meta data should be processed
Definition at line 958 of file class.ilContObjParser.php.
Referenced by handlerBeginTag(), handlerCharacterData(), and handlerEndTag().
ilContObjParser::processPagesToParse | ( | ) |
parse pages that contain files, mobs and/or internal links
Definition at line 221 of file class.ilContObjParser.php.
References $page_object, $target_id, $target_type, ilInternalLink\_getSourcesOfTarget(), assQuestion\_resolveIntLinks(), and ilMediaItem\_resolveMapAreaLinks().
Referenced by startParsing().
ilContObjParser::setHandlers | ( | $a_xml_parser | ) |
set event handlers
resource | reference to the xml parser private |
Reimplemented from ilMDSaxParser.
Definition at line 146 of file class.ilContObjParser.php.
ilContObjParser::setQuestionMapping | ( | $a_map | ) |
set question import ident to pool/test question id mapping
Definition at line 396 of file class.ilContObjParser.php.
ilContObjParser::startParsing | ( | ) |
start parser
Reimplemented from ilSaxParser.
Definition at line 157 of file class.ilContObjParser.php.
References copyFileItems(), copyMobFiles(), processPagesToParse(), and storeTree().
ilContObjParser::storeTree | ( | ) |
insert StructureObjects and PageObjects into tree
Definition at line 175 of file class.ilContObjParser.php.
References $ilLog.
Referenced by startParsing().
ilContObjParser::$bib_item |
Definition at line 87 of file class.ilContObjParser.php.
ilContObjParser::$cnt |
Definition at line 56 of file class.ilContObjParser.php.
Referenced by handlerEndTag().
ilContObjParser::$container |
Definition at line 70 of file class.ilContObjParser.php.
ilContObjParser::$content_object |
Definition at line 77 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
ilContObjParser::$current_element |
Definition at line 57 of file class.ilContObjParser.php.
ilContObjParser::$current_object |
Definition at line 63 of file class.ilContObjParser.php.
ilContObjParser::$file_item |
Definition at line 79 of file class.ilContObjParser.php.
ilContObjParser::$file_item_mapping |
Definition at line 83 of file class.ilContObjParser.php.
ilContObjParser::$glossary_object |
Definition at line 78 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
ilContObjParser::$in_bib_item |
Definition at line 89 of file class.ilContObjParser.php.
ilContObjParser::$in_file_item |
Definition at line 74 of file class.ilContObjParser.php.
ilContObjParser::$in_glossary |
Definition at line 75 of file class.ilContObjParser.php.
Referenced by handlerEndTag().
ilContObjParser::$in_map_area |
Definition at line 76 of file class.ilContObjParser.php.
ilContObjParser::$in_media_object |
Definition at line 73 of file class.ilContObjParser.php.
Referenced by handlerEndTag().
ilContObjParser::$in_meta_data |
Definition at line 72 of file class.ilContObjParser.php.
ilContObjParser::$in_meta_meta_data = false |
Definition at line 93 of file class.ilContObjParser.php.
ilContObjParser::$in_page_object |
Definition at line 71 of file class.ilContObjParser.php.
ilContObjParser::$keyword_language |
Definition at line 80 of file class.ilContObjParser.php.
ilContObjParser::$learning_module |
Definition at line 58 of file class.ilContObjParser.php.
ilContObjParser::$link_targets |
Definition at line 90 of file class.ilContObjParser.php.
ilContObjParser::$lm_page_object |
Definition at line 60 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
ilContObjParser::$lm_tree |
Definition at line 67 of file class.ilContObjParser.php.
ilContObjParser::$lng |
Definition at line 54 of file class.ilContObjParser.php.
Referenced by ilContObjParser().
ilContObjParser::$loc_type |
Definition at line 86 of file class.ilContObjParser.php.
ilContObjParser::$map_area |
Definition at line 88 of file class.ilContObjParser.php.
ilContObjParser::$media_item |
Definition at line 85 of file class.ilContObjParser.php.
ilContObjParser::$media_object |
Definition at line 62 of file class.ilContObjParser.php.
ilContObjParser::$meta_data |
Definition at line 64 of file class.ilContObjParser.php.
ilContObjParser::$metadata_parsing_disabled |
Definition at line 92 of file class.ilContObjParser.php.
ilContObjParser::$mob_mapping |
Definition at line 82 of file class.ilContObjParser.php.
ilContObjParser::$page_object |
Definition at line 59 of file class.ilContObjParser.php.
Referenced by processPagesToParse().
ilContObjParser::$pages_to_parse |
Definition at line 81 of file class.ilContObjParser.php.
ilContObjParser::$paragraph |
Definition at line 65 of file class.ilContObjParser.php.
ilContObjParser::$pg_into_tree |
Definition at line 68 of file class.ilContObjParser.php.
ilContObjParser::$qst_mapping |
Definition at line 91 of file class.ilContObjParser.php.
ilContObjParser::$st_into_tree |
Definition at line 69 of file class.ilContObjParser.php.
ilContObjParser::$structure_objects |
Definition at line 61 of file class.ilContObjParser.php.
ilContObjParser::$subdir |
Definition at line 84 of file class.ilContObjParser.php.
ilContObjParser::$table |
Definition at line 66 of file class.ilContObjParser.php.
ilContObjParser::$tree |
Definition at line 55 of file class.ilContObjParser.php.
Referenced by ilContObjParser().