diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-04-25 13:48:19 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-04-25 13:48:19 +0200 |
commit | ab7054445fbf397ae5bf4c13eb44a2019d71cc2d (patch) | |
tree | bee136b7ebddf1ee18e33c232f9899e92087c53d /phpBB/includes | |
parent | 3efae6d8af6dfe22c0790d3004fdbf20eb16a292 (diff) | |
download | forums-ab7054445fbf397ae5bf4c13eb44a2019d71cc2d.tar forums-ab7054445fbf397ae5bf4c13eb44a2019d71cc2d.tar.gz forums-ab7054445fbf397ae5bf4c13eb44a2019d71cc2d.tar.bz2 forums-ab7054445fbf397ae5bf4c13eb44a2019d71cc2d.tar.xz forums-ab7054445fbf397ae5bf4c13eb44a2019d71cc2d.zip |
[ticket/11495] Rename set_parent to change_parent()
PHPBB3-11495
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/nestedset/base.php | 2 | ||||
-rw-r--r-- | phpBB/includes/nestedset/interface.php | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/nestedset/base.php b/phpBB/includes/nestedset/base.php index 1a6b578e79..3817a6d217 100644 --- a/phpBB/includes/nestedset/base.php +++ b/phpBB/includes/nestedset/base.php @@ -388,7 +388,7 @@ abstract class phpbb_nestedset_base implements phpbb_nestedset_interface /** * @inheritdoc */ - public function set_parent($item_id, $new_parent_id) + public function change_parent($item_id, $new_parent_id) { $item_id = (int) $item_id; $new_parent_id = (int) $new_parent_id; diff --git a/phpBB/includes/nestedset/interface.php b/phpBB/includes/nestedset/interface.php index 9a8f9c4eea..a2dbc55c7d 100644 --- a/phpBB/includes/nestedset/interface.php +++ b/phpBB/includes/nestedset/interface.php @@ -95,13 +95,15 @@ interface phpbb_nestedset_interface public function move_children($current_parent_id, $new_parent_id); /** - * Set the parent item + * Change parent item + * + * Moves the item to the bottom of the new parent's list of children * * @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($item, $new_parent_id); + public function change_parent($item, $new_parent_id); /** * Get branch of the item |