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

Classes

class  profile_define_base
 This file contains the profile_define_base class. More...
 

Functions

 profile_delete_category ($id)
 Delete a profile category.
 
 profile_delete_field ($id)
 Deletes a profile field.
 
 profile_list_categories ()
 Retrieve a list of categories and ids suitable for use in a form.
 
 profile_list_datatypes ()
 Retrieve a list of all the available data types.
 
 profile_move_category ($id, $move)
 Change the sort order of a category.
 
 profile_move_field ($id, $move)
 Change the sort order of a field.
 
 profile_purge_user_fields_cache ()
 Purge the cache for the user profile fields.
 
 profile_reorder_categories ()
 Reorder the profile categoriess starting at the category at the given startorder.
 
 profile_reorder_fields ()
 Reorder the profile fields within a given category starting at the field at the given startorder.
 
 profile_save_category (stdClass $data)
 Create or update a profile category.
 
 profile_save_field (stdClass $data, array $editors)
 Save updated field definition or create a new field.