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 TDBRadioGroup

Description

Database Radio Widget

Located in /widget/wrapper/TDBRadioGroup.php (line 19)

TField
   |
   --TRadioGroup
      |
      --TDBRadioGroup
Variable Summary
mixed $items
Method Summary
static reloadFromModel ($formname, $field, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL], [$options = []])
__construct ($name, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL])
Methods
static reloadFromModel (line 56)

Reload radio from model data

  • access: public
static reloadFromModel ($formname, $field, $database, $model, $key, $value, [$ordercolumn = NULL], [$criteria = NULL], [$options = []])
  • $formname: form name
  • $field: field name
  • $database: database name
  • $model: model class name
  • $key: table field to be used as key in the radio
  • $value: table field to be listed in the radio
  • $ordercolumn: column to order the fields (optional)
  • $criteria: criteria (TCriteria object) to filter the model (optional)
  • $options: array of options [layout, breakItems, useButton, value, changeAction, changeFunction]
Constructor __construct (line 35)

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:
TRadioGroup::__construct()
Class Constructor

Inherited Methods

Inherited From TRadioGroup

TRadioGroup::__construct()
TRadioGroup::addItems()
TRadioGroup::clearField()
TRadioGroup::disableField()
TRadioGroup::enableField()
TRadioGroup::getButtons()
TRadioGroup::getItems()
TRadioGroup::getLabels()
TRadioGroup::getLayout()
TRadioGroup::getPostData()
TRadioGroup::getValue()
TRadioGroup::reload()
TRadioGroup::setBooleanMode()
TRadioGroup::setBreakItems()
TRadioGroup::setChangeAction()
TRadioGroup::setChangeFunction()
TRadioGroup::setLayout()
TRadioGroup::setUseButton()
TRadioGroup::setValue()
TRadioGroup::show()
TRadioGroup::__clone()

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