A melhor parceira de TI para o seu negócio English version

API Reference

Pacote: widget / Subpacote: wrapper

 Class TQuickForm

Description

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

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

TForm
   |
    --TQuickForm
Direct descendents
Class Description
 class TQuickNotebookForm Create quick forms with a notebook wrapper
Variable Summary
Method Summary
 static hideField ( $form,  $field) void
 static showField ( $form,  $field) void
 __construct ([$name $name = 'my_form']) TQuickForm
 addQuickAction ($label $label,  $action, [$icon $icon = 'ico_save.png']) void
 addQuickButton ($label $label, $action $action, [$icon $icon = 'ico_save.png']) void
 addQuickField ($label $label, AdiantiWidgetInterface $object, [$size $size = 200], [ $validator = NULL], [ $label_size = NULL]) void
 addQuickFields ($label $label, $objects $objects, [$required $required = FALSE]) void
 addRow () void
 delActions () void
 getContainer () void
 getFieldsByRow () void
 getInputRows () void
 getTable () void
 setFieldsByRow ($count $count) void
 setFormTitle ($title $title) void
 __set ($name $name, $value $value) void
Variables
mixed $actionButtons (line 33)
  • access: protected
mixed $actionCell (line 41)
  • access: protected
mixed $actionsContainer (line 37)
  • access: protected
mixed $currentRow (line 35)
  • access: protected
mixed $fieldPositions (line 42)
  • access: protected
mixed $fields (line 31)
  • access: protected

Redefinition of:
TForm::$fields
mixed $fieldsByRow (line 39)
  • access: protected
mixed $hasAction (line 38)
  • access: protected
mixed $inputRows (line 34)
  • access: protected
mixed $name (line 32)
  • access: protected

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

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

Inherited Variables

Inherited from TForm

TForm::$children
TForm::$element
TForm::$js_function
Methods
static hideField (line 395)
  • access: public
void hideField ( $form,  $field)
  • $form
  • $field
static showField (line 387)
  • access: public
void showField ( $form,  $field)
  • $form
  • $field
Constructor __construct (line 48)

Class Constructor

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

Redefinition of:
TForm::__construct()
Class Constructor

Redefined in descendants as:
addQuickAction (line 272)

Add a form action

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

Redefined in descendants as:
addQuickButton (line 314)

Add a form button

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

Add a form field

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

Add a form field

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

Add a row

  • access: public
void addRow ()
delActions (line 345)

Clear actions row

  • access: public
void delActions ()
detachActionButtons (line 369)

Detach action buttons

  • access: public
void detachActionButtons ()
getActionButtons (line 361)

Return an array with action buttons

  • access: public
void getActionButtons ()
getContainer (line 123)

Returns the form container

  • access: public
void getContainer ()
getFieldsByRow (line 97)

Return the fields by row count

  • access: public
void getFieldsByRow ()
getInputRows (line 145)

Returns the input groups

  • access: public
void getInputRows ()
getTable (line 65)

Returns the inner table

  • access: public
void getTable ()
setFieldsByRow (line 74)

Define the field quantity per row

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

Add a form title

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

Redefined in descendants as:
__set (line 107)

Intercepts whenever someones assign a new property's value

  • access: public
void __set ($name $name, $value $value)
  • $name $name: Property Name
  • $value $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::pack()
 TForm::sendData()
 TForm::setData()
 TForm::setEditable()
 TForm::setFields()
 TForm::setName()
 TForm::setProperty()
 TForm::show()
 TForm::validate()
 TForm::__set()