本文整理汇总了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;
}