Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TQuickForm

Description

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

Located in /widget/wrapper/TQuickForm.php (line 31)

TForm
   |
   --TQuickForm
Direct descendents
Class Description
TQuickNotebookForm Create quick forms with a notebook wrapper
Variable Summary
Method Summary
static hideField ($form, $field, [$speed = 0])
static showField ($form, $field, [$speed = 0])
__construct ([$name = 'my_form'])
addQuickAction ($label, $action, [$icon = 'fa:save'])
addQuickButton ($label, $action, [$icon = 'fa:save'])
addQuickField ($label, $object, [$size = 200], [$validator = NULL], [$label_size = NULL])
addQuickFields ($label, $objects, [$required = FALSE])
addRow ()
setFieldsByRow ($count)
setFormTitle ($title)
__set ($name, $value)
Variables
mixed $actionButtons (line 35)
  • access: protected
mixed $actionCell (line 43)
  • access: protected
mixed $actionsContainer (line 39)
  • access: protected
mixed $client_validation (line 45)
  • access: protected
mixed $currentRow (line 37)
  • access: protected
mixed $fieldPositions (line 44)
  • access: protected
mixed $fields (line 33)
  • access: protected

Redefinition of:
TForm::$fields
mixed $fieldsByRow (line 41)
  • access: protected
mixed $hasAction (line 40)
  • access: protected
mixed $inputRows (line 36)
  • access: protected
mixed $name (line 34)
  • access: protected

Redefinition of:
TForm::$name
mixed $table (line 38)
  • access: protected

Redefined in descendants as:
mixed $titleCell (line 42)
  • access: protected

Inherited Variables

Inherited from TForm

TForm::$children
TForm::$element
TForm::$js_function
TForm::$silent_fields
Methods
static hideField (line 421)
  • access: public
static hideField ($form, $field, [$speed = 0])
  • $form
  • $field
  • $speed
static showField (line 413)
  • access: public
static showField ($form, $field, [$speed = 0])
  • $form
  • $field
  • $speed
Constructor __construct (line 51)

Class Constructor

  • access: public
__construct ([$name = 'my_form'])
  • $name: Form Name

Redefinition of:
TForm::__construct()
Class Constructor

Redefined in descendants as:
addQuickAction (line 305)

Add a form action

  • access: public
addQuickAction ($label, $action, [$icon = 'fa:save'])
  • $label: Action Label
  • $action: TAction Object
  • $icon: Action Icon

Redefined in descendants as:
addQuickButton (line 340)

Add a form button

  • access: public
addQuickButton ($label, $action, [$icon = 'fa:save'])
  • $label: Action Label
  • $action: Javascript action
  • $icon: Action Icon
addQuickField (line 186)

Add a form field

  • access: public
addQuickField ($label, $object, [$size = 200], [$validator = NULL], [$label_size = NULL])
  • $label: Field Label
  • $object: Field Object
  • $size: Field Size
  • $validator: Field Validator
  • $label_size
addQuickFields (line 252)

Add a form field

  • access: public
addQuickFields ($label, $objects, [$required = FALSE])
  • $label: Field Label
  • $objects: Array of Objects
  • $required: Boolean TRUE if required
addRow (line 405)

Add a row

  • access: public
addRow ()
delActions (line 371)

Clear actions row

  • access: public
delActions ()
detachActionButtons (line 395)

Detach action buttons

  • access: public
detachActionButtons ()
getActionButtons (line 387)

Return an array with action buttons

  • access: public
getActionButtons ()
getActionsContainer (line 86)

Returns the actions container

  • access: public
getActionsContainer ()
getContainer (line 152)

Returns the form container

  • access: public
getContainer ()
getFieldsByRow (line 126)

Return the fields by row count

  • access: public
getFieldsByRow ()
getInputRows (line 174)

Returns the input groups

  • access: public
getInputRows ()
getTable (line 94)

Returns the inner table

  • access: public
getTable ()
setClientValidation (line 71)

Turn on/off client validation

  • access: public
setClientValidation ($bool)
  • $bool
setFieldsByRow (line 103)

Define the field quantity per row

  • access: public
setFieldsByRow ($count)
  • $count: Field count
setFormTitle (line 161)

Add a form title

  • access: public
setFormTitle ($title)
  • $title: Form title

Redefined in descendants as:
__set (line 136)

Intercepts whenever someones assign a new property's value

  • access: public
__set ($name, $value)
  • $name: Property Name
  • $value: Property Value

Redefinition of:
TForm::__set()
Intercepts whenever someones assign a new property's value

Inherited Methods

Inherited From TForm

TForm::__construct()
TForm::add()
TForm::addField()
TForm::clear()
TForm::delField()
TForm::delFields()
TForm::getChild()
TForm::getData()
TForm::getField()
TForm::getFields()
TForm::getFormByName()
TForm::getName()
TForm::getValues()
TForm::pack()
TForm::sendData()
TForm::setData()
TForm::setEditable()
TForm::setFields()
TForm::setName()
TForm::setProperty()
TForm::setTagName()
TForm::show()
TForm::silentField()
TForm::unsetProperty()
TForm::validate()
TForm::__set()