Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Static Public Member Functions | List of all members
tool_recyclebin\base_bin Class Reference

Represents a recyclebin. More...

Inheritance diagram for tool_recyclebin\base_bin:
tool_recyclebin\category_bin tool_recyclebin\course_bin

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?
 

Detailed Description

Represents a recyclebin.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ delete_item()

tool_recyclebin\base_bin::delete_item (   $item)
abstract

Delete an item from the recycle bin.

Parameters
stdClass$itemThe item database record

Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.

◆ get_item()

tool_recyclebin\base_bin::get_item (   $itemid)
abstract

Returns an item from the recycle bin.

Parameters
int$itemidItem ID to retrieve.

Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.

◆ restore_item()

tool_recyclebin\base_bin::restore_item (   $item)
abstract

Restore an item from the recycle bin.

Parameters
stdClass$itemThe item database record

Reimplemented in tool_recyclebin\course_bin, and tool_recyclebin\category_bin.

◆ store_item()

tool_recyclebin\base_bin::store_item (   $item)
abstract

Store an item in this recycle bin.

Parameters
stdClass$itemItem to store.

Reimplemented in tool_recyclebin\category_bin, and tool_recyclebin\course_bin.


The documentation for this class was generated from the following file: