mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-26 13:16:14 +01:00
[ticket/11495] Add forum implementation of nestedset
PHPBB3-11495
This commit is contained in:
28
phpBB/includes/nestedset/item/forum.php
Normal file
28
phpBB/includes/nestedset/item/forum.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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_item_forum extends phpbb_nestedset_item_base
|
||||
{
|
||||
public function __construct(array $forum_row)
|
||||
{
|
||||
$this->item_id = (int) $forum_row['forum_id'];
|
||||
$this->parent_id = (int) $forum_row['parent_id'];
|
||||
$this->left_id = (int) $forum_row['left_id'];
|
||||
$this->right_id = (int) $forum_row['right_id'];
|
||||
$this->item_parents_data = (string) $forum_row['forum_parents'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user