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 TSortList

Description

Implements interfaces:

A Sortable list

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

TField
   |
   --TSortList
Direct descendents
Class Description
TDBSortList Database Sortlist Widget
Variable Summary
mixed $height
mixed $id
mixed $separator
mixed $width
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
addItems ($items)
connectTo ($list)
setChangeAction ($action)
setChangeFunction ($function)
setItemIcon ($icon)
setLimit ($limit)
setOrientation ($orientation)
setSize ($width, [$height = NULL])
setValue ($value)
show ()
Variables
mixed $changeFunction (line 35)
  • access: protected
mixed $height (line 37)
  • access: protected
mixed $id (line 34)
  • access: protected

Redefinition of:
TField::$id
mixed $separator (line 38)
  • access: protected
mixed $width (line 36)
  • access: protected

Inherited Variables

Inherited from TField

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

Clear the field

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

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

Disable the field

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

Redefinition of:
TField::disableField()
Disable the field
static enableField (line 220)

Enable the field

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

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

Class Constructor

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

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
addItems (line 153)

Add items to the sort list

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

Connect to another list

  • access: public
connectTo ($list)
  • $list: Another TSortList
getItems (line 165)

Return the sort items

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

Return the post data

  • access: public
getPostData ()

Redefinition of:
TField::getPostData()
Return the post data
setChangeAction (line 196)

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

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

Set change function

  • access: public
setChangeFunction ($function)
  • $function
setItemIcon (line 81)

Define the item icon

  • access: public
setItemIcon ($icon)
  • $icon: Item icon
setLimit (line 72)

Define limit

  • access: public
setLimit ($limit)
  • $limit
setOrientation (line 64)

Define orientation

  • access: public
setOrientation ($orientation)
  • $orientation: (horizontal, vertical)
setSize (line 89)

Define the list size

  • access: public
setSize ($width, [$height = NULL])
  • $width
  • $height

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

Define the field's value

  • access: public
setValue ($value)
  • $value: An array the field's values

Redefinition of:
TField::setValue()
Define the field's value

Implementation of:
AdiantiWidgetInterface::setValue()
setValueSeparator (line 99)

Define the field's separator

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

Shows the widget at the screen

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

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