|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Content Object Parser. More...
Inheritance diagram for ilContObjParser:
Collaboration diagram for ilContObjParser:Public Member Functions | |
| ilContObjParser (&$a_content_object, $a_xml_file, $a_subdir) | |
| Constructor. More... | |
| setHandlers ($a_xml_parser) | |
| set event handlers More... | |
| startParsing () | |
| start parser 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 ($a_map) | |
| set question import ident to pool/test question id mapping More... | |
| beginElement ($a_name) | |
| endElement ($a_name) | |
| getCurrentElement () | |
| getOpenCount ($a_name) | |
| buildTag ($type, $name, $attr="") | |
| generate a tag with given name and attributes More... | |
| handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
| handler for begin of element More... | |
| processMeta () | |
| check whether meta data should be processed More... | |
| 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) | |
| send all cached tags to the meta data parser and clear the cache More... | |
| getGlossaryTermMap () | |
| Get glossary term map (imported ids to new ids) More... | |
Public Member Functions inherited from ilMDSaxParser | |
| ilMDSaxParser ($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 () |
| ilMDSaxParser ($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 | |
| ilSaxParser ($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 | |
| PEAR ($error_class=null) | |
| Constructor. More... | |
| _PEAR () | |
| Destructor (the emulated type of...). More... | |
| & | 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... | |
| 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... | |
| setErrorHandling ($mode=null, $options=null) | |
| Sets how errors generated by this object should be handled. 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 | |
| $glossary_term_map = array() | |
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 More... | |
| ilContObjParser::beginElement | ( | $a_name | ) |
Definition at line 417 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
Here is the caller graph for this function:| 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 474 of file class.ilContObjParser.php.
Referenced by handlerBeginTag(), and handlerEndTag().
Here is the caller graph for this function:| ilContObjParser::copyFileItems | ( | ) |
copy files of file items
Definition at line 372 of file class.ilContObjParser.php.
References $test, ilUtil\makeDir(), and ilUtil\rCopy().
Referenced by startParsing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilContObjParser::copyMobFiles | ( | ) |
copy multimedia object files from import zip file to mob directory
Definition at line 327 of file class.ilContObjParser.php.
References 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:| ilContObjParser::emptyMediaMetaCache | ( | & | $a_xml_parser | ) |
send all cached tags to the meta data parser and clear the cache
Definition at line 1651 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
Here is the caller graph for this function:| ilContObjParser::endElement | ( | $a_name | ) |
Definition at line 435 of file class.ilContObjParser.php.
Referenced by handlerEndTag().
Here is the caller graph for this function:| ilContObjParser::getCurrentElement | ( | ) |
Definition at line 444 of file class.ilContObjParser.php.
Referenced by handlerCharacterData().
Here is the caller graph for this function:| ilContObjParser::getGlossaryTermMap | ( | ) |
Get glossary term map (imported ids to new ids)
return
Definition at line 1684 of file class.ilContObjParser.php.
References $glossary_term_map.
| ilContObjParser::getOpenCount | ( | $a_name | ) |
Definition at line 454 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 501 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().
Here is the call graph for this function:| 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 1573 of file class.ilContObjParser.php.
References getCurrentElement(), and processMeta().
Here is the call graph for this function:| 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 1038 of file class.ilContObjParser.php.
References $cnt, $file, ilLMObject\_writeImportId(), buildTag(), ilMDSaxParser\enableMDParsing(), endElement(), IL_MODE_ALIAS, and processMeta().
Here is the call graph for this function:| 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 @access public |
Definition at line 85 of file class.ilContObjParser.php.
| ilContObjParser::processMeta | ( | ) |
check whether meta data should be processed
Definition at line 1017 of file class.ilContObjParser.php.
Referenced by handlerBeginTag(), handlerCharacterData(), and handlerEndTag().
Here is the caller graph for this function:| ilContObjParser::processPagesToParse | ( | ) |
parse pages that contain files, mobs and/or internal links
Definition at line 206 of file class.ilContObjParser.php.
References $page_object, $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:| ilContObjParser::setHandlers | ( | $a_xml_parser | ) |
set event handlers
| resource | reference to the xml parser @access private |
Reimplemented from ilMDSaxParser.
Definition at line 127 of file class.ilContObjParser.php.
| ilContObjParser::setQuestionMapping | ( | $a_map | ) |
set question import ident to pool/test question id mapping
Definition at line 408 of file class.ilContObjParser.php.
| ilContObjParser::startParsing | ( | ) |
start parser
Reimplemented from ilSaxParser.
Definition at line 138 of file class.ilContObjParser.php.
References copyFileItems(), copyMobFiles(), processPagesToParse(), and storeTree().
Here is the call graph for this function:| ilContObjParser::storeTree | ( | ) |
insert StructureObjects and PageObjects into tree
Definition at line 157 of file class.ilContObjParser.php.
References $ilLog.
Referenced by startParsing().
Here is the caller graph for this function:| ilContObjParser::$bib_item |
Definition at line 67 of file class.ilContObjParser.php.
| ilContObjParser::$cnt |
Definition at line 36 of file class.ilContObjParser.php.
Referenced by handlerEndTag().
| ilContObjParser::$container |
Definition at line 50 of file class.ilContObjParser.php.
| ilContObjParser::$content_object |
Definition at line 57 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
| ilContObjParser::$current_element |
Definition at line 37 of file class.ilContObjParser.php.
| ilContObjParser::$current_object |
Definition at line 43 of file class.ilContObjParser.php.
| ilContObjParser::$file_item |
Definition at line 59 of file class.ilContObjParser.php.
| ilContObjParser::$file_item_mapping |
Definition at line 63 of file class.ilContObjParser.php.
| ilContObjParser::$glossary_object |
Definition at line 58 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
|
protected |
Definition at line 74 of file class.ilContObjParser.php.
Referenced by getGlossaryTermMap().
| ilContObjParser::$in_bib_item |
Definition at line 69 of file class.ilContObjParser.php.
| ilContObjParser::$in_file_item |
Definition at line 54 of file class.ilContObjParser.php.
| ilContObjParser::$in_glossary |
Definition at line 55 of file class.ilContObjParser.php.
| ilContObjParser::$in_map_area |
Definition at line 56 of file class.ilContObjParser.php.
| ilContObjParser::$in_media_object |
Definition at line 53 of file class.ilContObjParser.php.
| ilContObjParser::$in_meta_data |
Definition at line 52 of file class.ilContObjParser.php.
| ilContObjParser::$in_meta_meta_data = false |
Definition at line 73 of file class.ilContObjParser.php.
| ilContObjParser::$in_page_object |
Definition at line 51 of file class.ilContObjParser.php.
| ilContObjParser::$keyword_language |
Definition at line 60 of file class.ilContObjParser.php.
| ilContObjParser::$learning_module |
Definition at line 38 of file class.ilContObjParser.php.
| ilContObjParser::$link_targets |
Definition at line 70 of file class.ilContObjParser.php.
| ilContObjParser::$lm_page_object |
Definition at line 40 of file class.ilContObjParser.php.
Referenced by handlerBeginTag().
| ilContObjParser::$lm_tree |
Definition at line 47 of file class.ilContObjParser.php.
| ilContObjParser::$lng |
Definition at line 34 of file class.ilContObjParser.php.
Referenced by ilContObjParser().
| ilContObjParser::$loc_type |
Definition at line 66 of file class.ilContObjParser.php.
| ilContObjParser::$map_area |
Definition at line 68 of file class.ilContObjParser.php.
| ilContObjParser::$media_item |
Definition at line 65 of file class.ilContObjParser.php.
| ilContObjParser::$media_object |
Definition at line 42 of file class.ilContObjParser.php.
| ilContObjParser::$meta_data |
Definition at line 44 of file class.ilContObjParser.php.
| ilContObjParser::$metadata_parsing_disabled |
Definition at line 72 of file class.ilContObjParser.php.
| ilContObjParser::$mob_mapping |
Definition at line 62 of file class.ilContObjParser.php.
| ilContObjParser::$page_object |
Definition at line 39 of file class.ilContObjParser.php.
Referenced by processPagesToParse().
| ilContObjParser::$pages_to_parse |
Definition at line 61 of file class.ilContObjParser.php.
| ilContObjParser::$paragraph |
Definition at line 45 of file class.ilContObjParser.php.
| ilContObjParser::$pg_into_tree |
Definition at line 48 of file class.ilContObjParser.php.
| ilContObjParser::$qst_mapping |
Definition at line 71 of file class.ilContObjParser.php.
| ilContObjParser::$st_into_tree |
Definition at line 49 of file class.ilContObjParser.php.
| ilContObjParser::$structure_objects |
Definition at line 41 of file class.ilContObjParser.php.
| ilContObjParser::$subdir |
Definition at line 64 of file class.ilContObjParser.php.
| ilContObjParser::$table |
Definition at line 46 of file class.ilContObjParser.php.
| ilContObjParser::$tree |
Definition at line 35 of file class.ilContObjParser.php.
Referenced by ilContObjParser().