Convert a field value to something renderable.
?array
get_field_inputter
(string $_cf_name, string $_cf_description, array $field, ?string $actual_value, boolean $new)
-
string
$_cf_name: The field name
-
string
$_cf_description: The field description
-
array
$field: The field details
-
?string
$actual_value: The actual current value of the field (NULL: none)
-
boolean
$new: Whether this is for a new entry
Get some info bits relating to our field type, that helps us look it up / set defaults.
array
get_field_value_row_bits
(AUTO_LINK $cf_id, [?boolean $required = NULL], [?string $default = NULL])
-
AUTO_LINK
$cf_id: The field ID
-
?boolean
$required: Whether the row is required (NULL: don't try and find a default value)
-
?string
$default: The given default value (NULL: don't try and find a default value)
Get special Tempcode for inputting this field.
?array
get_search_inputter
(array $row)
-
array
$row: The row for the field to input
Find the posted value from the get_field_inputter field
string
inputted_to_field_value
(boolean $editing, AUTO_LINK $id)
-
boolean
$editing: Whether we were editing (because on edit, files might need deleting)
-
AUTO_LINK
$id: The ID of the catalogue field
Get special SQL from POSTed parameters for this field.
?array
inputted_to_sql_for_search
(array $row, integer $i)
-
array
$row: The row for the field to input
-
integer
$i: We're processing for the ith row
Convert a field value to something renderable.
mixed
render_field_value
(mixed $ev)