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)
static showField ($form, $field)
__construct ([$name = 'my_form'])
addQuickAction ($label, $action, [$icon = 'ico_save.png'])
addQuickButton ($label, $action, [$icon = 'ico_save.png'])
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 $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
Methods
static hideField (line 402)
  • access: public
static hideField ($form, $field)
  • $form
  • $field
static showField (line 394)
  • access: public
static showField ($form, $field)
  • $form
  • $field
Constructor __construct (line 50)

Class Constructor

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

Redefinition of:
TForm::__construct()
Class Constructor

Redefined in descendants as:
addQuickAction (line 286)

Add a form action

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

Redefined in descendants as:
addQuickButton (line 321)

Add a form button

  • access: public
addQuickButton ($label, $action, [$icon = 'ico_save.png'])
  • $label: Action Label
  • $action: Javascript action
  • $icon: Action Icon
addQuickField (line 167)

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 233)

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 386)

Add a row

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

Clear actions row

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

Detach action buttons

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

Return an array with action buttons

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

Returns the actions container

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

Returns the form container

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

Return the fields by row count

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

Returns the input groups

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

Returns the inner table

  • access: public
getTable ()
setFieldsByRow (line 84)

Define the field quantity per row

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

Add a form title

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

Redefined in descendants as:
__set (line 117)

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::show()
TForm::validate()
TForm::__set()