Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions
lib.php File Reference

Library of functions and constants for module wiki. More...

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. More...
 
 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. More...
 
 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. More...
 
 wiki_cm_info_dynamic (cm_info $cm)
 Sets dynamic information about a course module. More...
 
 wiki_comment_permissions ($comment_param)
 
 wiki_comment_validate ($comment_param)
 
 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. More...
 
 wiki_extend_navigation (navigation_node $navref, $course, $module, $cm)
 
 wiki_get_extra_capabilities ()
 Returns all other caps used in wiki module. More...
 
 wiki_grades ($wikiid)
 Must return an array of grades for a given instance of this module, indexed by user. More...
 
 wiki_page_type_list ($pagetype, $parentcontext, $currentcontext)
 Return a list of page types. More...
 
 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. More...
 
 wiki_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 
$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. More...
 
 wiki_reset_course_form_definition (&$mform)
 
 wiki_reset_userdata ($data)
 Implements callback to reset course. More...
 
 wiki_scale_used ()
 
 wiki_scale_used_anywhere ($scaleid)
 Checks if scale is being used by any instance of wiki. More...
 
 wiki_search_form ($cm, $search='', $subwiki=null)
 
 wiki_supports ($feature)
 Indicates API features that the wiki supports. More...
 
 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. More...
 
 wiki_view ($wiki, $course, $cm, $context)
 Mark the activity completed (if required) and trigger the course_module_viewed event. More...
 

Detailed Description

Library of functions and constants for module wiki.

It contains the great majority of functions defined by Moodle that are mandatory to develop a module.

Author
Jordi Piguillem
Marc Alier
David Jimenez
Josep Arus
Kenneth Riba
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later