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 $value
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
addItems ($items)
setBreakItems ($breakItems)
setChangeAction ($action)
setChangeFunction ($function)
setLayout ($dir)
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 $value (line 40)
  • access: protected

Redefinition of:
TField::$value

Inherited Variables

Inherited from TField

TField::$editable
TField::$id
TField::$label
TField::$name
TField::$size
TField::$tag
Methods
static clearField (line 270)

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

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

Enable the field

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

Redefinition of:
TField::enableField()
Enable the field
Constructor __construct (line 46)

Class Constructor

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

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 125)

Add items to the check group

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

Check all options

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

Return the option buttons

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

Return the items

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

Return the option labels

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

Get the direction (vertical or horizontal)

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

Return the post data

  • access: public
getPostData ()

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

Define after how much items, it will break

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

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

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

Set change function

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

Define the direction of the options

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

Show as button

  • access: public
setUseButton ()
setValue (line 183)

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

Define the field's separator

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

Shows the widget at the screen

  • access: public
show ()

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

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