aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/nestedset/item/forum.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-04-16 23:09:21 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-04-16 23:09:21 +0200
commit57a05e7cf509f56309591aaf9344226a8f1a9a8e (patch)
tree5cb1698cd3a4263f3c815db82536ae55da7a7b36 /phpBB/includes/nestedset/item/forum.php
parent0d5efcc1d569b3907eebfacef84ac0be3fd11143 (diff)
downloadforums-57a05e7cf509f56309591aaf9344226a8f1a9a8e.tar
forums-57a05e7cf509f56309591aaf9344226a8f1a9a8e.tar.gz
forums-57a05e7cf509f56309591aaf9344226a8f1a9a8e.tar.bz2
forums-57a05e7cf509f56309591aaf9344226a8f1a9a8e.tar.xz
forums-57a05e7cf509f56309591aaf9344226a8f1a9a8e.zip
[ticket/11495] Add forum implementation of nestedset
PHPBB3-11495
Diffstat (limited to 'phpBB/includes/nestedset/item/forum.php')
-rw-r--r--phpBB/includes/nestedset/item/forum.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/phpBB/includes/nestedset/item/forum.php b/phpBB/includes/nestedset/item/forum.php
new file mode 100644
index 0000000000..9475517999
--- /dev/null
+++ b/phpBB/includes/nestedset/item/forum.php
@@ -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'];
+ }
+}