aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/nestedset/forum.php
blob: 54a26772d51dd0b585e4150a5573e61acd21f938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
*
* @package Nested Set
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

class phpbb_nestedset_forum extends phpbb_nestedset_base
{
	/**
	* Column names in the table
	* @var String
	*/
	protected $column_item_id = 'forum_id';
	protected $column_item_parents = 'forum_parents';

	/**
	* Prefix for the language keys returned by exceptions
	* @var String
	*/
	protected $message_prefix = 'FORUM_NESTEDSET_';

	/**
	* List of item properties to be cached in $item_parents
	* @var array
	*/
	protected $item_basic_data = array('forum_id', 'forum_name', 'forum_type');

	/**
	* Construct
	*
	* @param phpbb_db_driver	$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 $db, phpbb_lock_db $lock, $table_name)
	{
		$this->db = $db;
		$this->lock = $lock;
		$this->table_name = $table_name;
	}
}