Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/user/profile/index.php File Reference

Go to the source code of this file.

Functions

 profile_category_icons ($category)
 profile_field_icons ($field)

Variables

 $action = optional_param('action', '', PARAM_ALPHA)
 $redirect = $CFG->wwwroot.'/user/profile/index.php'
 $strchangessaved = get_string('changessaved')
 $strcancelled = get_string('cancelled')
 $strdefaultcategory = get_string('profiledefaultcategory', 'admin')
 $strnofields = get_string('profilenofieldsdefined', 'admin')
 $strcreatefield = get_string('profilecreatefield', 'admin')
 switch ($action)
 Do we have any actions to perform before printing the header.
if($DB->count_records('user_info_category')==0) $categories = $DB->get_records('user_info_category', null, 'sortorder ASC')
 Check that we have at least one category defined.
 foreach ($categories as $category)
 End of $categories foreach.
 $options = profile_list_datatypes()
 Create a new field link.
 $popupurl = new moodle_url('/user/profile/index.php?id=0&action=editfield')
 die

Function Documentation

profile_category_icons ( category)

Create a string containing the editing icons for the user profile categories

Parameters:
objectthe category object
Returns:
string the icon string

Edit

Delete Can only delete the last category if there are no fields in it

Move up

Move down

Definition at line 159 of file index.php.

Here is the call graph for this function:

profile_field_icons ( field)

Create a string containing the editing icons for the user profile fields

Parameters:
objectthe field object
Returns:
string the icon string

Edit

Delete

Move up

Move down

Definition at line 204 of file index.php.

Here is the call graph for this function:


Variable Documentation

Definition at line 10 of file index.php.

if ($DB->count_records('user_info_category')==0) $categories = $DB->get_records('user_info_category', null, 'sortorder ASC')

Check that we have at least one category defined.

Show all categories

Definition at line 101 of file index.php.

$options = profile_list_datatypes()

Create a new field link.

Create a new category link.

Definition at line 133 of file index.php.

$popupurl = new moodle_url('/user/profile/index.php?id=0&action=editfield')

Definition at line 134 of file index.php.

$redirect = $CFG->wwwroot.'/user/profile/index.php'

Definition at line 12 of file index.php.

$strcancelled = get_string('cancelled')

Definition at line 15 of file index.php.

$strchangessaved = get_string('changessaved')

Definition at line 14 of file index.php.

$strcreatefield = get_string('profilecreatefield', 'admin')

Definition at line 18 of file index.php.

$strdefaultcategory = get_string('profiledefaultcategory', 'admin')

Definition at line 16 of file index.php.

$strnofields = get_string('profilenofieldsdefined', 'admin')

Definition at line 17 of file index.php.

die

Definition at line 144 of file index.php.

foreach($categories as $category)

End of $categories foreach.

Definition at line 103 of file index.php.

Do we have any actions to perform before printing the header.

Print the header

Definition at line 23 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations