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 TSelect

Description

Implements interfaces:

Select Widget

Located in /widget/form/TSelect.php (line 24)

TField
   |
   --TSelect
Direct descendents
Class Description
TMultiEntry Multi Entry Widget
TMultiSearch Multi Search Widget
TDBSelect Database Select Widget
Variable Summary
mixed $formName
mixed $height
mixed $id
mixed $items
mixed $separator
mixed $value
mixed $withTitles
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
static reload ($formname, $name, $items, [$startEmpty = FALSE])
__construct ($name)
addItems ($items)
getSize ()
renderItems ([$with_titles = true])
setChangeAction ($action)
setChangeFunction ($function)
setDefaultOption ($option)
setSize ($width, [$height = NULL])
setValue ($value)
show ()
Variables
mixed $changeAction (line 31)
  • access: protected

Redefined in descendants as:
mixed $changeFunction (line 30)
  • access: protected

Redefined in descendants as:
mixed $defaultOption (line 32)
  • access: protected
mixed $formName (line 29)
  • access: protected

Redefinition of:
TField::$formName
mixed $height (line 27)
  • access: protected

Redefined in descendants as:
mixed $id (line 26)
  • access: protected

Redefinition of:
TField::$id

Redefined in descendants as:
mixed $items (line 28)
  • access: protected

Redefined in descendants as:
mixed $separator (line 33)
  • access: protected

Redefined in descendants as:
mixed $value (line 34)
  • access: protected

Redefinition of:
TField::$value

Redefined in descendants as:
mixed $withTitles (line 35)
  • access: protected

Inherited Variables

Inherited from TField

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

Clear the field

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

Redefinition of:
TField::clearField()
Clear the field

Redefined in descendants as:
static disableField (line 245)

Disable the field

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

Redefinition of:
TField::disableField()
Disable the field

Redefined in descendants as:
static enableField (line 235)

Enable the field

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

Redefinition of:
TField::enableField()
Enable the field

Redefined in descendants as:
static reload (line 212)

Reload combobox items after it is already shown

  • access: public
static reload ($formname, $name, $items, [$startEmpty = FALSE])
  • $formname: form name (used in gtk version)
  • $name: field name
  • $items: array with items
  • $startEmpty: ...
Constructor __construct (line 41)

Class Constructor

  • access: public
__construct ($name)
  • $name: widget's name

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 83)

Add items to the select

  • access: public
addItems ($items)
  • $items: An indexed array containing the combo options
disableMultiple (line 60)

Disable multiple selection

  • access: public
disableMultiple ()

Redefined in descendants as:
disableTitles (line 69)

Disable option titles

  • access: public
disableTitles ()
getItems (line 94)

Return the items

  • access: public
getItems ()
getPostData (line 154)

Return the post data

  • access: public
getPostData ()

Redefinition of:
TField::getPostData()
Return the post data

Redefined in descendants as:
getSize (line 114)

Returns the size

  • return: height)
  • access: public
getSize ()

Redefinition of:
TField::getSize()
Returns the field size

Redefined in descendants as:
renderItems (line 263)

Render items

  • access: protected
renderItems ([$with_titles = true])
  • $with_titles

Redefined in descendants as:
setChangeAction (line 184)

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

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

Set change function

  • access: public
setChangeFunction ($function)
  • $function
setDefaultOption (line 74)
  • access: public
setDefaultOption ($option)
  • $option
setSize (line 104)

Define the Field's width

  • access: public
setSize ($width, [$height = NULL])
  • $width: Field's width in pixels
  • $height: Field's height in pixels

Redefinition of:
TField::setSize()
Define the Field's width

Redefined in descendants as:
setValue (line 132)

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

Redefined in descendants as:
setValueSeparator (line 123)

Define the field's separator

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

Redefined in descendants as:
show (line 325)

Shows the widget

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

Redefined in descendants as:

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