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:
@@ -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;
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user