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 TCheckGroup

Description

Implements interfaces:

A group of CheckButton's

Located in /widget/form/TCheckGroup.php (line 26)

TField
   |
   --TCheckGroup
Direct descendents
Class Description
TDBCheckGroup Database CheckBox Widget
Variable Summary
mixed $formName
mixed $labelClass
mixed $separator
mixed $useButton
mixed $useSwitch
mixed $value
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
static reload ($formname, $name, $items, $options)
__construct ($name)
addItems ($items)
setBreakItems ($breakItems)
setChangeAction ($action)
setChangeFunction ($function)
setLayout ($dir)
setUseSwitch ([$useSwitch = TRUE], [$labelClass = 'blue'])
setValue ($value)
show ()
__clone ()
Variables
mixed $changeFunction (line 36)
  • access: protected
mixed $formName (line 37)
  • access: protected

Redefinition of:
TField::$formName
mixed $labelClass (line 38)
  • access: protected
mixed $separator (line 35)
  • access: protected
mixed $useButton (line 39)
  • access: protected
mixed $useSwitch (line 40)
  • access: protected
mixed $value (line 41)
  • access: protected

Redefinition of:
TField::$value

Inherited Variables

Inherited from TField

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

clear the field

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

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

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

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

Reload checkbox items after it is already shown

  • access: public
static reload ($formname, $name, $items, $options)
  • $formname: form name (used in gtk version)
  • $name: field name
  • $items: array with items
  • $options: array of options [layout, size, breakItems, useButton, valueSeparator, value, changeAction, changeFunction, checkAll]
Constructor __construct (line 47)

Class Constructor

  • access: public
__construct ($name)
  • $name: name of the field

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 136)

Add items to the check group

  • access: public
addItems ($items)
  • $items: An indexed array containing the options
checkAll (line 84)

Check all options

  • access: public
checkAll ()
getButtons (line 168)

Return the option buttons

  • access: public
getButtons ()
getItems (line 160)

Return the items

  • access: public
getItems ()
getLabels (line 176)

Return the option labels

  • access: public
getLabels ()
getLayout (line 101)

Get the direction (vertical or horizontal)

  • access: public
getLayout ()
getPostData (line 216)

Return the post data

  • access: public
getPostData ()

Redefinition of:
TField::getPostData()
Return the post data
setBreakItems (line 109)

Define after how much items, it will break

  • access: public
setBreakItems ($breakItems)
  • $breakItems
setChangeAction (line 239)

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

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

Set change function

  • access: public
setChangeFunction ($function)
  • $function
setLayout (line 93)

Define the direction of the options

  • access: public
setLayout ($dir)
  • $dir: String (vertical, horizontal)
setUseButton (line 117)

Show as button

  • access: public
setUseButton ()
setUseSwitch (line 126)

Show as switch

  • access: public
setUseSwitch ([$useSwitch = TRUE], [$labelClass = 'blue'])
  • $useSwitch
  • $labelClass
setValue (line 194)

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()
setValueSeparator (line 185)

Define the field's separator

  • access: public
setValueSeparator ($sep)
  • $sep: A string containing the field's separator
show (line 355)

Shows the widget at the screen

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()
__clone (line 59)

Clone object

  • access: public
__clone ()

Redefinition of:
TField::__clone()
Clone the object

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