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 TDBCheckGroup

Description

Database CheckBox Widget

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

TField
   |
   --TCheckGroup
      |
      --TDBCheckGroup
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 checkbox 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 checkbox
  • $value: table field to be listed in the checkbox
  • $ordercolumn: column to order the fields (optional)
  • $criteria: criteria (TCriteria object) to filter the model (optional)
  • $options: array of options [layout, breakItems, useButton, value, valueSeparator, 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:
TCheckGroup::__construct()
Class Constructor

Inherited Methods

Inherited From TCheckGroup

TCheckGroup::__construct()
TCheckGroup::addItems()
TCheckGroup::checkAll()
TCheckGroup::clearField()
TCheckGroup::disableField()
TCheckGroup::enableField()
TCheckGroup::getButtons()
TCheckGroup::getItems()
TCheckGroup::getLabels()
TCheckGroup::getLayout()
TCheckGroup::getPostData()
TCheckGroup::reload()
TCheckGroup::setBreakItems()
TCheckGroup::setChangeAction()
TCheckGroup::setChangeFunction()
TCheckGroup::setLayout()
TCheckGroup::setUseButton()
TCheckGroup::setUseSwitch()
TCheckGroup::setValue()
TCheckGroup::setValueSeparator()
TCheckGroup::show()
TCheckGroup::__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()