當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilLMObject::_writeImportId方法代碼示例

本文整理匯總了PHP中ilLMObject::_writeImportId方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilLMObject::_writeImportId方法的具體用法?PHP ilLMObject::_writeImportId怎麽用?PHP ilLMObject::_writeImportId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ilLMObject的用法示例。


在下文中一共展示了ilLMObject::_writeImportId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: handlerEndTag


//.........這裏部分代碼省略.........
                         $this->mobs_with_int_links[] = $this->media_object->getId();
                     }
                 }
             }
             // append media alias to page, if we are in a page
             if ($this->in_page_object || $this->in_glossary_definition) {
                 $this->page_object->appendXMLContent($this->media_object->getXML(IL_MODE_ALIAS));
                 //echo "Appending:".htmlentities($this->media_object->getXML(IL_MODE_ALIAS))."<br>";
             }
             break;
         case "MediaItem":
         case "MediaAliasItem":
             $this->in_media_item = false;
             $this->media_object->addMediaItem($this->media_item);
             //echo "adding media item -".$this->media_item->getId()."-".$this->media_item->getLocation()."- to object -".$this->media_object->getId()."-";
             break;
         case "MapArea":
             $this->in_map_area = false;
             $this->media_item->addMapArea($this->map_area);
             break;
         case "Properties":
             $this->in_properties = false;
             if ($this->content_object->getType() == "lm" || $this->content_object->getType() == "dbk") {
                 $this->content_object->update();
             }
             break;
         case "MetaData":
             $this->in_meta_data = false;
             if (strtolower(get_class($this->current_object)) == "illmpageobject" && !$this->in_media_object) {
                 // Metadaten eines PageObjects sichern in NestedSet
                 if (is_object($this->lm_page_object)) {
                     // update title/description of page object
                     $this->current_object->MDUpdateListener('General');
                     ilLMObject::_writeImportId($this->current_object->getId(), $this->current_object->getImportId());
                 }
             } else {
                 if ((strtolower(get_class($this->current_object)) == "ilobjquestionpool" || strtolower(get_class($this->current_object)) == "ilobjtest") && !$this->in_media_object) {
                     if ($this->metadata_parsing_disabled) {
                         $this->enableMDParsing(true);
                     } else {
                         if ($this->in_page_object) {
                             $this->page_object->MDUpdateListener('General');
                             ilLMObject::_writeImportId($this->page_object->getId(), $this->page_object->getImportId());
                         } else {
                             $this->current_object->MDUpdateListener('General');
                             ilLMObject::_writeImportId($this->current_object->getId(), $this->current_object->getImportId());
                         }
                     }
                 } else {
                     if (strtolower(get_class($this->current_object)) == "ilstructureobject") {
                         // save structure object at the end of its meta block
                         // determine parent
                         $cnt = count($this->structure_objects);
                         if ($cnt > 1) {
                             $parent_id = $this->structure_objects[$cnt - 2]->getId();
                         } else {
                             $parent_id = $this->lm_tree->getRootId();
                         }
                         // create structure object and put it in tree
                         //$this->current_object->create(true); // now on top
                         $this->st_into_tree[] = array("id" => $this->current_object->getId(), "parent" => $parent_id);
                         // update title/description of structure object
                         $this->current_object->MDUpdateListener('General');
                         ilLMObject::_writeImportId($this->current_object->getId(), $this->current_object->getImportId());
                     } else {
                         if (strtolower(get_class($this->current_object)) == "ilobjdlbook" || strtolower(get_class($this->current_object)) == "ilobjlearningmodule" || strtolower(get_class($this->current_object)) == "ilobjcontentobject" || strtolower(get_class($this->current_object)) == "ilobjglossary" && $this->in_glossary) {
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:67,代碼來源:class.ilContObjParser.php


注:本文中的ilLMObject::_writeImportId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。