|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Namespaces | |
| namespace | tool_recyclebin |
| | |
| namespace | tool_recyclebin\event |
| | |
| namespace | tool_recyclebin\privacy |
| | |
| namespace | tool_recyclebin\task |
| | |
Classes | |
| class | tool_recyclebin\base_bin |
| Represents a recyclebin. More... | |
| class | tool_recyclebin\category_bin |
| Represents a category's recyclebin. More... | |
| class | tool_recyclebin\course_bin |
| Represents a course's recyclebin. More... | |
| class | tool_recyclebin\event\category_bin_item_created |
| Event class. More... | |
| class | tool_recyclebin\event\category_bin_item_deleted |
| Event class. More... | |
| class | tool_recyclebin\event\category_bin_item_restored |
| Event Class. More... | |
| class | tool_recyclebin\event\course_bin_item_created |
| Event class. More... | |
| class | tool_recyclebin\event\course_bin_item_deleted |
| Event class. More... | |
| class | tool_recyclebin\event\course_bin_item_restored |
| Event class. More... | |
| class | tool_recyclebin\privacy\provider |
| Privacy Subsystem for tool_recyclebin implementing null_provider. More... | |
| class | tool_recyclebin\task\cleanup_category_bin |
| This task deletes expired category recyclebin items. More... | |
| class | tool_recyclebin\task\cleanup_course_bin |
| This task deletes expired course recyclebin items. More... | |
Functions | |
| tool_recyclebin_course_module_background_deletion_recommended () | |
| Hook called to check whether async course module deletion should be performed or not. | |
| tool_recyclebin_extend_navigation_category_settings ($navigation, $context) | |
| Adds a recycle bin link to the course admin menu. | |
| tool_recyclebin_extend_navigation_course ($navigation, $course, $context) | |
| Adds a recycle bin link to the course admin menu. | |
| tool_recyclebin_get_fontawesome_icon_map () | |
| Map icons for font-awesome themes. | |
| tool_recyclebin_pre_course_category_delete ($category) | |
| Hook called before we delete a category. | |
| tool_recyclebin_pre_course_delete ($course) | |
| Hook called before we delete a course. | |
| tool_recyclebin_pre_course_module_delete ($cm) | |
| Hook called before we delete a course module. | |
Variables | |
| $capabilities | |
| global | $PAGE |
| $plugin = 2024100100 | |
| $tasks | |
| $plugin | component = 'tool_recyclebin' |
| const | tool_recyclebin::TOOL_RECYCLEBIN_COURSE_BIN_FILEAREA 'recyclebin_course' |
| const | tool_recyclebin::TOOL_RECYCLEBIN_COURSECAT_BIN_FILEAREA 'recyclebin_coursecat' |
| $plugin | version = 2024100700 |
| tool_recyclebin_course_module_background_deletion_recommended | ( | ) |
Hook called to check whether async course module deletion should be performed or not.
| true | if background deletion is required (is the recyclebin is enabled), false otherwise. |
| tool_recyclebin_extend_navigation_category_settings | ( | $navigation, | |
| $context ) |
Adds a recycle bin link to the course admin menu.
| navigation_node | $navigation | The navigation node to extend |
| context | $context | The context of the course |
| void|null | return null if we don't want to display the node. |
| tool_recyclebin_extend_navigation_course | ( | $navigation, | |
| $course, | |||
| $context ) |
Adds a recycle bin link to the course admin menu.
| navigation_node | $navigation | The navigation node to extend |
| stdClass | $course | The course to object for the tool |
| context | $context | The context of the course |
| void|null | return null if we don't want to display the node. |
| tool_recyclebin_pre_course_category_delete | ( | $category | ) |
Hook called before we delete a category.
| stdClass | $category | The category record. |
| tool_recyclebin_pre_course_delete | ( | $course | ) |
Hook called before we delete a course.
| stdClass | $course | The course record. |
| tool_recyclebin_pre_course_module_delete | ( | $cm | ) |
Hook called before we delete a course module.
| stdClass | $cm | The course module record. |
| $tasks |