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