Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Namespaces | |
namespace | mod_imscp\analytics\indicator |
| |
namespace | mod_imscp\event |
| |
namespace | mod_imscp\privacy |
| |
namespace | mod_imscp\search |
| |
Classes | |
class | backup_imscp_activity_structure_step |
Define the complete imscp structure for backup, with file and id annotations. More... | |
class | backup_imscp_activity_task |
Provides the steps to perform one complete backup of the IMSCP instance. More... | |
class | imscp_file_info |
File browsing support class. More... | |
class | mod_imscp\analytics\indicator\activity_base |
Activity base class. More... | |
class | mod_imscp\analytics\indicator\cognitive_depth |
Cognitive depth indicator - imscp. More... | |
class | mod_imscp\analytics\indicator\social_breadth |
Social breadth indicator - imscp. More... | |
class | mod_imscp\event\course_module_instance_list_viewed |
The mod_imscp instance list viewed event class. More... | |
class | mod_imscp\event\course_module_viewed |
The mod_imscp course module viewed event class. More... | |
class | mod_imscp\privacy\provider |
Privacy Subsystem for mod_imscp implementing null_provider. More... | |
class | mod_imscp\search\activity |
Search area for mod_imscp activities. More... | |
class | mod_imscp_external |
IMSCP external functions. More... | |
class | mod_imscp_generator |
mod_imscp data generator class. More... | |
class | mod_imscp_mod_form |
IMS CP configuration form. More... | |
class | moodle1_mod_imscp_handler |
imscp conversion handler. More... | |
class | restore_imscp_activity_structure_step |
Structure step to restore one imscp activity. More... | |
class | restore_imscp_activity_task |
Provides the settings and steps to perform one complete restore of the activity. More... | |
Functions | |
imscp_add_instance ($data, $mform) | |
Add imscp instance. | |
imscp_check_updates_since (cm_info $cm, $from, $filter=array()) | |
Check if the module has any update that affects the current user since a given time. | |
imscp_delete_instance ($id) | |
Delete imscp instance. | |
imscp_export_contents ($cm, $baseurl) | |
Export imscp resource contents. | |
imscp_get_file_areas ($course, $cm, $context) | |
Lists all browsable file areas. | |
imscp_get_file_info ($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename) | |
File browsing support for imscp module ontent area. | |
imscp_get_post_actions () | |
List the actions that correspond to a post of this module. | |
imscp_get_view_actions () | |
List the actions that correspond to a view of this module. | |
imscp_htmllize_item ($item, $imscp, $cm) | |
Internal function - creates htmls structure suitable for YUI tree. | |
imscp_libxml_disable_entity_loader (bool $value) | |
Wrapper for function libxml_disable_entity_loader() deprecated in PHP 8. | |
imscp_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
Return a list of page types. | |
imscp_parse_manifestfile ($manifestfilecontents, $imscp, $context) | |
Parse the contents of a IMS package's manifest file. | |
imscp_parse_structure ($imscp, $context) | |
Parse an IMS content package's manifest file to determine its structure. | |
imscp_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()) | |
Serves the imscp files. | |
imscp_print_content ($imscp, $cm, $course) | |
Print IMSCP content to page. | |
imscp_recursive_href ($manifestfilename, $imscp, $context) | |
imscp_recursive_item ($xmlitem, $level, $resources) | |
imscp_reset_userdata ($data) | |
This function is used by the reset_course_userdata function in moodlelib. | |
imscp_supports ($feature) | |
List of features supported in IMS CP module. | |
imscp_update_instance ($data, $mform) | |
Update imscp instance. | |
imscp_view ($imscp, $course, $cm, $context) | |
Mark the activity completed (if required) and trigger the course_module_viewed event. | |
mod_imscp_core_calendar_provide_event_action (calendar_event $event, core_calendar\action_factory $factory, int $userid=0) | |
This function receives a calendar event and returns the action associated with it, or null if there is none. | |
xmldb_imscp_install () | |
Stub for database installation. | |
xmldb_imscp_upgrade ($oldversion) | |
Stub for database upgrade. | |
Variables | |
$capabilities | |
$functions | |
$logs | |
$plugin = 2023100400 | |
$plugin | component = 'mod_imscp' |
$plugin | cron = 0 |
$plugin | version = 2023100900 |
imscp_add_instance | ( | $data, | |
$mform ) |
Add imscp instance.
object | $data | |
object | $mform |
int | new imscp instance id |
imscp_check_updates_since | ( | cm_info | $cm, |
$from, | |||
$filter = array() ) |
Check if the module has any update that affects the current user since a given time.
cm_info | $cm | course module data |
int | $from | the time to check updates from |
array | $filter | if we need to check only specific updates |
stdClass | an object with the different type of areas indicating if they were updated or not |
imscp_delete_instance | ( | $id | ) |
Delete imscp instance.
int | $id |
bool | true |
imscp_export_contents | ( | $cm, | |
$baseurl ) |
Export imscp resource contents.
stdClass | $cm | Course module object |
string | $baseurl | Base URL for file downloads |
array | of file content |
imscp_get_file_areas | ( | $course, | |
$cm, | |||
$context ) |
Lists all browsable file areas.
stdClass | $course | course object |
stdClass | $cm | course module object |
stdClass | $context | context object |
array |
imscp_get_file_info | ( | $browser, | |
$areas, | |||
$course, | |||
$cm, | |||
$context, | |||
$filearea, | |||
$itemid, | |||
$filepath, | |||
$filename ) |
File browsing support for imscp module ontent area.
file_browser | $browser | file browser |
stdClass | $areas | file areas |
stdClass | $course | course object |
stdClass | $cm | course module object |
stdClass | $context | context object |
string | $filearea | file area |
int | $itemid | item ID |
string | $filepath | file path |
string | $filename | file name |
file_info | instance or null if not found |
imscp_get_post_actions | ( | ) |
List the actions that correspond to a post of this module.
This is used by the participation report.
Note: This is not used by new logging system. Event with crud = ('c' || 'u' || 'd') and edulevel = LEVEL_PARTICIPATING will be considered as post action.
array |
imscp_get_view_actions | ( | ) |
List the actions that correspond to a view of this module.
This is used by the participation report.
Note: This is not used by new logging system. Event with crud = 'r' and edulevel = LEVEL_PARTICIPATING will be considered as view action.
array |
imscp_libxml_disable_entity_loader | ( | bool | $value | ) |
Wrapper for function libxml_disable_entity_loader() deprecated in PHP 8.
Method was deprecated in PHP 8 and it shows deprecation message. However it is still required in the previous versions on PHP. While Moodle supports both PHP 7 and 8 we need to keep it.
bool | $value |
bool |
imscp_page_type_list | ( | $pagetype, | |
$parentcontext, | |||
$currentcontext ) |
Return a list of page types.
string | $pagetype | current page type |
stdClass | $parentcontext | Block's parent context |
stdClass | $currentcontext | Current context of block |
array\$modulepagetype | list |
imscp_parse_manifestfile | ( | $manifestfilecontents, | |
$imscp, | |||
$context ) |
Parse the contents of a IMS package's manifest file.
string | $manifestfilecontents | the contents of the manifest file |
array |
imscp_parse_structure | ( | $imscp, | |
$context ) |
Parse an IMS content package's manifest file to determine its structure.
object | $imscp | |
object | $context |
array |
imscp_pluginfile | ( | $course, | |
$cm, | |||
$context, | |||
$filearea, | |||
$args, | |||
$forcedownload, | |||
array | $options = array() ) |
Serves the imscp files.
stdClass | $course | course object |
stdClass | $cm | course module object |
stdClass | $context | context object |
string | $filearea | file area |
array | $args | extra arguments |
bool | $forcedownload | whether or not force download |
array | $options | additional options affecting the file serving |
bool | false if file not found, does not return if found - justsend the file |
imscp_print_content | ( | $imscp, | |
$cm, | |||
$course ) |
Print IMSCP content to page.
stdClass | $imscp | module instance. |
stdClass | $cm | course module. |
stdClass | $course | record. |
imscp_reset_userdata | ( | $data | ) |
This function is used by the reset_course_userdata function in moodlelib.
stdClass | $data | the data submitted from the reset course. |
array | status array |
imscp_supports | ( | $feature | ) |
List of features supported in IMS CP module.
string | $feature | FEATURE_xx constant for requested feature |
mixed | True if module supports feature, false if not, null if doesn't know or string for the module purpose. |
imscp_update_instance | ( | $data, | |
$mform ) |
Update imscp instance.
object | $data | |
object | $mform |
bool | true |
imscp_view | ( | $imscp, | |
$course, | |||
$cm, | |||
$context ) |
Mark the activity completed (if required) and trigger the course_module_viewed event.
stdClass | $imscp | imscp object |
stdClass | $course | course object |
stdClass | $cm | course module object |
stdClass | $context | context object |
mod_imscp_core_calendar_provide_event_action | ( | calendar_event | $event, |
core_calendar\action_factory | $factory, | ||
int | $userid = 0 ) |
This function receives a calendar event and returns the action associated with it, or null if there is none.
This is used by block_myoverview in order to display the event appropriately. If null is returned then the event is not displayed on the block.
calendar_event | $event | |
core_calendar\action_factory | $factory | |
int | $userid | User id to use for all capability checks, etc. Set to 0 for current user (default). |
core_calendar\local\event\entities\action_interface|null |
xmldb_imscp_upgrade | ( | $oldversion | ) |
Stub for database upgrade.
int | $oldversion |
$capabilities |
$functions |
$logs |