1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11495] Use item_id only as parameter for delete() and remove()

The data is acquired again anyway

PHPBB3-11495
This commit is contained in:
Joas Schilling
2013-04-19 16:19:01 +02:00
parent d24ff2329f
commit 3d54a81ed9
3 changed files with 15 additions and 14 deletions

View File

@@ -38,20 +38,20 @@ interface phpbb_nestedset_interface
*
* Also removes all subitems from the nested set
*
* @param array $item The item to be removed
* @return array Items that have been removed
* @param int $item_id The item to be deleted
* @return array Item ids that have been removed
*/
public function remove(array $item);
public function remove($item);
/**
* Delete an item from the nested set (also deletes the rows form the table)
*
* Also deletes all subitems from the nested set
*
* @param array $item The item to be deleted
* @return array Items that have been deleted
* @param int $item_id The item to be deleted
* @return array Item ids that have been deleted
*/
public function delete(array $item);
public function delete($item);
/**
* Move an item by a given delta