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

Go to the source code of this file.

Data Structures

class  profile_field_base

Enumerations

enum  PROFILE_VISIBLE_ALL
 Some constants. More...
enum  PROFILE_VISIBLE_PRIVATE
enum  PROFILE_VISIBLE_NONE

Functions

 profile_load_data (&$user)
 End of class definition.
 profile_definition (&$mform)
 profile_definition_after_data (&$mform, $userid)
 profile_validation ($usernew, $files)
 profile_save_data ($usernew)
 profile_display_fields ($userid)
 profile_signup_fields (&$mform)
 profile_user_record ($userid)
 profile_load_custom_fields (&$user)

Enumeration Type Documentation

Some constants.

Definition at line 5 of file lib.php.

Definition at line 7 of file lib.php.

Definition at line 6 of file lib.php.


Function Documentation

profile_definition ( &$  mform)

Print out the customisable categories and fields for a users profile

Parameters:
objectinstance of the moodleform class

Definition at line 356 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

profile_definition_after_data ( &$  mform,
userid 
)

Definition at line 389 of file lib.php.

Here is the caller graph for this function:

profile_display_fields ( userid)

Definition at line 432 of file lib.php.

Here is the call graph for this function:

Load custom profile fields into user object

Please note originally in 1.9 we were using the custom field names directly, but it was causing unexpected collisions when adding new fields to user table, so instead we now use 'profile_' prefix.

Parameters:
object$useruser object
Returns:
void $user object is modified

Definition at line 516 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

profile_load_data ( &$  user)

End of class definition.

Definition at line 339 of file lib.php.

Here is the caller graph for this function:

profile_save_data ( usernew)

Definition at line 419 of file lib.php.

Here is the caller graph for this function:

profile_signup_fields ( &$  mform)

Adds code snippet to a moodle form object for custom profile fields that should appear on the signup page

Parameters:
objectmoodle form object

Definition at line 456 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

profile_user_record ( userid)

Returns an object with the custom profile fields set for the given user

Parameters:
integeruserid
Returns:
object

Definition at line 487 of file lib.php.

Here is the caller graph for this function:

profile_validation ( usernew,
files 
)

Definition at line 404 of file lib.php.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations