class type_url extends type_string
Methods
__construct(request $request, template $template, user $user)
Construct |
from type_string | |
string |
get_name()
Get the translated name of the type |
from type_base |
string |
get_service_name()
Get the name of service representing the type |
from type_base |
string |
get_template_filename()
Get the name of template file for this type |
from type_base |
string |
get_field_ident(array $field_data)
Get the ident of the field |
from type_base |
string |
get_field_name(string $field_name)
Get the localized name of the field |
from type_base |
mixed |
get_profile_contact_value(mixed $field_value, array $field_data)
Get Profile Value for display |
from type_string_common |
array |
get_language_options_input(array $field_data)
Get the input for the supplied language options |
from type_base |
mixed |
prepare_options_form(array $exclude_options, array $visibility_options)
Allows exclusion of options in single steps of the creation process |
from type_string_common |
array |
validate_options_on_submit(array $error, array $field_data)
Allows exclusion of options in single steps of the creation process |
from type_base |
mixed |
get_excluded_options(string $key, string $action, mixed $current_value, array $field_data, int $step)
Allows manipulating the intended variables if needed |
from type_base |
mixed |
prepare_hidden_fields(int $step, string $key, string $action, array $field_data)
Allows manipulating the intended variables if needed |
from type_base |
null |
display_options(array $template_vars, array $field_data)
Allows assigning of additional template variables |
from type_string |
null |
process_field_row(string $mode, array $profile_row)
Return templated value/field. |
from type_base |
validate_options($field_data)
Return possible validation options |
from type_string_common | |
mixed |
get_default_field_value(array $field_data)
Get default value for this type |
from type_string_common |
mixed |
validate_string_profile_field(string $field_type, mixed $field_value, array $field_data)
Validate entered profile field data |
from type_string_common |
mixed |
get_profile_value(mixed $field_value, array $field_data)
Get Profile Value for display |
|
mixed |
get_profile_value_raw(mixed $field_value, array $field_data)
Get Profile Value ID for display (the raw, unprocessed user data) |
from type_string_common |
string |
get_name_short()
Get the short name of the type, used for error messages and template loops |
|
array |
get_options(string $default_lang_id, array $field_data)
Get dropdown options for second step in ACP |
|
array |
get_default_option_values()
Get default values for the options of this type |
|
mixed |
get_profile_field(array $profile_row)
Get profile field value on submit |
from type_string |
mixed |
validate_profile_field(mixed $field_value, array $field_data)
Validate entered profile field data |
|
null |
generate_field(array $profile_row, mixed $preview_options = false)
Generate the input field for display |
from type_string |
string |
get_database_column_type()
Get the column type for the database |
from type_string |
array |
get_language_options(array $field_data)
Get the options we need to display for the language input fields in the ACP |
from type_string |
Details
in type_string at line 43
public
__construct(request $request, template $template, user $user)
Construct
in type_base at line 53
public string
get_name()
Get the translated name of the type
in type_base at line 61
public string
get_service_name()
Get the name of service representing the type
in type_base at line 69
public string
get_template_filename()
Get the name of template file for this type
in type_base 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.
in type_base at line 85
public string
get_field_name(string $field_name)
Get the localized name of the field
in type_string_common at line 133
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
in type_base at line 101
public array
get_language_options_input(array $field_data)
Get the input for the supplied language options
in type_string_common at line 141
public mixed
prepare_options_form(array $exclude_options, array $visibility_options)
Allows exclusion of options in single steps of the creation process
in type_base 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
in type_base 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
in type_base at line 148
public mixed
prepare_hidden_fields(int $step, string $key, string $action, array $field_data)
Allows manipulating the intended variables if needed
in type_string at line 151
public null
display_options(array $template_vars, array $field_data)
Allows assigning of additional template variables
in type_base 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
in type_string_common at line 36
public
validate_options($field_data)
Return possible validation options
in type_string_common at line 51
public mixed
get_default_field_value(array $field_data)
Get default value for this type
in type_string_common at line 64
public mixed
validate_string_profile_field(string $field_type, mixed $field_value, array $field_data)
Validate entered profile field data
at line 78
public mixed
get_profile_value(mixed $field_value, array $field_data)
Get Profile Value for display
in type_string_common at line 120
public mixed
get_profile_value_raw(mixed $field_value, array $field_data)
Get Profile Value ID for display (the raw, unprocessed user data)
at line 21
public string
get_name_short()
Get the short name of the type, used for error messages and template loops
at line 29
public array
get_options(string $default_lang_id, array $field_data)
Get dropdown options for second step in ACP
at line 43
public array
get_default_option_values()
Get default values for the options of this type
in type_string at line 91
public mixed
get_profile_field(array $profile_row)
Get profile field value on submit
at line 58
public mixed
validate_profile_field(mixed $field_value, array $field_data)
Validate entered profile field data
in type_string at line 108
public null
generate_field(array $profile_row, mixed $preview_options = false)
Generate the input field for display
in type_string at line 121
public string
get_database_column_type()
Get the column type for the database
in type_string at line 129
public array
get_language_options(array $field_data)
Get the options we need to display for the language input fields in the ACP