TQuickForm
extends TForm
in package
Create quick forms for input data with a standard container for elements
Tags
Table of Contents
Properties
- $actionButtons : mixed
- $actionCell : mixed
- $actionsContainer : mixed
- $children : mixed
- $client_validation : mixed
- $currentRow : mixed
- $element : mixed
- $fieldPositions : mixed
- $fields : mixed
- $fieldsByRow : mixed
- $hasAction : mixed
- $inputRows : mixed
- $js_function : mixed
- $name : mixed
- $silent_fields : mixed
- $table : mixed
- $titleCell : mixed
- $forms : mixed
Methods
- __construct() : mixed
- Class Constructor
- __set() : mixed
- Intercepts whenever someones assign a new property's value
- add() : mixed
- Add a container to the form (usually a table or panel)
- addField() : mixed
- Add a Form Field
- addQuickAction() : mixed
- Add a form action
- addQuickButton() : mixed
- Add a form button
- addQuickField() : mixed
- Add a form field
- addQuickFields() : mixed
- Add a form field
- addRow() : mixed
- Add a row
- clear() : mixed
- clear the form Data
- delActions() : mixed
- Clear actions row
- delField() : mixed
- Remove a form field
- delFields() : mixed
- Remove all form fields
- detachActionButtons() : mixed
- Detach action buttons
- getActionButtons() : mixed
- Return an array with action buttons
- getActionsContainer() : mixed
- Returns the actions container
- getChild() : mixed
- Returns the child object
- getContainer() : mixed
- Returns the form container
- getData() : mixed
- Returns the form POST data as an object
- getField() : The
- Returns a form field by its name
- getFields() : array<string|int, mixed>
- Returns an array with the form fields
- getFieldsByRow() : mixed
- Return the fields by row count
- getFormByName() : mixed
- Returns the form object by its name
- getInputRows() : mixed
- Returns the input groups
- getName() : mixed
- Returns the form name
- getTable() : mixed
- Returns the inner table
- getValues() : mixed
- Returns the form start values as an object
- hideField() : mixed
- pack() : mixed
- Pack a container to the form (usually a table or panel)
- sendData() : mixed
- Send data for a form located in the parent window
- setClientValidation() : mixed
- Turn on/off client validation
- setData() : mixed
- Define the data of the form
- setEditable() : mixed
- Define if the form will be editable
- setFields() : mixed
- Define wich are the form fields
- setFieldsByRow() : mixed
- Define the field quantity per row
- setFormTitle() : mixed
- Add a form title
- setName() : mixed
- Define the form name
- setProperty() : mixed
- Define a form property
- setTagName() : mixed
- Change tag name
- show() : mixed
- Shows the form at the screen
- showField() : mixed
- silentField() : mixed
- Silent field
- unsetProperty() : mixed
- Unset form property
- validate() : mixed
- Validate form
Properties
$actionButtons
protected
mixed
$actionButtons
$actionCell
protected
mixed
$actionCell
$actionsContainer
protected
mixed
$actionsContainer
$children
protected
mixed
$children
$client_validation
protected
mixed
$client_validation
$currentRow
protected
mixed
$currentRow
$element
protected
mixed
$element
$fieldPositions
protected
mixed
$fieldPositions
$fields
protected
mixed
$fields
$fieldsByRow
protected
mixed
$fieldsByRow
$hasAction
protected
mixed
$hasAction
$inputRows
protected
mixed
$inputRows
$js_function
protected
mixed
$js_function
$name
protected
mixed
$name
$silent_fields
protected
mixed
$silent_fields
$table
protected
mixed
$table
$titleCell
protected
mixed
$titleCell
$forms
private
static mixed
$forms
Methods
__construct()
Class Constructor
public
__construct([ $name = 'my_form' ]) : mixed
Parameters
__set()
Intercepts whenever someones assign a new property's value
public
__set( $name, $value) : mixed
Parameters
add()
Add a container to the form (usually a table or panel)
public
add( $object[, mixed $is_field = false ]) : mixed
Parameters
addField()
Add a Form Field
public
addField(AdiantiWidgetInterface $field) : mixed
Parameters
- $field : AdiantiWidgetInterface
-
Object
addQuickAction()
Add a form action
public
addQuickAction( $label, $action[, $icon = 'fa:save' ]) : mixed
Parameters
addQuickButton()
Add a form button
public
addQuickButton( $label, $action[, $icon = 'fa:save' ]) : mixed
Parameters
addQuickField()
Add a form field
public
addQuickField( $label, $object[, $size = 200 ][, $validator = NULL ][, mixed $label_size = NULL ]) : mixed
Parameters
addQuickFields()
Add a form field
public
addQuickFields( $label, $objects[, $required = FALSE ]) : mixed
Parameters
addRow()
Add a row
public
addRow() : mixed
clear()
clear the form Data
public
clear([mixed $keepDefaults = FALSE ]) : mixed
Parameters
- $keepDefaults : mixed = FALSE
delActions()
Clear actions row
public
delActions() : mixed
delField()
Remove a form field
public
delField(AdiantiWidgetInterface $field) : mixed
Parameters
- $field : AdiantiWidgetInterface
-
Object
delFields()
Remove all form fields
public
delFields() : mixed
detachActionButtons()
Detach action buttons
public
detachActionButtons() : mixed
getActionButtons()
Return an array with action buttons
public
getActionButtons() : mixed
getActionsContainer()
Returns the actions container
public
getActionsContainer() : mixed
getChild()
Returns the child object
public
getChild() : mixed
getContainer()
Returns the form container
public
getContainer() : mixed
getData()
Returns the form POST data as an object
public
getData([mixed $class = 'StdClass' ]) : mixed
Parameters
- $class : mixed = 'StdClass'
-
A string containing the class for the returning object
getField()
Returns a form field by its name
public
getField(mixed $name) : The
Parameters
- $name : mixed
-
A string containing the field's name
Return values
The —Field object
getFields()
Returns an array with the form fields
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —of form fields
getFieldsByRow()
Return the fields by row count
public
getFieldsByRow() : mixed
getFormByName()
Returns the form object by its name
public
static getFormByName(mixed $name) : mixed
Parameters
- $name : mixed
getInputRows()
Returns the input groups
public
getInputRows() : mixed
getName()
Returns the form name
public
getName() : mixed
getTable()
Returns the inner table
public
getTable() : mixed
getValues()
Returns the form start values as an object
public
getValues([ $class = 'StdClass' ][, mixed $withOptions = false ]) : mixed
Parameters
hideField()
public
static hideField(mixed $form, mixed $field[, mixed $speed = 0 ]) : mixed
Parameters
- $form : mixed
- $field : mixed
- $speed : mixed = 0
pack()
Pack a container to the form (usually a table or panel)
public
pack() : mixed
sendData()
Send data for a form located in the parent window
public
static sendData( $form_name, $object[, mixed $aggregate = FALSE ][, mixed $fireEvents = TRUE ][, mixed $timeout = 0 ]) : mixed
Parameters
setClientValidation()
Turn on/off client validation
public
setClientValidation(mixed $bool) : mixed
Parameters
- $bool : mixed
setData()
Define the data of the form
public
setData(mixed $object) : mixed
Parameters
- $object : mixed
-
An Active Record object
setEditable()
Define if the form will be editable
public
setEditable( $bool) : mixed
Parameters
setFields()
Define wich are the form fields
public
setFields(mixed $fields) : mixed
Parameters
- $fields : mixed
-
An array containing a collection of TField objects
setFieldsByRow()
Define the field quantity per row
public
setFieldsByRow( $count) : mixed
Parameters
setFormTitle()
Add a form title
public
setFormTitle( $title) : mixed
Parameters
setName()
Define the form name
public
setName(mixed $name) : mixed
Parameters
- $name : mixed
-
A string containing the form name
setProperty()
Define a form property
public
setProperty( $name, $value[, mixed $replace = TRUE ]) : mixed
Parameters
setTagName()
Change tag name
public
setTagName(mixed $name) : mixed
Parameters
- $name : mixed
show()
Shows the form at the screen
public
show() : mixed
showField()
public
static showField(mixed $form, mixed $field[, mixed $speed = 0 ]) : mixed
Parameters
- $form : mixed
- $field : mixed
- $speed : mixed = 0
silentField()
Silent field
public
silentField(mixed $name) : mixed
Parameters
- $name : mixed
unsetProperty()
Unset form property
public
unsetProperty(mixed $name) : mixed
Parameters
- $name : mixed
validate()
Validate form
public
validate() : mixed