Свойство | Тип | Описание | |
---|---|---|---|
$_alias | mixed | The field alias | |
$_attr | mixed | Array of HTML attributes | |
$_blueprint | boolean | (default value: false) | |
$_blueprint_count | integer | (default value: 0) | |
$_blueprint_dynamic | boolean | (default value: false) | |
$_blueprint_pks | aray | (default value=: array()) | |
$_blueprint_template | mixed | Allow for setting custom blueprint template separate from blueprint | |
$_callbacks | array | (default value: array()) | |
$_config | array | (default value: array()) | |
$_construct_aliases | array | Used at construct for reconciling variables | |
$_driver | mixed | Field's driver name | |
$_editable | boolean | (default value: true) | |
$_errors | array | (default value: array()) | |
$_fields | array | (default value: array()) | |
$_filters | array | (default value: array()) | |
$_ftype | string | Used for auto-loading config defaults | |
$_html | mixed | HTML instide a tag | |
$_label | mixed | (default value: self::NOTSET) | |
$_opts | array | (default value: array()) | |
$_parent | mixed | Field's parent object | |
$_render | boolean | (default value: true) | |
$_rules | array | (default value: array()) | |
$_single_tags | array | HTML tags that don't have a closing | |
$_to_array_attrs | mixed | List of attributes that get copied by default in Formo::to_array() | |
$_vals | mixed | Keep track of field's values | |
$_vars | array | (default value: array()) |
Метод | Описание | |
---|---|---|
config ( mixed $param, mixed $default = NULL ) : void | Find a config value. | |
range ( mixed $field, mixed $form ) : boolean | Validation method that properly validates for html5 range |
Метод | Описание | |
---|---|---|
_add_rule ( array $rule ) : void | Add a rule to a field. | |
_add_rules_to_validation ( Validation $validation ) : void | Add rules to a validation object. | |
_arr_dotsyntax ( array $array ) : array | Convert a multidmensional array to dot-syntax key values | |
_attr_to_str ( ) : void | Turn attributes array into a string. | |
_error_to_msg ( array $errors_array = NULL ) : string | Convert an error returned from the Validation object to a formatted message | |
_get_files_array ( array $files ) : array | Convert $_FILES array to one Formo understands | |
_get_label ( $label = NULL ) : string | Return the formatted string for a field. | |
_get_val ( ) : void | Return a field's value. | |
_get_var_name ( mixed $var ) : string | For set() and get(), return the variable name being set, and gotten | |
_is_blueprint_def ( Formo $parent = NULL, $test = false ) : void | Determine whether a field is paret of a blueprint definition | |
_load ( array $array ) : void | Load values into the form | |
_make_id ( ) : void | Make an id for a field that doesn't already have one | |
_merge ( mixed $name, array $array ) : void | Merge an array of values with another array of values | |
_order ( mixed $field_alias, mixed $new_order, mixed $relative_field = NULL ) : void | Internal method to reorder fields | |
_remove_rule ( mixed $rule ) : void | Search for and remove a rule if it exists | |
_reset ( ) : Formo | Reset field values to their original values | |
_resolve_construct_aliases ( mixed $array ) : void | Allow non-associative arrays to define a new field | |
_resolve_namespaced_files ( array $files ) : array | Convert namespaced $_FILES array into values Formo can understand | |
_run_callbacks ( mixed $type = NULL ) : void | Internal method to run all applicable callbacks | |
_set_driver ( mixed $driver ) : void | Set a field's driver | |
_set_id ( array &$array ) : void | Set a field's id attribute if the auto_id config setting is TRUE | |
_set_val ( mixed $val, mixed $force_new = FALSE ) : void | Set the field's value | |
_setup_from_ftype ( ) : void | Default field definitions from config file |
protected _add_rules_to_validation ( Validation $validation ) : void | ||
$validation | Validation | |
Результат | void |
protected _arr_dotsyntax ( array $array ) : array | ||
$array | array | |
Результат | array |
protected _attr_to_str ( ) : void | ||
Результат | void |
protected _error_to_msg ( array $errors_array = NULL ) : string | ||
$errors_array | array | (default: NULL) |
Результат | string |
protected _get_files_array ( array $files ) : array | ||
$files | array | |
Результат | array |
protected _get_label ( $label = NULL ) : string | ||
Результат | string |
protected _get_var_name ( mixed $var ) : string | ||
$var | mixed | |
Результат | string |
protected _is_blueprint_def ( Formo $parent = NULL, $test = false ) : void | ||
$parent | Formo | (default: FALSE) |
Результат | void |
protected _remove_rule ( mixed $rule ) : void | ||
$rule | mixed | |
Результат | void |
protected _reset ( ) : Formo | ||
Результат | Formo | obj |
protected _resolve_construct_aliases ( mixed $array ) : void | ||
$array | mixed | |
Результат | void |
protected _resolve_namespaced_files ( array $files ) : array | ||
$files | array | |
Результат | array |
protected _run_callbacks ( mixed $type = NULL ) : void | ||
$type | mixed | (default: NULL) |
Результат | void |
protected _set_driver ( mixed $driver ) : void | ||
$driver | mixed | |
Результат | void |
protected _setup_from_ftype ( ) : void | ||
Результат | void |
protected int $_blueprint_count | ||
Результат | integer |
protected bool $_blueprint_dynamic | ||
Результат | boolean |
protected aray $_blueprint_pks | ||
Результат | aray |
protected mixed $_blueprint_template | ||
Результат | mixed |
protected array $_callbacks | ||
Результат | array |
protected static array $_construct_aliases | ||
Результат | array |
protected string $_ftype | ||
Результат | string |
protected static array $_single_tags | ||
Результат | array |
protected static mixed $_to_array_attrs | ||
Результат | mixed |