Hazaar\Forms
Model
Model short summary.

Model description.

Summary
MethodsPropertiesConstants
No constants
Properties
$__controller
$__controller
$__form
$__form
The current form definition
$__form_import_path
$__form_import_path
The path to use for includes;
$__form_imported
$__form_imported
$__form_name
$__form_name
The name of the form
$__items
$__items
$__locked
$__locked
$__script_server
$__script_server
$__tags
$__tags
$__use_node
$__use_node
Methods
__construct()
__construct($form_name, $form = null, $tags = null, $form_include_path = null)
__convert_data()
__convert_data($data, $valueKey, $labelKey)
__field()
__field($field, $form, $evaluate = true, $item_value = null, $parent_key = null)
__group()
__group($fields, $form, $item_value = null, $parent_key = null)
__page()
__page($page, $form)
__resolve_field_layout()
__resolve_field_layout($name, $layout, $fields)
__section()
__section($section, $form)
__validate_field()
__validate_field($field, $value = null)
__validate_rule()
__validate_rule($field, $value)
__validation_error()
__validation_error($name, $def, $status)
api()
api($target, $args = Array ( ) )
array_merge_recursive_override()
array_merge_recursive_override() : \array
Merge multiple arrays into a single array with override priority
convertSimpleForm()
convertSimpleForm($form)
convertSimpleFormFields()
convertSimpleFormFields($form, $fields)
convert_definition()
convert_definition($def)
evaluate()
evaluate($code, $default = null, $key = null)
export()
export($array = null)
exportField()
exportField($name, $field, $array)
filterItems()
filterItems($items, $no_reindex = false, $sub = null)
getDescription()
getDescription()
getFormDefinition()
getFormDefinition($secure = false)
getName()
getName()
getPDFTitle()
getPDFTitle($params = null)
getTitle()
getTitle()
getVersion()
getVersion()
import()
import($item, $path_prefix = null)
importItem()
importItem($item, $ext_item, $path_prefix = null)
init()
init()
load()
load($form)
lock()
lock()
matchReplace()
matchReplace($string, $use_label = false, $params = Array ( ) , $default_value = null)
registerController()
registerController($controller)
renderHTML()
renderHTML($settings = Array ( ) )
renderPDF()
renderPDF($settings = Array ( ) )
resolve()
resolve()
set()
set($key, $value, $exec_filters = true)
setTags()
setTags($tags)
smart_merge_recursive_override()
smart_merge_recursive_override()
toFormArray()
toFormArray($array = null, $fields = null) : mixed
Return the form data to send to the client frontend

This method returns forms data with fields stripped if they are tagged and those tags are not set.

unlock()
unlock()
validate()
validate()
Powered by Scroly.io Generated: Thursday, July 9th 2020 at 12:40pm