Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
lib.php File Reference

Functions

 mod_wiki_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.
 
 mod_wiki_get_fontawesome_icon_map ()
 Get icon mapping for font-awesome.
 
 wiki_add_instance ($wiki)
 Given an object containing all the necessary data, (defined by the form in mod.html) this function will create a new instance and return the id number of the new instance.
 
 wiki_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.
 
 wiki_cm_info_dynamic (cm_info $cm)
 Sets dynamic information about a course module.
 
 wiki_comment_permissions ($comment_param)
 Running addtional permission check on plugin, for example, plugins may have switch to turn on/off comments option, this callback will affect UI display, not like pluginname_comment_validate only throw exceptions.
 
 wiki_comment_validate ($comment_param)
 Validate comment parameter before perform other comments actions.
 
 wiki_delete_instance ($id)
 Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.
 
 wiki_extend_navigation (navigation_node $navref, stdClass $course, stdClass $instance, cm_info $cm)
 Extends the global navigation tree by adding wiki nodes if there is a relevant content.
 
 wiki_get_extra_capabilities ()
 Returns all other caps used in wiki module.
 
 wiki_grades ($wikiid)
 Must return an array of grades for a given instance of this module, indexed by user.
 
 wiki_page_type_list ($pagetype, $parentcontext, $currentcontext)
 Return a list of page types.
 
 wiki_page_view ($wiki, $page, $course, $cm, $context, $uid=null, $other=null, $subwiki=null)
 Mark the activity completed (if required) and trigger the page_viewed event.
 
 wiki_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 file serving callback
 
$CFG wiki_print_recent_activity ($course, $viewfullnames, $timestart)
 Given a course and a time, this module should find recent activity that has occurred in wiki activities and print it out.
 
 wiki_reset_course_form_definition (&$mform)
 
 wiki_reset_userdata ($data)
 Implements callback to reset course.
 
 wiki_scale_used ()
 
 wiki_scale_used_anywhere ($scaleid)
 Checks if scale is being used by any instance of wiki.
 
 wiki_search_form ($cm, $search='', $subwiki=null)
 Search for wiki.
 
 wiki_supports ($feature)
 Indicates API features that the wiki supports.
 
 wiki_update_instance ($wiki)
 Given an object containing all the necessary data, (defined by the form in mod.html) this function will update an existing instance with new data.
 
 wiki_view ($wiki, $course, $cm, $context)
 Mark the activity completed (if required) and trigger the course_module_viewed event.