本文整理汇总了PHP中ilTree::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTree::__construct方法的具体用法?PHP ilTree::__construct怎么用?PHP ilTree::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTree
的用法示例。
在下文中一共展示了ilTree::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct()
{
parent::__construct(1);
// only one skill tree, with ID 1
$this->setTreeTablePK("skl_tree_id");
$this->setTableNames('skl_tree', 'skl_tree_node');
}
示例2: __construct
public function __construct($a_tree_id)
{
parent::__construct($a_tree_id, self::lookupRootId($a_tree_id));
$this->setObjectTablePK('obj_id');
$this->setTableNames('ecs_cms_tree', 'ecs_cms_data');
$this->useCache(false);
}
示例3: __construct
public function __construct()
{
parent::__construct(self::ROOT_UNIT_ID);
$this->tree_id = self::TREE_ID;
$this->table_tree = 'org_unit_tree';
$this->table_obj_data = 'org_unit_data';
$this->table_obj_reference = '';
$this->tree_pk = 'tree';
$this->obj_pk = 'ou_id';
$this->ref_pk = '';
$this->gap = 0;
}
示例4: __construct
public function __construct($a_tree_id, $a_root_id = 0)
{
parent::__construct($a_tree_id, $a_root_id);
$this->setTableNames('tree_workspace', 'object_data', 'object_reference_ws');
$this->setTreeTablePK('tree');
$this->setObjectTablePK('obj_id');
$this->setReferenceTablePK('wsp_id');
// ilTree sets it to ROOT_FOLDER_ID if not given...
if (!$a_root_id) {
$this->readRootId();
}
}
示例5: __construct
public function __construct($a_tree_id, $a_root_id = 0)
{
parent::__construct($a_tree_id, $a_root_id);
$this->table_tree = 'tree_workspace';
$this->table_obj_data = 'object_data';
$this->table_obj_reference = 'object_reference_ws';
$this->ref_pk = 'wsp_id';
$this->obj_pk = 'obj_id';
$this->tree_pk = 'tree';
// ilTree sets it to ROOT_FOLDER_ID if not given...
if (!$a_root_id) {
$this->root_id = $this->readRootId();
}
}
示例6:
/**
* Constructor
*
* @param int $a_user_id user id
*/
function __construct($a_user_id)
{
parent::__construct($a_user_id);
$this->setTableNames('bookmark_tree', 'bookmark_data');
}
示例7:
/**
* Constructor
*/
function __construct($a_id)
{
parent::__construct($a_id);
$this->setTableNames('sahs_sc13_tree', 'sahs_sc13_tree_node');
$this->setTreeTablePK("slm_id");
}
示例8:
function __construct($a_id)
{
parent::__construct($a_id);
$this->setTreeTablePK("tax_tree_id");
$this->setTableNames('tax_tree', 'tax_node');
}