|
Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Represents a recyclebin. More...
Public Member Functions | |
| can_delete () | |
| Can we delete this? | |
| can_restore () | |
| Can we restore items in this recycle bin? | |
| can_view () | |
| Can we view items in this recycle bin? | |
| delete_all_items () | |
| Empty the recycle bin. | |
| delete_item ($item) | |
| Delete an item from the recycle bin. More... | |
| get_item ($itemid) | |
| Returns an item from the recycle bin. More... | |
| get_items () | |
| Returns a list of items in the recycle bin. | |
| restore_item ($item) | |
| Restore an item from the recycle bin. More... | |
| store_item ($item) | |
| Store an item in this recycle bin. More... | |
Static Public Member Functions | |
| static | is_enabled () |
| Is this recyclebin enabled? | |
Represents a recyclebin.
|
abstract |
Delete an item from the recycle bin.
| stdClass | $item | The item database record |
Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.
|
abstract |
Returns an item from the recycle bin.
| int | $itemid | Item ID to retrieve. |
Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.
|
abstract |
Restore an item from the recycle bin.
| stdClass | $item | The item database record |
Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.
|
abstract |
Store an item in this recycle bin.
| stdClass | $item | Item to store. |
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.