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 TCheckList

Description

Implements interfaces:

Checklist

Located in /widget/form/TCheckList.php (line 23)


	
			
Direct descendents
Class Description
TDBCheckList Database Checklist
Variable Summary
mixed $checkColumn
mixed $datagrid
mixed $fields
mixed $formName
mixed $idColumn
mixed $name
mixed $validations
mixed $value
mixed $width
Method Summary
__construct ($name)
addColumn ($name, $label, $align, $width)
addItem ($object)
addItems ($objects)
addValidation ($label, $validator, [$parameters = NULL])
clear ()
fillWith ($database, $model, $key, [$ordercolumn = NULL], [$criteria = NULL])
getName ()
getSize ()
setFormName ($name)
setId ($id)
setIdColumn ($name)
setName ($name)
setSize ($size)
setValue ($value)
show ()
__call ($method, $parameters)
Variables
mixed $checkAllButton (line 33)
  • access: protected
mixed $checkColumn (line 32)
  • access: protected
mixed $datagrid (line 25)
  • access: protected
mixed $fields (line 27)
  • access: protected
mixed $formName (line 28)
  • access: protected
mixed $idColumn (line 26)
  • access: protected
mixed $name (line 29)
  • access: protected
mixed $validations (line 31)
  • access: protected
mixed $value (line 30)
  • access: protected
mixed $width (line 34)
  • access: protected
Methods
Constructor __construct (line 41)

Construct method

  • access: public
__construct ($name)
  • $name

Redefined in descendants as:
addColumn (line 201)

Add list column

  • access: public
addColumn ($name, $label, $align, $width)
  • $name: = Name of the column in the database
  • $label: = Text label that will be shown in the header
  • $align: = Column align (left, center, right)
  • $width: = Column Width (pixels)
addItem (line 214)

Add item

  • access: public
addItem ($object)
  • $object
addItems (line 253)

add Items

  • access: public
addItems ($objects)
  • $objects
addValidation (line 347)

Add a field validator

  • access: public
addValidation ($label, $validator, [$parameters = NULL])
  • $label: Field name
  • $validator: TFieldValidator object
  • $parameters: Aditional parameters
clear (line 277)

Clear datagrid

  • access: public
clear ()
disableCheckAll (line 117)

Disable check all button

  • access: public
disableCheckAll ()
disableHtmlConversion (line 74)

Disable htmlspecialchars on output

  • access: public
disableHtmlConversion ()
fillWith (line 267)

Fill with model objects

  • access: public
fillWith ($database, $model, $key, [$ordercolumn = NULL], [$criteria = NULL])
  • $database
  • $model
  • $key
  • $ordercolumn
  • $criteria
getFields (line 285)

Get fields

  • access: public
getFields ()
getFormName (line 303)

Return the name of the form to wich the field is attached

  • access: public
getFormName ()
getName (line 134)

Returns the field's name

  • access: public
getName ()

Implementation of:
AdiantiWidgetInterface::getName()
getPostData (line 319)

Get post data

  • access: public
getPostData ()
getSize (line 99)

Returns checklist size

getSize ()
getValidations (line 355)

Returns field validations

  • access: public
getValidations ()
getValue (line 181)

Returns the selected ids

  • access: public
getValue ()

Implementation of:
AdiantiWidgetInterface::getValue()
setFormName (line 295)

Define the name of the form to wich the field is attached

  • access: public
setFormName ($name)
  • $name: A string containing the name of the form
setId (line 107)

Change Id

  • access: public
setId ($id)
  • $id
setIdColumn (line 189)

Define the Identification column

  • access: public
setIdColumn ($name)
  • $name
setName (line 126)

Define the field's name

  • access: public
setName ($name)
  • $name: A string containing the field's name

Implementation of:
AdiantiWidgetInterface::setName()
setSize (line 82)

Set checklist size

  • access: public
setSize ($size)
  • $size
setValue (line 143)

Define the checklist selected ids

  • access: public
setValue ($value)
  • $value

Implementation of:
AdiantiWidgetInterface::setValue()
show (line 381)

Show checklist

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()
validate (line 363)

Validate a field

  • access: public
validate ()
__call (line 311)

Redirect calls to decorated object

  • access: public
__call ($method, $parameters)
  • $method
  • $parameters