예제 #1
0
 /**
  * Construct
  *
  * @param \phpbb\db\driver\driver_interface	$db		Database connection
  * @param \phpbb\lock\db		$lock	Lock class used to lock the table when moving forums around
  * @param string				$table_name		Table name
  */
 public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name)
 {
     parent::__construct($db, $lock, $table_name, 'FORUM_NESTEDSET_', '', array('forum_id', 'forum_name', 'forum_type'), array('item_id' => 'forum_id', 'item_parents' => 'forum_parents'));
 }
예제 #2
0
 /**
  * Construct
  *
  * @param \phpbb\db\driver\driver_interface $db Database connection
  * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around
  * @param string $table_name Table name
  * @access public
  */
 public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name)
 {
     parent::__construct($db, $lock, $table_name, 'RULES_NESTEDSET_', '', array(), array('item_id' => 'rule_id', 'parent_id' => 'rule_parent_id', 'left_id' => 'rule_left_id', 'right_id' => 'rule_right_id', 'item_parents' => 'rule_parents'));
 }
 /**
  * Construct
  *
  * @param \phpbb\db\driver\driver_interface	$db		Database connection
  * @param \phpbb\lock\db						$lock	Lock class used to lock the table when moving forums around
  */
 public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock)
 {
     parent::__construct($db, $lock, DIR_CAT_TABLE, 'DIR_NESTEDSET_', '', array('cat_id', 'cat_name'), array('item_id' => 'cat_id', 'parent_id' => 'parent_id', 'item_parents' => 'cat_parents'));
 }