Class Search
Responsibility: init, pre-dispatch and render <input> HTML element with type search. Search field has no default validator, only validator SafeString from parent class Text. It replace characters & " \' < > to & " ' < > Se be careful if you want to search in database with apostrophe quotas, you need to remove SafeString validator or you need to replace back # to ', but every time - you have to use database escaping by \PDO::prepare()!
- MvcCore\Ext\Forms\Field implements MvcCore\Ext\Forms\IField uses MvcCore\Ext\Forms\Field\Props, MvcCore\Ext\Forms\Field\Getters, MvcCore\Ext\Forms\Field\Setters, MvcCore\Ext\Forms\Field\Rendering
-
MvcCore\Ext\Forms\Fields\Text
implements
MvcCore\Ext\Forms\Fields\IVisibleField,
MvcCore\Ext\Forms\Fields\ILabel,
MvcCore\Ext\Forms\Fields\IPattern,
MvcCore\Ext\Forms\Fields\IMinMaxLength,
MvcCore\Ext\Forms\Fields\IDataList
uses
MvcCore\Ext\Forms\Field\Props\VisibleField,
MvcCore\Ext\Forms\Field\Props\Label,
MvcCore\Ext\Forms\Field\Props\Pattern,
MvcCore\Ext\Forms\Field\Props\MinMaxLength,
MvcCore\Ext\Forms\Field\Props\DataList,
MvcCore\Ext\Forms\Field\Props\AutoComplete,
MvcCore\Ext\Forms\Field\Props\PlaceHolder,
MvcCore\Ext\Forms\Field\Props\Size,
MvcCore\Ext\Forms\Field\Props\SpellCheck,
MvcCore\Ext\Forms\Field\Props\InputMode
-
MvcCore\Ext\Forms\Fields\Search
Namespace: MvcCore\Ext\Forms\Fields
Located at ext-form-field-text/src/MvcCore/Ext/Forms/Fields/Search.php
Located at ext-form-field-text/src/MvcCore/Ext/Forms/Fields/Search.php
GetValidatorData(),
PreDispatch(),
RenderControl(),
SetForm()
|
GetList(),
SetList()
|
GetMaxLength(),
GetMinLength(),
SetMaxLength(),
SetMinLength()
|
GetPattern(),
SetPattern()
|
GetPattern(),
SetPattern(),
setFormPattern()
|
GetMaxLength(),
GetMinLength(),
SetMaxLength(),
SetMinLength(),
setFormMinMaxLength()
|
GetList(),
SetList()
|
GetAutoComplete(),
SetAutoComplete()
|
GetPlaceHolder(),
SetPlaceHolder(),
preDispatchPlaceHolder()
|
GetSize(),
SetSize()
|
GetSpellCheck(),
SetSpellCheck()
|
GetInputMode(),
SetInputMode(),
preDispatchInputMode()
|
VERSION
|
AUTOFOCUS_DUPLICITY_EXCEPTION,
AUTOFOCUS_DUPLICITY_QUIETLY_SET_NEW,
AUTOFOCUS_DUPLICITY_UNSET_OLD_SET_NEW,
LABEL_SIDE_LEFT,
LABEL_SIDE_RIGHT
|
protected
string
|
$type
Possible values: |
#
'search'
|
protected
string
|
$placeHolder
Default placeholder text - |
#
'Search'
|
$validators
|
$controlAttrs,
$cssClasses,
$cssSupportingFile,
$declaredProtectedProperties,
$errors,
$form,
$id,
$jsClassName,
$jsSupportingFile,
$name,
$templates,
$title,
$translate,
$translateTitle,
$validators,
$value,
$view,
$viewScript
|
$label,
$labelAttrs,
$labelSide,
$renderMode,
$translateLabel
|
$pattern
|
$maxLength,
$minLength
|
$list
|
$autoComplete
|
$translatePlaceholder
|
$size
|
$spellCheck
|
$fieldTypesAndInputModes,
$inputMode
|