當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilTree::__construct方法代碼示例

本文整理匯總了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');
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:7,代碼來源:class.ilSkillTree.php

示例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);
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:7,代碼來源:class.ilECSCmsTree.php

示例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;
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:12,代碼來源:class.ilOrgUnitTree.php

示例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();
     }
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:12,代碼來源:class.ilWorkspaceTree.php

示例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();
     }
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:14,代碼來源:class.ilWorkspaceTree.php

示例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');
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:10,代碼來源:class.ilBookmarkTree.php

示例7:

 /**
  * Constructor
  */
 function __construct($a_id)
 {
     parent::__construct($a_id);
     $this->setTableNames('sahs_sc13_tree', 'sahs_sc13_tree_node');
     $this->setTreeTablePK("slm_id");
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:9,代碼來源:class.ilSCORM2004Tree.php

示例8:

 function __construct($a_id)
 {
     parent::__construct($a_id);
     $this->setTreeTablePK("tax_tree_id");
     $this->setTableNames('tax_tree', 'tax_node');
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:6,代碼來源:class.ilTaxonomyTree.php


注:本文中的ilTree::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。