1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11495] Rename set_parent to change_parent()

PHPBB3-11495
This commit is contained in:
Joas Schilling
2013-04-25 13:48:19 +02:00
parent 3efae6d8af
commit ab7054445f
3 changed files with 17 additions and 15 deletions

View File

@@ -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;

View File

@@ -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