Menu profile field definition.  
 More...
|  | 
|  | define_after_data (&$mform) | 
|  | Alter form based on submitted or existing data. 
 | 
|  | 
|  | define_editors () | 
|  | Provides a method by which we can allow the default data in profile_define_* to use an editor. 
 | 
|  | 
|  | define_form (&$form) | 
|  | Prints out the form snippet for creating or editing a profile field. 
 | 
|  | 
|  | define_form_common (&$form) | 
|  | Prints out the form snippet for the part of creating or editing a profile field common to all data types. 
 | 
|  | 
|  | define_form_specific ($form) | 
|  | Adds elements to the form for creating/editing this type of profile field. 
 | 
|  | 
|  | define_save ($data) | 
|  | Add a new profile field or save changes to current field. 
 | 
|  | 
|  | define_save_preprocess ($data) | 
|  | Processes data before it is saved. 
 | 
|  | 
|  | define_validate ($data, $files) | 
|  | Validate the data from the add/edit profile field form. 
 | 
|  | 
|  | define_validate_common ($data, $files) | 
|  | Validate the data from the add/edit profile field form that is common to all data types. 
 | 
|  | 
|  | define_validate_specific ($data, $files) | 
|  | Validates data for the profile field. 
 | 
|  | 
Menu profile field definition. 
- Copyright
- 2007 onwards Shane Elliot  
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Class profile_define_menu
- Copyright
- 2007 onwards Shane Elliot  
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ define_after_data()
  
  | 
        
          | profile_define_base::define_after_data | ( | & | $mform | ) |  |  | inherited | 
 
 
◆ define_editors()
  
  | 
        
          | profile_define_base::define_editors | ( |  | ) |  |  | inherited | 
 
Provides a method by which we can allow the default data in profile_define_* to use an editor. 
This should return an array of editor names (which will need to be formatted/cleaned)
- Return values
- 
  
  
Reimplemented in profile_define_textarea.
 
 
◆ define_form()
  
  | 
        
          | profile_define_base::define_form | ( | & | $form | ) |  |  | inherited | 
 
Prints out the form snippet for creating or editing a profile field. 
- Parameters
- 
  
  
 
 
◆ define_form_common()
  
  | 
        
          | profile_define_base::define_form_common | ( | & | $form | ) |  |  | inherited | 
 
Prints out the form snippet for the part of creating or editing a profile field common to all data types. 
- Parameters
- 
  
  
Reimplemented in profile_define_social.
 
 
◆ define_form_specific()
      
        
          | profile_define_menu::define_form_specific | ( |  | $form | ) |  | 
      
 
Adds elements to the form for creating/editing this type of profile field. 
- Parameters
- 
  
  
Reimplemented from profile_define_base.
 
 
◆ define_save()
  
  | 
        
          | profile_define_base::define_save | ( |  | $data | ) |  |  | inherited | 
 
Add a new profile field or save changes to current field. 
- Parameters
- 
  
    | array | stdClass | $data | from the add/edit profile field form |  
 
 
 
◆ define_save_preprocess()
      
        
          | profile_define_menu::define_save_preprocess | ( |  | $data | ) |  | 
      
 
Processes data before it is saved. 
- Parameters
- 
  
  
- Return values
- 
  
  
Reimplemented from profile_define_base.
 
 
◆ define_validate()
  
  | 
        
          | profile_define_base::define_validate | ( |  | $data, |  
          |  |  |  | $files ) |  | inherited | 
 
Validate the data from the add/edit profile field form. 
Generally this method should not be overwritten by child classes.
- Parameters
- 
  
    | stdClass | array | $data | from the add/edit profile field form |  | array | $files |  |  
 
- Return values
- 
  
    | array | associative array of error messages |  
 
 
 
◆ define_validate_common()
  
  | 
        
          | profile_define_base::define_validate_common | ( |  | $data, |  
          |  |  |  | $files ) |  | inherited | 
 
Validate the data from the add/edit profile field form that is common to all data types. 
Generally this method should not be overwritten by child classes.
- Parameters
- 
  
    | stdClass | array | $data | from the add/edit profile field form |  | array | $files |  |  
 
- Return values
- 
  
    | array | associative array of error messages |  
 
Reimplemented in profile_define_social.
 
 
◆ define_validate_specific()
      
        
          | profile_define_menu::define_validate_specific | ( |  | $data, | 
        
          |  |  |  | $files ) | 
      
 
Validates data for the profile field. 
- Parameters
- 
  
  
- Return values
- 
  
  
Reimplemented from profile_define_base.
 
 
The documentation for this class was generated from the following file: