abstract class type_base implements type_interface
Methods
__construct(request $request, template $template, user $user)
Construct |
||
string |
get_name()
Get the translated name of the type |
|
string |
get_service_name()
Get the name of service representing the type |
|
string |
get_template_filename()
Get the name of template file for this type |
|
string |
get_field_ident(array $field_data)
Get the ident of the field |
|
string |
get_field_name(string $field_name)
Get the localized name of the field |
|
mixed |
get_profile_contact_value(mixed $field_value, array $field_data)
Get Profile Value for display |
|
array |
get_language_options_input(array $field_data)
Get the input for the supplied language options |
|
mixed |
prepare_options_form(array $exclude_options, array $visibility_options)
Allows exclusion of options in single steps of the creation process |
|
array |
validate_options_on_submit(array $error, array $field_data)
Allows exclusion of options in single steps of the creation process |
|
mixed |
get_excluded_options(string $key, string $action, mixed $current_value, array $field_data, int $step)
Allows manipulating the intended variables if needed |
|
mixed |
prepare_hidden_fields(int $step, string $key, string $action, array $field_data)
Allows manipulating the intended variables if needed |
|
null |
display_options(array $template_vars, array $field_data)
Allows assigning of additional template variables |
|
null |
process_field_row(string $mode, array $profile_row)
Return templated value/field. |
Details
at line 43
public
__construct(request $request, template $template, user $user)
Construct
at line 53
public string
get_name()
Get the translated name of the type
at line 61
public string
get_service_name()
Get the name of service representing the type
at line 69
public string
get_template_filename()
Get the name of template file for this type
at line 77
public 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 85
public string
get_field_name(string $field_name)
Get the localized name of the field
at line 93
public 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 101
public array
get_language_options_input(array $field_data)
Get the input for the supplied language options
at line 114
public mixed
prepare_options_form(array $exclude_options, array $visibility_options)
Allows exclusion of options in single steps of the creation process
at line 122
public array
validate_options_on_submit(array $error, array $field_data)
Allows exclusion of options in single steps of the creation process
at line 130
public 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 148
public mixed
prepare_hidden_fields(int $step, string $key, string $action, array $field_data)
Allows manipulating the intended variables if needed
at line 180
public null
display_options(array $template_vars, array $field_data)
Allows assigning of additional template variables
at line 189
public 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