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


PHP ilObject::cloneDependencies方法代碼示例

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


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

示例1: cloneDependencies

 function cloneDependencies($a_target_id, $a_copy_id)
 {
     return parent::cloneDependencies($a_target_id, $a_copy_id);
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:4,代碼來源:class.ilObject2.php

示例2: cloneDependencies

 /**
  * Clone object dependencies (container sorting)
  *
  * @access public
  * @param int target ref id of new course
  * @param int copy id
  * return bool 
  */
 public function cloneDependencies($a_target_id, $a_copy_id)
 {
     global $ilLog;
     parent::cloneDependencies($a_target_id, $a_copy_id);
     include_once './Services/Container/classes/class.ilContainerSorting.php';
     ilContainerSorting::_getInstance($this->getId())->cloneSorting($a_target_id, $a_copy_id);
     // fix item group references in page content
     include_once "./Modules/ItemGroup/classes/class.ilObjItemGroup.php";
     ilObjItemGroup::fixContainerItemGroupRefsAfterCloning($this, $a_copy_id);
     include_once 'Services/Object/classes/class.ilObjectLP.php';
     $olp = ilObjectLP::getInstance($this->getId());
     $collection = $olp->getCollectionInstance();
     if ($collection) {
         $collection->cloneCollection($a_target_id, $a_copy_id);
     }
     return true;
 }
開發者ID:bheyser,項目名稱:qplskl,代碼行數:25,代碼來源:class.ilContainer.php

示例3: cloneDependencies

 /**
  * Clone dependencies
  *  
  * @param int target id ref_id of new session
  * @param int copy_id
  * @return
  */
 public function cloneDependencies($a_target_id, $a_copy_id)
 {
     global $ilObjDataCache;
     parent::cloneDependencies($a_target_id, $a_copy_id);
     $target_obj_id = $ilObjDataCache->lookupObjId($a_target_id);
     include_once './Modules/Session/classes/class.ilEventItems.php';
     $session_materials = new ilEventItems($target_obj_id);
     $session_materials->cloneItems($this->getId(), $a_copy_id);
     return true;
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:17,代碼來源:class.ilObjSession.php

示例4: cloneDependencies

 /**
  * Clone object dependencies (container sorting)
  *
  * @access public
  * @param int target ref id of new course
  * @param int copy id
  * return bool 
  */
 public function cloneDependencies($a_target_id, $a_copy_id)
 {
     parent::cloneDependencies($a_target_id, $a_copy_id);
     include_once './Services/Container/classes/class.ilContainerSorting.php';
     ilContainerSorting::_getInstance($this->getId())->cloneSorting($a_target_id, $a_copy_id);
     // fix item group references in page content
     include_once "./Modules/ItemGroup/classes/class.ilObjItemGroup.php";
     ilObjItemGroup::fixContainerItemGroupRefsAfterCloning($this, $a_copy_id);
     return true;
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:18,代碼來源:class.ilContainer.php


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