Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Classes | Functions
locallib.php File Reference

Classes

class  data_file_info_container
 
class  data_portfolio_caller
 The class to handle entry exports of a database module. More...
 

Functions

 data_add_fields_contents_to_new_record ($data, $context, $recordid, $fields, $datarecord, $processeddata)
 Populate the field contents of a new record with the submitted data. More...
 
 data_approve_entry ($entryid, $approve)
 Approves or unapproves an entry. More...
 
 data_build_search_array ($data, $paging, $searcharray, $defaults=null, $fn='', $ln='')
 Build the search array. More...
 
 data_can_view_record ($data, $record, $currentgroup, $canmanageentries)
 Check if the current user can view the given record. More...
 
 data_get_entries_left_to_add ($data, $numentries, $canmanageentries)
 Return the number of entries left to add to complete the activity. More...
 
 data_get_entries_left_to_view ($data, $numentries, $canmanageentries)
 Return the number of entires left to add to view other users entries. More...
 
 data_get_field_instances ($data)
 Return all the field instances for a given database. More...
 
 data_get_tag_title_field ($dataid)
 Get the title of a field to show when displaying tag results. More...
 
 data_get_tag_title_for_entry ($field, $entry)
 Get the title of an entry to show when displaying tag results. More...
 
 data_get_time_availability_status ($data, $canmanageentries=null, $context=null)
 Check if a database is available for the current user. More...
 
 data_require_time_available ($data, $canmanageentries=null, $context=null)
 Requires a database to be available for the current user. More...
 
 data_search_entries ($data, $cm, $context, $mode, $currentgroup, $search='', $sort=null, $order=null, $page=0, $perpage=0, $advanced=null, $searcharray=null, $record=null)
 Search entries in a database. More...
 
 data_set_events ($data)
 This creates new calendar events given as timeavailablefrom and timeclose by $data. More...
 
 data_update_record_fields_contents ($data, $record, $context, $datarecord, $processeddata)
 Updates the fields contents of an existing record. More...
 
 mod_data_get_tagged_records ($tag, $exclusivemode=false, $fromctx=0, $ctx=0, $rec=true, $page=0)
 Returns data records tagged with a specified tag. More...
 

Detailed Description

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later