aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/nestedset/interface.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-04-19 21:07:42 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-04-19 21:07:42 +0200
commit87dc3b1e55bcfcade98eedfaa07e77c454dd7d4f (patch)
tree214d118cff74e8fa46d38765faf680c22c1d2140 /phpBB/includes/nestedset/interface.php
parentf66b5323a75db084686d9a16c7090b15c5c13e54 (diff)
downloadforums-87dc3b1e55bcfcade98eedfaa07e77c454dd7d4f.tar
forums-87dc3b1e55bcfcade98eedfaa07e77c454dd7d4f.tar.gz
forums-87dc3b1e55bcfcade98eedfaa07e77c454dd7d4f.tar.bz2
forums-87dc3b1e55bcfcade98eedfaa07e77c454dd7d4f.tar.xz
forums-87dc3b1e55bcfcade98eedfaa07e77c454dd7d4f.zip
[ticket/11495] Use item ids instead of requiring all data
The data is grabbed again in most cases anyway, so it just makes the system easier to use. PHPBB3-11495
Diffstat (limited to 'phpBB/includes/nestedset/interface.php')
-rw-r--r--phpBB/includes/nestedset/interface.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/phpBB/includes/nestedset/interface.php b/phpBB/includes/nestedset/interface.php
index 1a6b09f975..aedd57821a 100644
--- a/phpBB/includes/nestedset/interface.php
+++ b/phpBB/includes/nestedset/interface.php
@@ -56,45 +56,45 @@ interface phpbb_nestedset_interface
/**
* Move an item by a given delta
*
- * @param array $item The item to be moved
- * @param int $delta Number of steps to move this item, < 0 => down, > 0 => up
+ * @param int $item_id The item to be moved
+ * @param int $delta Number of steps to move this item, < 0 => down, > 0 => up
* @return bool True if the item was moved
*/
- public function move(array $item, $delta);
+ public function move($item_id, $delta);
/**
* Move an item down by 1
*
- * @param array $item The item to be moved
+ * @param int $item_id The item to be moved
* @return bool True if the item was moved
*/
- public function move_down(array $item);
+ public function move_down($item_id);
/**
* Move an item up by 1
*
- * @param array $item The item to be moved
+ * @param int $item_id The item to be moved
* @return bool True if the item was moved
*/
- public function move_up(array $item);
+ public function move_up($item_id);
/**
* Moves all children of one item to another item
*
- * @param array $current_parent The current parent item
- * @param array $new_parent The new parent item
+ * @param int $current_parent_id The current parent item
+ * @param int $new_parent_id The new parent item
* @return bool True if any items where moved
*/
- public function move_children(array $current_parent, array $new_parent);
+ public function move_children($current_parent_id, $new_parent_id);
/**
* Set the parent item
*
- * @param array $item The item to be moved
- * @param array $new_parent The new parent item
+ * @param int $item_id The item to be moved
+ * @param int $new_parent_id The new parent item
* @return bool True if the parent was set successfully
*/
- public function set_parent(array $item, array $new_parent);
+ public function set_parent($item, $new_parent_id);
/**
* Get branch of the item