API Documentação da API
Lançado Adianti Framework 7.6!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TQuickForm extends TForm
in package

Create quick forms for input data with a standard container for elements

Tags
version
7.6
subpackage

wrapper

author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

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

$actionsContainer

protected mixed $actionsContainer

$children

protected mixed $children

$client_validation

protected mixed $client_validation

$element

protected mixed $element

$js_function

protected mixed $js_function

$silent_fields

protected mixed $silent_fields

$forms

private static mixed $forms

Methods

__construct()

Class Constructor

public __construct([ $name = 'my_form' ]) : mixed
Parameters
$name : = 'my_form'

Form Name

__set()

Intercepts whenever someones assign a new property's value

public __set( $name,  $value) : mixed
Parameters
$name :

Property Name

$value :

Property Value

add()

Add a container to the form (usually a table or panel)

public add( $object[, mixed $is_field = false ]) : mixed
Parameters
$object :

Any Object that implements the show() method

$is_field : mixed = false

addQuickAction()

Add a form action

public addQuickAction( $label,  $action[,  $icon = 'fa:save' ]) : mixed
Parameters
$label :

Action Label

$action :

TAction Object

$icon : = 'fa:save'

Action Icon

addQuickButton()

Add a form button

public addQuickButton( $label,  $action[,  $icon = 'fa:save' ]) : mixed
Parameters
$label :

Action Label

$action :

Javascript action

$icon : = 'fa:save'

Action Icon

addQuickField()

Add a form field

public addQuickField( $label,  $object[,  $size = 200 ][,  $validator = NULL ][, mixed $label_size = NULL ]) : mixed
Parameters
$label :

Field Label

$object :

Field Object

$size : = 200

Field Size

$validator : = NULL

Field Validator

$label_size : mixed = NULL

addQuickFields()

Add a form field

public addQuickFields( $label,  $objects[,  $required = FALSE ]) : mixed
Parameters
$label :

Field Label

$objects :

Array of Objects

$required : = FALSE

Boolean TRUE if required

clear()

clear the form Data

public clear([mixed $keepDefaults = FALSE ]) : mixed
Parameters
$keepDefaults : mixed = FALSE

delActions()

Clear actions row

public delActions() : mixed

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
$class : = 'StdClass'

A string containing the class for the returning object

$withOptions : mixed = false

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
$form_name :

Form Name

$object :

An Object containing the form data

$aggregate : mixed = FALSE
$fireEvents : mixed = TRUE
$timeout : mixed = 0

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
$bool :

A Boolean

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
$count :

Field count

setFormTitle()

Add a form title

public setFormTitle( $title) : mixed
Parameters
$title :

Form title

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
$name :

Property Name

$value :

Property Value

$replace : mixed = TRUE

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

        
On this page

Search results