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 TCombo

Description

Implements interfaces:

ComboBox Widget

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

TField
   |
   --TCombo
Direct descendents
Class Description
TDBCombo Database ComboBox Widget
Variable Summary
mixed $formName
mixed $id
mixed $is_boolean
mixed $items
Method Summary
static clearField ($form_name, $field, [$fire_events = TRUE])
static disableField ($form_name, $field)
static enableField ($form_name, $field)
static reload ($formname, $name, $items, [$startEmpty = FALSE], [$fire_events = TRUE])
__construct ($name)
addItems ($items)
clear ()
setChangeAction ($action)
setChangeFunction ($function)
setDefaultOption ($option)
setValue ($value)
show ()
Variables
mixed $changeFunction (line 30)
  • access: protected
mixed $formName (line 26)
  • access: protected

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

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

Redefined in descendants as:

Inherited Variables

Inherited from TField

TField::$editable
TField::$label
TField::$name
TField::$properties
TField::$size
TField::$tag
TField::$value
TField::$valueCallback
Methods
static clearField (line 268)

Clear the field

  • access: public
static clearField ($form_name, $field, [$fire_events = TRUE])
  • $form_name: Form name
  • $field: Field name
  • $fire_events: If change action will be fired

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

Disable the field

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

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

Enable the field

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

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

Reload combobox items after it is already shown

  • access: public
static reload ($formname, $name, $items, [$startEmpty = FALSE], [$fire_events = TRUE])
  • $formname: form name (used in gtk version)
  • $name: field name
  • $items: array with items
  • $startEmpty: if the combo will have an empty first item
  • $fire_events: If change action will be fired
Constructor __construct (line 37)

Class Constructor

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

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 115)

Add items to the combo box

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

Clear combo

  • access: public
clear ()
enableSearch (line 134)

Enable search

  • access: public
enableSearch ()
getItems (line 126)

Return the combo items

  • access: public
getItems ()
getPostData (line 143)

Return the post data

  • access: public
getPostData ()

Redefinition of:
TField::getPostData()
Return the post data
getValue (line 91)

Returns the field's value

  • access: public
getValue ()

Redefinition of:
TField::getValue()
Returns the field's value

Implementation of:
AdiantiWidgetInterface::getValue()
renderItems (line 286)

Render items

  • access: public
renderItems ()
setBooleanMode (line 55)

Enable/disable boolean mode

  • access: public
setBooleanMode ()
setChangeAction (line 185)

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

  • access: public
setChangeAction ($action)
  • $action: TAction object
setChangeFunction (line 201)

Set change function

  • access: public
setChangeFunction ($function)
  • $function
setDefaultOption (line 278)

Define the combo default option value

  • access: public
setDefaultOption ($option)
  • $option: option value
setValue (line 76)

Define the field's value

  • access: public
setValue ($value)
  • $value: A string containing the field's value

Redefinition of:
TField::setValue()
Define the field's value

Implementation of:
AdiantiWidgetInterface::setValue()
show (line 349)

Shows the widget

  • access: public
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::getFormName()
TField::getId()
TField::getLabel()
TField::getName()
TField::getPostData()
TField::getPropertiesAsString()
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::setValueCallback()
TField::validate()
TField::__call()
TField::__clone()
TField::__get()
TField::__isset()
TField::__set()
TField::__toString()