Properties

$predefined_fields

$predefined_fields : array

Type

array

$all_user_fields

$all_user_fields : array

Type

array

$core_fields

$core_fields : array

Type

array

Methods

__construct()

__construct() 

Builtin constructor.

is_dropdown_field()

is_dropdown_field(  $field,   $attrs) : boolean

Regular or multi-select/options

Parameters

$field
$attrs

Returns

boolean

get_a_field()

get_a_field(  $field) : mixed|string

Get a field

Parameters

$field

Returns

mixed|string

get_specific_fields()

get_specific_fields(  $fields) : array

Get specific fields

Parameters

$fields

Returns

array

get_specific_field()

get_specific_field(  $fields) : array|mixed

Get specific field

Parameters

$fields

Returns

array|mixed

unique_field_err()

unique_field_err(  $key) : integer|string|void

Checks for a unique field error

Parameters

$key

Returns

integer|string|void

date_range_start_err()

date_range_start_err(  $date) : integer|string|void

Check date range errors (start date)

Parameters

$date

Returns

integer|string|void

date_range_end_err()

date_range_end_err(  $date,   $start_date) : integer|string|void

Check date range errors (end date)

Parameters

$date
$start_date

Returns

integer|string|void

get_core_field_attrs()

get_core_field_attrs(  $type) : array|mixed

Get a core field attrs

Parameters

$type

Returns

array|mixed

set_core_fields()

set_core_fields() 

Core Fields

set_predefined_fields()

set_predefined_fields() 

Predefined Fields

set_custom_fields()

set_custom_fields() 

Custom Fields

all_user_fields()

all_user_fields(null  $exclude_types = null, boolean  $show_all = false) : array

May be used to show a dropdown, or source for user meta

Parameters

null $exclude_types
boolean $show_all

Returns

array

validation_types()

validation_types() : mixed

Possible validation types for fields

Returns

mixed

get()

get(  $data) : array|mixed|void

Get predefined options

Parameters

$data

Returns

array|mixed|void