1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-15 21:35:46 +02:00

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

View File

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

View File

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