Represents a category's recyclebin.
More...
|
| __construct ($categoryid) |
| Constructor.
|
|
| can_delete () |
| Can we delete items in this recycle bin?
|
|
| 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.
|
|
| get_item ($itemid) |
| Returns an item from the recycle bin.
|
|
| get_items () |
| Returns a list of items in the recycle bin for this course.
|
|
| restore_item ($item) |
| Restore an item from the recycle bin.
|
|
| store_item ($course) |
| Store a course in the recycle bin.
|
|
|
int | $_categoryid |
| The category id.
|
|
Represents a category's recyclebin.
- Copyright
- 2015 University of Kent
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_recyclebin\category_bin::__construct |
( |
| $categoryid | ) |
|
Constructor.
- Parameters
-
int | $categoryid | The category id. |
◆ can_delete()
tool_recyclebin\category_bin::can_delete |
( |
| ) |
|
Can we delete items in this recycle bin?
- Return values
-
bool | returns true if they can delete, false if not |
Reimplemented from tool_recyclebin\base_bin.
◆ can_restore()
tool_recyclebin\category_bin::can_restore |
( |
| ) |
|
Can we restore items in this recycle bin?
- Return values
-
bool | returns true if they can restore, false if not |
Reimplemented from tool_recyclebin\base_bin.
◆ can_view()
tool_recyclebin\category_bin::can_view |
( |
| ) |
|
Can we view items in this recycle bin?
- Return values
-
bool | returns true if they can view, false if not |
Reimplemented from tool_recyclebin\base_bin.
◆ delete_item()
tool_recyclebin\category_bin::delete_item |
( |
| $item | ) |
|
Delete an item from the recycle bin.
- Parameters
-
stdClass | $item | The item database record |
- Exceptions
-
Reimplemented from tool_recyclebin\base_bin.
◆ get_item()
tool_recyclebin\category_bin::get_item |
( |
| $itemid | ) |
|
◆ get_items()
tool_recyclebin\category_bin::get_items |
( |
| ) |
|
◆ is_enabled()
static tool_recyclebin\category_bin::is_enabled |
( |
| ) |
|
|
static |
Is this recyclebin enabled?
- Return values
-
bool | true if enabled, false if not. |
Reimplemented from tool_recyclebin\base_bin.
◆ restore_item()
tool_recyclebin\category_bin::restore_item |
( |
| $item | ) |
|
Restore an item from the recycle bin.
- Parameters
-
stdClass | $item | The item database record |
- Exceptions
-
Reimplemented from tool_recyclebin\base_bin.
◆ store_item()
tool_recyclebin\category_bin::store_item |
( |
| $course | ) |
|
The documentation for this class was generated from the following file:
- admin/tool/recyclebin/classes/category_bin.php