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 TCombo

Description

Implements interfaces:

ComboBox Widget

Located in /widget/form/TCombo.php (line 22)

TField
   |
    --TCombo
Direct descendents
Class Description
 class TDBCombo Database ComboBox Widget
Variable Summary
 mixed $formName
 mixed $id
 mixed $items
Method Summary
 static clearField ($form_name $form_name, $field $field) void
 static disableField ($form_name $form_name, $field $field) void
 static enableField ($form_name $form_name, $field $field) void
 static reload ($formname $formname, $name $name, $items $items, [$startEmpty $startEmpty = FALSE]) void
 __construct ($name $name) TCombo
 addItems ($items $items) void
 clear () void
 enableSearch () void
 getItems () void
 getPostData () void
 setChangeAction ( $action) void
 setDefaultOption ($option $option) void
 show () void
Variables
mixed $formName (line 26)
  • access: protected

Redefinition of:
TField::$formName
mixed $id (line 24)
  • access: protected

Redefinition of:
TField::$id
mixed $items (line 25)
  • access: protected

Redefined in descendants as:

Inherited Variables

Inherited from TField

TField::$editable
TField::$label
TField::$name
TField::$size
TField::$tag
TField::$value
Methods
static clearField (line 188)

Clear the field

  • access: public
void clearField ($form_name $form_name, $field $field)
  • $form_name $form_name: Form name
  • $field $field: Field name

Redefinition of:
TField::clearField()
Clear the field
static disableField (line 178)

Disable the field

  • access: public
void disableField ($form_name $form_name, $field $field)
  • $form_name $form_name: Form name
  • $field $field: Field name

Redefinition of:
TField::disableField()
Disable the field
static enableField (line 168)

Enable the field

  • access: public
void enableField ($form_name $form_name, $field $field)
  • $form_name $form_name: Form name
  • $field $field: Field name

Redefinition of:
TField::enableField()
Enable the field
static reload (line 144)

Reload combobox items after it is already shown

  • access: public
void reload ($formname $formname, $name $name, $items $items, [$startEmpty $startEmpty = FALSE])
  • $formname $formname: form name (used in gtk version)
  • $name $name: field name
  • $items $items: array with items
  • $startEmpty $startEmpty: if the combo will have an empty first item
Constructor __construct (line 35)

Class Constructor

  • access: public
TCombo __construct ($name $name)
  • $name $name: widget's name

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 61)

Add items to the combo box

  • access: public
void addItems ($items $items)
  • $items $items: An indexed array containing the combo options
clear (line 52)

Clear combo

  • access: public
void clear ()
enableSearch (line 80)

Enable search

  • access: public
void enableSearch ()
getItems (line 72)

Return the combo items

  • access: public
void getItems ()
getPostData (line 89)

Return the post data

  • access: public
void getPostData ()

Redefinition of:
TField::getPostData()
Return the post data
setChangeAction (line 124)

Define the action to be executed when the user changes the combo

  • access: public
void setChangeAction ( $action)
  • $action $action: TAction object
setDefaultOption (line 197)

Define the combo default option value

  • access: public
void setDefaultOption ($option $option)
  • $option $option: option value
show (line 205)

Shows the widget

  • access: public
void show ()

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TField

 TField::__construct()
 TField::addValidation()
 TField::clearField()
 TField::disableField()
 TField::enableField()
 TField::getContents()
 TField::getEditable()
 TField::getId()
 TField::getLabel()
 TField::getName()
 TField::getPostData()
 TField::getProperty()
 TField::getSize()
 TField::getValidations()
 TField::getValue()
 TField::isRequired()
 TField::setEditable()
 TField::setFormName()
 TField::setId()
 TField::setLabel()
 TField::setName()
 TField::setProperty()
 TField::setSize()
 TField::setTip()
 TField::setValue()
 TField::validate()
 TField::__call()
 TField::__clone()
 TField::__get()
 TField::__set()