mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
[ticket/11698] Moving all autoloadable files to phpbb/
PHPBB3-11698
This commit is contained in:
46
phpBB/phpbb/tree/nestedset_forum.php
Normal file
46
phpBB/phpbb/tree/nestedset_forum.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package tree
|
||||
* @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_tree_nestedset_forum extends phpbb_tree_nestedset
|
||||
{
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
parent::__construct(
|
||||
$db,
|
||||
$lock,
|
||||
$table_name,
|
||||
'FORUM_NESTEDSET_',
|
||||
'',
|
||||
array(
|
||||
'forum_id',
|
||||
'forum_name',
|
||||
'forum_type',
|
||||
),
|
||||
array(
|
||||
'item_id' => 'forum_id',
|
||||
'item_parents' => 'forum_parents',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user