本文整理匯總了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);
}
示例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;
}
示例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;
}
示例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;
}