Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Represents a recyclebin. More...
Public Member Functions | |
can_delete () | |
Can we delete this? More... | |
can_restore () | |
Can we restore items in this recycle bin? More... | |
can_view () | |
Can we view items in this recycle bin? More... | |
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. More... | |
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? More... | |
Represents a recyclebin.
|
abstract |
Can we delete this?
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Can we restore items in this recycle bin?
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Can we view items in this recycle bin?
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Delete an item from the recycle bin.
stdClass | $item | The item database record |
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Returns an item from the recycle bin.
int | $itemid | Item ID to retrieve. |
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Returns a list of items in the recycle bin.
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
static |
Is this recyclebin enabled?
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Restore an item from the recycle bin.
stdClass | $item | The item database record |
Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.
|
abstract |
Store an item in this recycle bin.
stdClass | $item | Item to store. |
Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.