type_interface
interface type_interface
Methods
Get the translated name of the type
Get the short name of the type, used for error messages and template loops
Get the name of service representing the type
Get the name of template file for this type
Get dropdown options for second step in ACP
Get default values for the options of this type
Get default value for this type
Get profile field value on submit
Validate entered profile field data
Get Profile Value for display
Get Profile Value ID for display (the raw, unprocessed user data)
Get Profile Value for display
Generate the input field for display
Get the ident of the field
Get the localized name of the field
Get the column type for the database
Get the options we need to display for the language input fields in the ACP
Get the input for the supplied language options
Allows exclusion of options in single steps of the creation process
Allows exclusion of options in single steps of the creation process
Allows manipulating the intended variables if needed
Allows manipulating the intended variables if needed
Allows assigning of additional template variables
Return templated value/field. Possible values for $mode are: change == user is able to set/enter profile values; preview == just show the value
Details
at line 23
string
get_name()
Get the translated name of the type
at line 30
string
get_name_short()
Get the short name of the type, used for error messages and template loops
at line 37
string
get_service_name()
Get the name of service representing the type
at line 44
string
get_template_filename()
Get the name of template file for this type
at line 53
array
get_options(string $default_lang_id, array $field_data)
Get dropdown options for second step in ACP
at line 60
array
get_default_option_values()
Get default values for the options of this type
at line 68
mixed
get_default_field_value(array $field_data)
Get default value for this type
at line 76
mixed
get_profile_field(array $profile_row)
Get profile field value on submit
at line 85
mixed
validate_profile_field(mixed $field_value, array $field_data)
Validate entered profile field data
at line 94
mixed
get_profile_value(mixed $field_value, array $field_data)
Get Profile Value for display
at line 103
mixed
get_profile_value_raw(mixed $field_value, array $field_data)
Get Profile Value ID for display (the raw, unprocessed user data)
at line 114
mixed
get_profile_contact_value(mixed $field_value, array $field_data)
Get Profile Value for display
When displaying a contact field, we don't want to have links already parsed and more
at line 123
null
generate_field(array $profile_row, mixed $preview_options = false)
Generate the input field for display
at line 134
string
get_field_ident(array $field_data)
Get the ident of the field
Some types are multivalue, we can't give them a field_id as we would not know which to pick.
at line 142
string
get_field_name(string $field_name)
Get the localized name of the field
at line 149
string
get_database_column_type()
Get the column type for the database
at line 157
array
get_language_options(array $field_data)
Get the options we need to display for the language input fields in the ACP
at line 165
array
get_language_options_input(array $field_data)
Get the input for the supplied language options
at line 174
mixed
prepare_options_form(array $exclude_options, array $visibility_options)
Allows exclusion of options in single steps of the creation process
at line 183
array
validate_options_on_submit(array $error, array $field_data)
Allows exclusion of options in single steps of the creation process
at line 195
mixed
get_excluded_options(string $key, string $action, mixed $current_value, array $field_data, int $step)
Allows manipulating the intended variables if needed
at line 206
mixed
prepare_hidden_fields(int $step, string $key, string $action, array $field_data)
Allows manipulating the intended variables if needed
at line 215
null
display_options(array $template_vars, array $field_data)
Allows assigning of additional template variables
at line 225
null
process_field_row(string $mode, array $profile_row)
Return templated value/field. Possible values for $mode are: change == user is able to set/enter profile values; preview == just show the value