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

Inherited Variables

Inherited from TField

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

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

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

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

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

Class Constructor

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

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 73)

Add items to the select

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

Disable multiple selection

  • access: public
disableMultiple ()

Redefined in descendants as:
getItems (line 84)

Return the items

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

Return the post data

  • access: public
getPostData ()

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

Redefined in descendants as:
getSize (line 104)

Returns the size

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

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

Redefined in descendants as:
renderItems (line 249)

Render items

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

Redefined in descendants as:
setChangeAction (line 170)

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

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

Set change function

  • access: public
setChangeFunction ($function)
  • $function
setDefaultOption (line 64)
  • access: public
setDefaultOption ($option)
  • $option
setSize (line 94)

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

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

Define the field's separator

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

Redefined in descendants as:
show (line 311)

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