本文整理汇总了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) {