[ticket/11495] Move classes to tree/ as they all implement a tree

PHPBB3-11495
This commit is contained in:
Joas Schilling 2013-04-25 17:04:37 +02:00
parent 94dee77647
commit b334a2ce0f
4 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* *
* @package Nested Set * @package Tree
* @copyright (c) 2013 phpBB Group * @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* *
@ -15,7 +15,7 @@ if (!defined('IN_PHPBB'))
exit; exit;
} }
interface phpbb_nestedset_interface interface phpbb_tree_interface
{ {
/** /**
* Insert an item into the nested set (also insert the rows into the table) * Insert an item into the nested set (also insert the rows into the table)

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* *
* @package Nested Set * @package Tree - Nested Set
* @copyright (c) 2013 phpBB Group * @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* *
@ -15,7 +15,7 @@ if (!defined('IN_PHPBB'))
exit; exit;
} }
abstract class phpbb_nestedset_base implements phpbb_nestedset_interface abstract class phpbb_tree_nestedset implements phpbb_tree_interface
{ {
/** @var phpbb_db_driver */ /** @var phpbb_db_driver */
protected $db; protected $db;

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* *
* @package Nested Set * @package Tree - Nested Set Forum
* @copyright (c) 2013 phpBB Group * @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* *
@ -15,7 +15,7 @@ if (!defined('IN_PHPBB'))
exit; exit;
} }
class phpbb_nestedset_forum extends phpbb_nestedset_base class phpbb_tree_nestedset_forum extends phpbb_tree_nestedset
{ {
/** /**
* Column names in the table * Column names in the table

View file

@ -56,7 +56,7 @@ class phpbb_tests_nestedset_set_forum_base extends phpbb_database_test_case
set_config(null, null, null, $this->config); set_config(null, null, null, $this->config);
$this->lock = new phpbb_lock_db('nestedset_forum_lock', $this->config, $this->db); $this->lock = new phpbb_lock_db('nestedset_forum_lock', $this->config, $this->db);
$this->set = new phpbb_nestedset_forum($this->db, $this->lock, 'phpbb_forums'); $this->set = new phpbb_tree_nestedset_forum($this->db, $this->lock, 'phpbb_forums');
$this->set_up_forums(); $this->set_up_forums();
} }