本文整理汇总了PHP中ilLMObject::preloadDataByLM方法的典型用法代码示例。如果您正苦于以下问题:PHP ilLMObject::preloadDataByLM方法的具体用法?PHP ilLMObject::preloadDataByLM怎么用?PHP ilLMObject::preloadDataByLM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilLMObject
的用法示例。
在下文中一共展示了ilLMObject::preloadDataByLM方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @param object $a_parent_obj parent gui object
* @param string $a_parent_cmd parent cmd
* @param ilObjContentObject $a_lm learning module
*/
public function __construct($a_parent_obj, $a_parent_cmd, ilObjContentObject $a_lm, $a_id = "")
{
$this->lm = $a_lm;
include_once "./Modules/LearningModule/classes/class.ilLMTree.php";
$tree = ilLMTree::getInstance($this->lm->getId());
//echo "+".$tree->isCacheUsed()."+";
// $tree = new ilTree($this->lm->getId());
// $tree->setTableNames('lm_tree','lm_data');
// $tree->setTreeTablePK("lm_id");
include_once "./Modules/LearningModule/classes/class.ilLMObject.php";
$this->cnt_lmobj = ilLMObject::preloadDataByLM($this->lm->getId());
include_once "./Services/COPage/classes/class.ilPageObject.php";
ilPageObject::preloadActivationDataByParentId($this->lm->getId());
if ($a_id == "") {
$a_id = "lm_exp";
// this does not work, since it is not set yet
if ($this->getOfflineMode()) {
$a_id = "lm_exp_off";
}
}
parent::__construct($a_id, $a_parent_obj, $a_parent_cmd, $tree);
$this->setSkipRootNode(false);
$this->setAjax(false);
$this->setPreloadChilds(true);
if ((int) $_GET["obj_id"] > 0) {
$this->setPathOpen((int) $_GET["obj_id"]);
}
}