TDBUniqueSearch
extends TDBMultiSearch
in package
implements
AdiantiWidgetInterface
DBUnique Search Widget
Tags
Table of Contents
Interfaces
- AdiantiWidgetInterface
- Widget Interface
Properties
- $allowClear : mixed
- $allowSearch : mixed
- $changeAction : mixed
- $changeFunction : mixed
- $column : mixed
- $criteria : mixed
- $database : mixed
- $defaultOption : mixed
- $editable : mixed
- $formName : mixed
- $height : mixed
- $id : mixed
- $idSearch : mixed
- $idTextSearch : mixed
- $initialItems : mixed
- $items : mixed
- $key : mixed
- $label : mixed
- $mask : mixed
- $maxSize : mixed
- $minLength : mixed
- $model : mixed
- $name : mixed
- $operator : mixed
- $orderColumn : mixed
- $properties : mixed
- $seed : mixed
- $separator : mixed
- $service : mixed
- $size : mixed
- $tag : mixed
- $value : mixed
- $valueCallback : mixed
- $withTitles : mixed
- $searchable : mixed
- $validations : mixed
Methods
- __call() : mixed
- Redirects function call
- __clone() : mixed
- Clone the object
- __construct() : mixed
- Class Constructor
- __get() : mixed
- Returns a property value
- __isset() : mixed
- Returns if the property is set
- __set() : mixed
- Intercepts whenever someones assign a new property's value
- __toString() : mixed
- Converts the object into a string
- addItems() : mixed
- Add items to the select
- addValidation() : mixed
- Add a field validator
- clearField() : mixed
- Clear the field
- disableClear() : mixed
- Disable clear
- disableField() : mixed
- Disable the field
- disableIdSearch() : mixed
- Disable search by id
- disableMultiple() : mixed
- Disable multiple selection
- disableSearch() : mixed
- Disable search
- disableTitles() : mixed
- Disable option titles
- enableField() : mixed
- Enable the field
- enableIdTextualSearch() : mixed
- Enable Id textual search
- enableSearch() : mixed
- Enable search
- getContents() : mixed
- Returns the element content as a string
- getEditable() : A
- Returns if the field is editable
- getFormName() : mixed
- Return the name of the form to wich the field is attached
- getId() : mixed
- Returns the field's id
- getItems() : mixed
- Return the items
- getLabel() : mixed
- Returns the field's label
- getName() : mixed
- Returns the field's name
- getPostData() : mixed
- Return the post data
- getPropertiesAsString() : mixed
- Get properties as string
- getProperty() : mixed
- Return a field property
- getSize() : mixed
- Returns the size
- getValidations() : mixed
- Returns field validations
- getValue() : mixed
- Returns the field's value
- isRequired() : mixed
- Returns if the field is required
- reload() : mixed
- Reload combobox items after it is already shown
- setChangeAction() : mixed
- Define the action to be executed when the user changes the combo
- setChangeFunction() : mixed
- Set change function
- setDefaultOption() : mixed
- setEditable() : mixed
- Define if the field is editable
- setFilterColumns() : mixed
- Define the filter columns
- setFormName() : mixed
- Define the name of the form to wich the field is attached
- setId() : mixed
- Define the field's id
- setLabel() : mixed
- Define the field's label
- setMask() : mixed
- Define the display mask
- setMaxSize() : mixed
- Define the maximum number of items that can be selected
- setMinLength() : mixed
- Define the minimum length for search
- setName() : mixed
- Define the field's name
- setOperator() : mixed
- Define the search operator
- setProperty() : mixed
- Define a field property
- setService() : mixed
- Define the search service
- setSize() : mixed
- Define the Field's width
- setTagName() : mixed
- Change input tag name
- setTip() : mixed
- Define the field's tooltip
- setValue() : mixed
- Define the field's value
- setValueCallback() : mixed
- Set callback for setValue method
- setValueSeparator() : mixed
- Define the field's separator
- show() : mixed
- Show the component
- validate() : mixed
- Validate a field
- renderItems() : mixed
- Render items
Properties
$allowClear
protected
mixed
$allowClear
$allowSearch
protected
mixed
$allowSearch
$changeAction
protected
mixed
$changeAction
$changeFunction
protected
mixed
$changeFunction
$column
protected
mixed
$column
$criteria
protected
mixed
$criteria
$database
protected
mixed
$database
$defaultOption
protected
mixed
$defaultOption
$editable
protected
mixed
$editable
$formName
protected
mixed
$formName
$height
protected
mixed
$height
$id
protected
mixed
$id
$idSearch
protected
mixed
$idSearch
$idTextSearch
protected
mixed
$idTextSearch
$initialItems
protected
mixed
$initialItems
$items
protected
mixed
$items
$key
protected
mixed
$key
$label
protected
mixed
$label
$mask
protected
mixed
$mask
$maxSize
protected
mixed
$maxSize
$minLength
protected
mixed
$minLength
$model
protected
mixed
$model
$name
protected
mixed
$name
$operator
protected
mixed
$operator
$orderColumn
protected
mixed
$orderColumn
$properties
protected
mixed
$properties
$seed
protected
mixed
$seed
$separator
protected
mixed
$separator
$service
protected
mixed
$service
$size
protected
mixed
$size
$tag
protected
mixed
$tag
$value
protected
mixed
$value
$valueCallback
protected
mixed
$valueCallback
$withTitles
protected
mixed
$withTitles
$searchable
private
mixed
$searchable
$validations
private
mixed
$validations
Methods
__call()
Redirects function call
public
__call( $method, $param) : mixed
Parameters
__clone()
Clone the object
public
__clone() : mixed
__construct()
Class Constructor
public
__construct( $name, mixed $database, mixed $model, mixed $key, mixed $value[, mixed $orderColumn = NULL ][, TCriteria $criteria = NULL ]) : mixed
Parameters
- $name :
-
Widget's name
- $database : mixed
-
database name
- $model : mixed
-
model class name
- $key : mixed
-
table field to be used as key in the combo
- $value : mixed
-
table field to be listed in the combo
- $orderColumn : mixed = NULL
- $criteria : TCriteria = NULL
-
criteria (TCriteria object) to filter the model (optional)
__get()
Returns a property value
public
__get( $name) : mixed
Parameters
__isset()
Returns if the property is set
public
__isset( $name) : mixed
Parameters
__set()
Intercepts whenever someones assign a new property's value
public
__set( $name, $value) : mixed
Parameters
__toString()
Converts the object into a string
public
__toString() : mixed
addItems()
Add items to the select
public
addItems( $items) : mixed
Parameters
addValidation()
Add a field validator
public
addValidation( $label, $validator[, $parameters = NULL ]) : mixed
Parameters
clearField()
Clear the field
public
static clearField( $form_name, $field) : mixed
Parameters
disableClear()
Disable clear
public
disableClear() : mixed
disableField()
Disable the field
public
static disableField( $form_name, $field) : mixed
Parameters
disableIdSearch()
Disable search by id
public
disableIdSearch() : mixed
disableMultiple()
Disable multiple selection
public
disableMultiple() : mixed
disableSearch()
Disable search
public
disableSearch() : mixed
disableTitles()
Disable option titles
public
disableTitles() : mixed
enableField()
Enable the field
public
static enableField( $form_name, $field) : mixed
Parameters
enableIdTextualSearch()
Enable Id textual search
public
enableIdTextualSearch() : mixed
enableSearch()
Enable search
public
enableSearch() : mixed
getContents()
Returns the element content as a string
public
getContents() : mixed
getEditable()
Returns if the field is editable
public
getEditable() : A
Return values
A —boolean
getFormName()
Return the name of the form to wich the field is attached
public
getFormName() : mixed
getId()
Returns the field's id
public
getId() : mixed
getItems()
Return the items
public
getItems() : mixed
getLabel()
Returns the field's label
public
getLabel() : mixed
getName()
Returns the field's name
public
getName() : mixed
getPostData()
Return the post data
public
getPostData() : mixed
getPropertiesAsString()
Get properties as string
public
getPropertiesAsString([mixed $filter = null ]) : mixed
Parameters
- $filter : mixed = null
getProperty()
Return a field property
public
getProperty( $name) : mixed
Parameters
getSize()
Returns the size
public
getSize() : mixed
getValidations()
Returns field validations
public
getValidations() : mixed
getValue()
Returns the field's value
public
getValue() : mixed
isRequired()
Returns if the field is required
public
isRequired() : mixed
reload()
Reload combobox items after it is already shown
public
static reload( $formname, $name, $items[, $startEmpty = FALSE ]) : mixed
Parameters
setChangeAction()
Define the action to be executed when the user changes the combo
public
setChangeAction( $action) : mixed
Parameters
setChangeFunction()
Set change function
public
setChangeFunction(mixed $function) : mixed
Parameters
- $function : mixed
setDefaultOption()
public
setDefaultOption(mixed $option) : mixed
Parameters
- $option : mixed
setEditable()
Define if the field is editable
public
setEditable( $editable) : mixed
Parameters
setFilterColumns()
Define the filter columns
public
setFilterColumns( $columns) : mixed
Parameters
setFormName()
Define the name of the form to wich the field is attached
public
setFormName( $name) : mixed
Parameters
Tags
setId()
Define the field's id
public
setId( $id) : mixed
Parameters
setLabel()
Define the field's label
public
setLabel( $label) : mixed
Parameters
setMask()
Define the display mask
public
setMask( $mask) : mixed
Parameters
setMaxSize()
Define the maximum number of items that can be selected
public
setMaxSize(mixed $maxsize) : mixed
Parameters
- $maxsize : mixed
setMinLength()
Define the minimum length for search
public
setMinLength(mixed $length) : mixed
Parameters
- $length : mixed
setName()
Define the field's name
public
setName( $name) : mixed
Parameters
setOperator()
Define the search operator
public
setOperator( $operator) : mixed
Parameters
setProperty()
Define a field property
public
setProperty( $name, $value[, mixed $replace = TRUE ]) : mixed
Parameters
setService()
Define the search service
public
setService( $service) : mixed
Parameters
setSize()
Define the Field's width
public
setSize( $width[, mixed $height = NULL ]) : mixed
Parameters
setTagName()
Change input tag name
public
setTagName(mixed $name) : mixed
Parameters
- $name : mixed
setTip()
Define the field's tooltip
public
setTip(mixed $tip) : mixed
Parameters
- $tip : mixed
setValue()
Define the field's value
public
setValue( $value) : mixed
Parameters
setValueCallback()
Set callback for setValue method
public
setValueCallback(mixed $callback) : mixed
Parameters
- $callback : mixed
setValueSeparator()
Define the field's separator
public
setValueSeparator( $sep) : mixed
Parameters
show()
Show the component
public
show() : mixed
validate()
Validate a field
public
validate() : mixed
renderItems()
Render items
protected
renderItems([mixed $with_titles = true ]) : mixed
Parameters
- $with_titles : mixed = true