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 TDBCombo

Description

Database ComboBox Widget

Located in /widget/wrapper/TDBCombo.php (line 22)

TField
   |
   --TCombo
      |
      --TDBCombo
Variable Summary
mixed $items
Method Summary
static reloadFromModel ($formname, $field, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL], [$startEmpty = FALSE], [$fire_events = TRUE])
__construct ($name, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL])
Variables
Methods
static reloadFromModel (line 115)

Reload combo from model data

  • access: public
static reloadFromModel ($formname, $field, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL], [$startEmpty = FALSE], [$fire_events = TRUE])
  • $formname: form name
  • $field: field name
  • $database: database name
  • $model: model class name
  • $key: table field to be used as key in the combo
  • $value: table field to be listed in the combo
  • $ordercolumn: column to order the fields (optional)
  • $criteria: criteria (TCriteria object) to filter the model (optional)
  • $startEmpty: if the combo will have an empty first item
  • $fire_events: if change action will be fired
Constructor __construct (line 36)

Class Constructor

  • access: public
__construct ($name, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL])
  • $name: widget's name
  • $database: database name
  • $model: model class name
  • $key: table field to be used as key in the combo
  • $value: table field to be listed in the combo
  • $ordercolumn: column to order the fields (optional)
  • $criteria: criteria (TCriteria object) to filter the model (optional)

Redefinition of:
TCombo::__construct()
Class Constructor

Inherited Methods

Inherited From TCombo

TCombo::__construct()
TCombo::addItems()
TCombo::clear()
TCombo::clearField()
TCombo::disableField()
TCombo::enableField()
TCombo::enableSearch()
TCombo::getItems()
TCombo::getPostData()
TCombo::getValue()
TCombo::reload()
TCombo::renderItems()
TCombo::setBooleanMode()
TCombo::setChangeAction()
TCombo::setChangeFunction()
TCombo::setDefaultOption()
TCombo::setValue()
TCombo::show()

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::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()