|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | profile_define_base |
Functions | |
| profile_reorder_fields () | |
| profile_reorder_categories () | |
| profile_delete_category ($id) | |
| profile_delete_field ($id) | |
| profile_move_field ($id, $move) | |
| profile_move_category ($id, $move) | |
| profile_list_datatypes () | |
| profile_list_categories () | |
| profile_edit_category ($id, $redirect) | |
| Are we adding or editing a cateogory? | |
| profile_edit_field ($id, $datatype, $redirect) | |
| profile_delete_category | ( | $ | id | ) |
Delete a profile category
| integer | id of the category to be deleted |
Retrieve the category
Does the category contain any fields
Finally we get to delete the category
Definition at line 234 of file definelib.php.

| profile_delete_field | ( | $ | id | ) |
Remove any user data associated with this field
Try to remove the record from the database
Reorder the remaining fields in the same category
Definition at line 283 of file definelib.php.

| profile_edit_category | ( | $ | id, |
| $ | redirect | ||
| ) |
Are we adding or editing a cateogory?
Print the page
Definition at line 410 of file definelib.php.

| profile_edit_field | ( | $ | id, |
| $ | datatype, | ||
| $ | redirect | ||
| ) |
Print the page
Definition at line 452 of file definelib.php.

Retrieve a list of categories and ids suitable for use in a form
Definition at line 400 of file definelib.php.

Retrieve a list of all the available data types
Definition at line 382 of file definelib.php.

| profile_move_category | ( | $ | id, |
| $ | move | ||
| ) |
Change the sortorder of a category
| integer | id of the category |
| string | direction of move |
Get the category object
Count the number of categories
Calculate the new sortorder
Retrieve the category object that is currently residing in the new position
Swap the sortorders
Update the category records
Definition at line 344 of file definelib.php.
| profile_move_field | ( | $ | id, |
| $ | move | ||
| ) |
Change the sortorder of a field
| integer | id of the field |
| string | direction of move |
Get the field object
Count the number of fields in this category
Calculate the new sortorder
Retrieve the field object that is currently residing in the new position
Swap the sortorders
Update the field records
Definition at line 304 of file definelib.php.

Reorder the profile categoriess starting at the category at the given startorder
Definition at line 215 of file definelib.php.

Reorder the profile fields within a given category starting at the field at the given startorder
Definition at line 193 of file definelib.php.
