Dojo/Form/Element/HorizontalSlider.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Dojo  
Subpackage
Form_Element  

\Zend_Dojo_Form_Element_HorizontalSlider

Package: Zend\Dojo\Form\Element
HorizontalSlider dijit
Parent(s)
\Zend_Dojo_Form_Element_Slider < \Zend_Dojo_Form_Element_Dijit < \Zend_Form_Element
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\global\Zend_Dojo_Form_Element_Slider  
Version
$Id: HorizontalSlider.php 24593 2012-01-05 20:35:02Z matthew $  

Constants

Properties

>VPropertyprotectedbool $_autoInsertNotEmptyValidator = true
>VPropertyprotectedstring $_errorMessageSeparator = '; '
inherited
Separator to use when concatenating aggregate error messages (for elements having array values)
Inherited from: \Zend_Form_Element::$$_errorMessageSeparator\Zend_Dojo_Form_Element_Dijit::$$_errorMessageSeparator\Zend_Dojo_Form_Element_Slider::$$_errorMessageSeparator
>VPropertyprotectedarray $_errors = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Form_Element::$$_errors  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_errors  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_errors  
>VPropertyprotectedarray $_filters = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Form_Element::$$_filters  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_filters  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_filters  
>VPropertyprotectedbool $_ignore = false
inherited
Ignore flag (used when retrieving values at form level)
Inherited from: \Zend_Form_Element::$$_ignore\Zend_Dojo_Form_Element_Dijit::$$_ignore\Zend_Dojo_Form_Element_Slider::$$_ignore
Default valuefalseDetails
Type
bool
Inherited_from
\Zend_Form_Element::$$_ignore  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_ignore  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_ignore  
>VPropertyprotectedbool $_isArray = false
Default valuefalseDetails
Type
bool
Inherited_from
\Zend_Form_Element::$$_isArray  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_isArray  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_isArray  
>VPropertyprotectedbool $_isError = false
Default valuefalseDetails
Type
bool
Inherited_from
\Zend_Form_Element::$$_isError  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_isError  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_isError  
>VPropertyprotectedbool $_isErrorForced = false
>VPropertyprotectedbool $_isPartialRendering = false

This is to allow execution of logic inside the render() methods of child elements during the magic call while skipping the parent render() method.

Default valuefalseDetails
Type
bool
Inherited_from
\Zend_Form_Element::$$_isPartialRendering  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_isPartialRendering  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_isPartialRendering  
>VPropertyprotectedarray $_loaders = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Form_Element::$$_loaders  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_loaders  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_loaders  
>VPropertyprotectedarray $_messages = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Form_Element::$$_messages  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_messages  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_messages  
>VPropertyprotectedarray $_validatorRules = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Form_Element::$$_validatorRules  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_validatorRules  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_validatorRules  
>VPropertyprotectedarray $_validators = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Form_Element::$$_validators  
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$_validators  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$_validators  
>VPropertypublicarray $dijitParams = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Dojo_Form_Element_Dijit::$$dijitParams  
Inherited_from
\Zend_Dojo_Form_Element_Slider::$$dijitParams  
>VPropertypublicstring $helper = 'HorizontalSlider'
Use HorizontalSlider dijit view helper
Default value'HorizontalSlider'Details
Type
string

Methods

methodpublic__call(string $method, array $args) : string
inherited

Overloading: allow rendering specific decorators

Inherited from: \Zend_Form_Element::__call()\Zend_Dojo_Form_Element_Dijit::__call()\Zend_Dojo_Form_Element_Slider::__call()

Call renderDecoratorName() to render a specific decorator.

Parameters
NameTypeDescription
$methodstring
$argsarray
Returns
TypeDescription
string
Throws
ExceptionDescription
\Zend_Form_Exceptionfor invalid decorator or invalid method call
methodpublic__construct(mixed $spec, mixed $options = null) : void

$spec may be: - string: name of element - array: options with which to configure element - Zend_Config: Zend_Config with options for configuring element

Parameters
NameTypeDescription
$specmixed
$optionsmixed
Throws
ExceptionDescription
\Zend_Form_Exceptionif no element name after initialization
methodpublic__get(string $key) : mixed

Prevents access to properties beginning with '_'.

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
mixed
methodpublic__set(string $key, mixed $value) : \voide
Parameters
NameTypeDescription
$keystring
$valuemixed
Returns
TypeDescription
\voide
methodpublic__toString() : string

Proxies to render().

Returns
TypeDescription
string
methodprotected_filterValue(string $value, string $key) : void
Parameters
NameTypeDescription
$valuestring
$keystring
methodprotected_getDecorator(string $name, null | array $options) : \Zend_Form_Decorator_Interface
inherited

Instantiate a decorator based on class name or class name fragment

Inherited from: \Zend_Form_Element::_getDecorator()\Zend_Dojo_Form_Element_Dijit::_getDecorator()\Zend_Dojo_Form_Element_Slider::_getDecorator()
Parameters
NameTypeDescription
$namestring
$optionsnull | array
Returns
TypeDescription
\Zend_Form_Decorator_Interface
methodprotected_getErrorMessages() : array
inherited

Retrieve error messages and perform translation and value substitution

Inherited from: \Zend_Form_Element::_getErrorMessages()\Zend_Dojo_Form_Element_Dijit::_getErrorMessages()\Zend_Dojo_Form_Element_Slider::_getErrorMessages()
Returns
TypeDescription
array
methodprotected_hasErrorMessages() : bool
Returns
TypeDescription
bool
methodprotected_loadDecorator(array $decorator, mixed $name) : \Zend_Form_Decorator_Interface
Parameters
NameTypeDescription
$decoratorarray

Decorator type and options

$namemixed

Decorator name or alias

Returns
TypeDescription
\Zend_Form_Decorator_Interface
methodprotected_loadFilter(array $filter) : \Zend_Filter_Interface
Parameters
NameTypeDescription
$filterarray
Returns
TypeDescription
\Zend_Filter_Interface
methodprotected_loadValidator(array $validator) : \Zend_Validate_Interface
Parameters
NameTypeDescription
$validatorarray

Validator definition

Returns
TypeDescription
\Zend_Validate_Interface
methodpublicaddDecorator(string | \Zend_Form_Decorator_Interface $decorator, array | \Zend_Config $options = null) : \Zend_Form_Element
Parameters
NameTypeDescription
$decoratorstring | \Zend_Form_Decorator_Interface
$optionsarray | \Zend_Config

Options with which to initialize decorator

Returns
TypeDescription
\Zend_Form_Element
methodpublicaddDecorators(array $decorators) : \Zend_Form_Element
Parameters
NameTypeDescription
$decoratorsarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddError(string $message) : \Zend_Form_Element
inherited

Add an error message and mark element as failed validation

Inherited from: \Zend_Form_Element::addError()\Zend_Dojo_Form_Element_Dijit::addError()\Zend_Dojo_Form_Element_Slider::addError()
Parameters
NameTypeDescription
$messagestring
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddErrorMessage(string $message) : \Zend_Form_Element
inherited

Add a custom error message to return in the event of failed validation

Inherited from: \Zend_Form_Element::addErrorMessage()\Zend_Dojo_Form_Element_Dijit::addErrorMessage()\Zend_Dojo_Form_Element_Slider::addErrorMessage()
Parameters
NameTypeDescription
$messagestring
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddErrorMessages(array $messages) : \Zend_Form_Element
inherited

Add multiple custom error messages to return in the event of failed validation

Inherited from: \Zend_Form_Element::addErrorMessages()\Zend_Dojo_Form_Element_Dijit::addErrorMessages()\Zend_Dojo_Form_Element_Slider::addErrorMessages()
Parameters
NameTypeDescription
$messagesarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddErrors(array $messages) : \Zend_Form_Element
inherited

Add multiple error messages and flag element as failed validation

Inherited from: \Zend_Form_Element::addErrors()\Zend_Dojo_Form_Element_Dijit::addErrors()\Zend_Dojo_Form_Element_Slider::addErrors()
Parameters
NameTypeDescription
$messagesarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddFilter(string | \Zend_Filter_Interface $filter,  $options = array()) : \Zend_Form_Element
Parameters
NameTypeDescription
$filterstring | \Zend_Filter_Interface
$options
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddFilters(array $filters) : \Zend_Form_Element
Parameters
NameTypeDescription
$filtersarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddPrefixPath(string $prefix, string $path, string $type = null) : \Zend_Form_Element

If no $type specified, assumes it is a base path for both filters and validators, and sets each according to the following rules: - decorators: $prefix = $prefix . '_Decorator' - filters: $prefix = $prefix . '_Filter' - validators: $prefix = $prefix . '_Validate'

Otherwise, the path prefix is set on the appropriate plugin loader.

Parameters
NameTypeDescription
$prefixstring
$pathstring
$typestring
Returns
TypeDescription
\Zend_Form_Element
Throws
ExceptionDescription
\Zend_Form_Exceptionfor invalid type
methodpublicaddPrefixPaths(array $spec) : \Zend_Form_Element
Parameters
NameTypeDescription
$specarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicaddValidator(string | \Zend_Validate_Interface $validator, bool $breakChainOnFailure = false, array $options = array()) : \Zend_Form_Element

Note: will overwrite existing validators if they are of the same class.

Parameters
NameTypeDescription
$validatorstring | \Zend_Validate_Interface
$breakChainOnFailurebool
$optionsarray
Returns
TypeDescription
\Zend_Form_Element
Throws
ExceptionDescription
\Zend_Form_Exceptionif invalid validator type
methodpublicaddValidators(array $validators) : \Zend_Form_Element
Parameters
NameTypeDescription
$validatorsarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicautoInsertNotEmptyValidator() : bool
inherited

Get flag indicating whether a NotEmpty validator should be inserted when element is required

Inherited from: \Zend_Form_Element::autoInsertNotEmptyValidator()\Zend_Dojo_Form_Element_Dijit::autoInsertNotEmptyValidator()\Zend_Dojo_Form_Element_Slider::autoInsertNotEmptyValidator()
Returns
TypeDescription
bool
methodpublicfilterName(string $value, bool $allowBrackets = false) : string
Parameters
NameTypeDescription
$valuestring
$allowBracketsbool
Returns
TypeDescription
string
methodpublicgetAllowEmpty() : bool
Returns
TypeDescription
bool
methodpublicgetAttrib(string $name) : string
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
string
methodpublicgetAttribs() : array
Returns
TypeDescription
array
methodpublicgetBelongsTo() : string
Returns
TypeDescription
string
methodpublicgetBottomDecoration() : array

Get bottom decoration data

Returns
TypeDescription
array
methodpublicgetClickSelect() : bool
inherited

Retrieve clickSelect flag

Inherited from: \Zend_Dojo_Form_Element_Slider::getClickSelect()
Returns
TypeDescription
bool
methodpublicgetDecorator(string $name) : false | \Zend_Form_Decorator_Abstract
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
false | \Zend_Form_Decorator_Abstract
methodpublicgetDecorators() : array
Returns
TypeDescription
array
methodpublicgetDescription() : string
Returns
TypeDescription
string
methodpublicgetDijitParam(string $key) : mixed
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
mixed
methodpublicgetDijitParams() : array
Returns
TypeDescription
array
methodpublicgetDiscreteValues() : int | null
inherited

Retrieve discreteValues

Inherited from: \Zend_Dojo_Form_Element_Slider::getDiscreteValues()
Returns
TypeDescription
int | null
methodpublicgetErrorMessageSeparator() : string
Returns
TypeDescription
string
methodpublicgetErrorMessages() : array
Returns
TypeDescription
array
methodpublicgetErrors() : array
Returns
TypeDescription
array
methodpublicgetFilter(string $name) : \Zend_Filter_Interface
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Filter_Interface
methodpublicgetFilters() : array
Returns
TypeDescription
array
methodpublicgetFullyQualifiedName() : string

Places name as subitem of array and/or appends brackets.

Returns
TypeDescription
string
methodpublicgetId() : string
Returns
TypeDescription
string
methodpublicgetIgnore() : bool
inherited

Get ignore flag (used when retrieving values at form level)

Inherited from: \Zend_Form_Element::getIgnore()\Zend_Dojo_Form_Element_Dijit::getIgnore()\Zend_Dojo_Form_Element_Slider::getIgnore()
Returns
TypeDescription
bool
methodpublicgetIntermediateChanges() : bool
inherited

Retrieve intermediateChanges flag

Inherited from: \Zend_Dojo_Form_Element_Slider::getIntermediateChanges()
Returns
TypeDescription
bool
methodpublicgetLabel() : string
Returns
TypeDescription
string
methodpublicgetMaximum() : int | null
inherited

Retrieve maximum

Inherited from: \Zend_Dojo_Form_Element_Slider::getMaximum()
Returns
TypeDescription
int | null
methodpublicgetMessages() : array

The array keys are validation failure message identifiers, and the array values are the corresponding human-readable message strings.

If isValid() was never called or if the most recent isValid() call returned true, then this method returns an empty array.

Returns
TypeDescription
array
methodpublicgetMinimum() : int | null
inherited

Retrieve minimum

Inherited from: \Zend_Dojo_Form_Element_Slider::getMinimum()
Returns
TypeDescription
int | null
methodpublicgetName() : string
Returns
TypeDescription
string
methodpublicgetOrder() : int
Returns
TypeDescription
int
methodpublicgetPageIncrement() : int | null
inherited

Retrieve pageIncrement

Inherited from: \Zend_Dojo_Form_Element_Slider::getPageIncrement()
Returns
TypeDescription
int | null
methodpublicgetPluginLoader(string $type) : \Zend_Loader_PluginLoader

Instantiates with default rules if none available for that type. Use 'decorator', 'filter', or 'validate' for $type.

Parameters
NameTypeDescription
$typestring
Returns
TypeDescription
\Zend_Loader_PluginLoader
Throws
ExceptionDescription
\Zend_Loader_Exceptionon invalid type.
methodpublicgetShowButtons() : bool
inherited

Retrieve showButtons flag

Inherited from: \Zend_Dojo_Form_Element_Slider::getShowButtons()
Returns
TypeDescription
bool
methodpublicgetTopDecoration() : array

Get top decoration data

Returns
TypeDescription
array
methodpublicgetTranslator() : \Zend_Translate_Adapter | null
Returns
TypeDescription
\Zend_Translate_Adapter | null
methodpublicgetType() : string
Returns
TypeDescription
string
methodpublicgetUnfilteredValue() : mixed
Returns
TypeDescription
mixed
methodpublicgetValidator(string $name) : \Zend_Validate_Interface | false
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Validate_Interface | falseFalse if not found, validator otherwise
methodpublicgetValidators() : array
Returns
TypeDescription
array
methodpublicgetValue() : mixed
Returns
TypeDescription
mixed
methodpublicgetView() : null | \Zend_View_Interface

Retrieves from ViewRenderer if none previously set.

Returns
TypeDescription
null | \Zend_View_Interface
methodpublichasDijitParam(string $key) : bool
inherited

Does the given dijit parameter exist?

Inherited from: \Zend_Dojo_Form_Element_Dijit::hasDijitParam()\Zend_Dojo_Form_Element_Slider::hasDijitParam()
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
bool
methodpublichasErrors() : bool
Returns
TypeDescription
bool
methodpublichasTranslator() : bool
Returns
TypeDescription
bool
methodpublicinit() : void
inherited

Initialize object; used by extending classes

Inherited from: \Zend_Form_Element::init()\Zend_Dojo_Form_Element_Dijit::init()\Zend_Dojo_Form_Element_Slider::init()
methodpublicisArray() : bool
Returns
TypeDescription
bool
methodpublicisRequired() : bool
Returns
TypeDescription
bool
methodpublicisValid(mixed $value, mixed $context = null) : boolean

If a translation adapter is registered, any error messages will be translated according to the current locale, using the given error code; if no matching translation is found, the original message will be utilized.

Note: The filtered value is validated.

Parameters
NameTypeDescription
$valuemixed
$contextmixed
Returns
TypeDescription
boolean
Throws
ExceptionDescription
\Zend_Validate_ExceptionIf validation of $value is impossible
methodpublicloadDefaultDecorators() : void
methodpublicloadDefaultDecoratorsIsDisabled() : bool
Returns
TypeDescription
bool
methodpublicmarkAsError() : \Zend_Form_Element
Returns
TypeDescription
\Zend_Form_Element
methodpublicremoveDecorator(string $name) : \Zend_Form_Element
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Form_Element
methodpublicremoveDijitParam(string $key) : \Zend_Dojo_Form_Element_Dijit
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
\Zend_Dojo_Form_Element_Dijit
methodpublicremoveFilter(string $name) : \Zend_Form_Element
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Form_Element
methodpublicremoveValidator(string $name) : bool
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
bool
methodpublicrender(\Zend_View_Interface $view = null) : string
Parameters
NameTypeDescription
$view\Zend_View_Interface
Returns
TypeDescription
string
methodpublicresolveElementId(\Zend_Form_Decorator_Interface $decorator) : string

Passed to the HtmlTag decorator as a callback in order to provide an ID.

Parameters
NameTypeDescription
$decorator\Zend_Form_Decorator_Interface
Returns
TypeDescription
string
methodpublicsetAllowEmpty(bool $flag) : \Zend_Form_Element

When the allow empty flag is enabled and the required flag is false, the element will validate with empty values.

Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetAttrib(string $name, mixed $value) : \Zend_Form_Element
Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
\Zend_Form_Element
Throws
ExceptionDescription
\Zend_Form_Exceptionfor invalid $name values
methodpublicsetAttribs(array $attribs) : \Zend_Form_Element
Parameters
NameTypeDescription
$attribsarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetAutoInsertNotEmptyValidator(bool $flag) : \Zend_Form_Element
Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetBelongsTo(string $array) : \Zend_Form_Element
Parameters
NameTypeDescription
$arraystring
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetBottomDecorationAttribs(array $attribs) : \Zend_Dojo_Form_Element_HorizontalSlider

Set attribs to use with bottom decoration

Parameters
NameTypeDescription
$attribsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetBottomDecorationContainer(mixed $container) : \Zend_Dojo_Form_Element_HorizontalSlider

Set container to use with bottom decoration

Parameters
NameTypeDescription
$containermixed
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetBottomDecorationDijit(mixed $dijit) : \Zend_Dojo_Form_Element_HorizontalSlider

Set dijit to use with bottom decoration

Parameters
NameTypeDescription
$dijitmixed
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetBottomDecorationLabels(array $labels) : \Zend_Dojo_Form_Element_HorizontalSlider

Set labels to use with bottom decoration

Parameters
NameTypeDescription
$labelsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetBottomDecorationParams(array $params) : \Zend_Dojo_Form_Element_HorizontalSlider

Set params to use with bottom decoration

Parameters
NameTypeDescription
$paramsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetClickSelect( $flag) : \Zend_Dojo_Form_Element_TextBox
inherited

Set clickSelect flag

Inherited from: \Zend_Dojo_Form_Element_Slider::setClickSelect()
Parameters
NameTypeDescription
$flag
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetConfig(\Zend_Config $config) : \Zend_Form_Element
Parameters
NameTypeDescription
$config\Zend_Config
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetDecorators(array $decorators) : \Zend_Form_Element
Parameters
NameTypeDescription
$decoratorsarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetDescription(string $description) : \Zend_Form_Element
Parameters
NameTypeDescription
$descriptionstring
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetDijitParam(string $key, mixed $value) : \Zend_Dojo_Form_Element_Dijit
Parameters
NameTypeDescription
$keystring
$valuemixed
Returns
TypeDescription
\Zend_Dojo_Form_Element_Dijit
methodpublicsetDijitParams(array $params) : \Zend_Dojo_Form_Element_Dijit
Parameters
NameTypeDescription
$paramsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_Dijit
methodpublicsetDisableLoadDefaultDecorators(bool $flag) : \Zend_Form_Element
Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetDisableTranslator(bool $flag) : \Zend_Form_Element
Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetDiscreteValues(int $value) : \Zend_Dojo_Form_Element_TextBox
inherited

Set discreteValues

Inherited from: \Zend_Dojo_Form_Element_Slider::setDiscreteValues()
Parameters
NameTypeDescription
$valueint
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetErrorMessageSeparator(string $separator) : \Zend_Form_Element
Parameters
NameTypeDescription
$separatorstring
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetErrorMessages(array $messages) : \Zend_Form_Element
inherited

Same as addErrorMessages(), but clears custom error message stack first

Inherited from: \Zend_Form_Element::setErrorMessages()\Zend_Dojo_Form_Element_Dijit::setErrorMessages()\Zend_Dojo_Form_Element_Slider::setErrorMessages()
Parameters
NameTypeDescription
$messagesarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetErrors(array $messages) : \Zend_Form_Element
inherited

Overwrite any previously set error messages and flag as failed validation

Inherited from: \Zend_Form_Element::setErrors()\Zend_Dojo_Form_Element_Dijit::setErrors()\Zend_Dojo_Form_Element_Slider::setErrors()
Parameters
NameTypeDescription
$messagesarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetFilters(array $filters) : \Zend_Form_Element
inherited

Add filters to element, overwriting any already existing

Inherited from: \Zend_Form_Element::setFilters()\Zend_Dojo_Form_Element_Dijit::setFilters()\Zend_Dojo_Form_Element_Slider::setFilters()
Parameters
NameTypeDescription
$filtersarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetIgnore(bool $flag) : \Zend_Form_Element
inherited

Set ignore flag (used when retrieving values at form level)

Inherited from: \Zend_Form_Element::setIgnore()\Zend_Dojo_Form_Element_Dijit::setIgnore()\Zend_Dojo_Form_Element_Slider::setIgnore()
Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetIntermediateChanges( $flag) : \Zend_Dojo_Form_Element_TextBox
inherited

Set intermediateChanges flag

Inherited from: \Zend_Dojo_Form_Element_Slider::setIntermediateChanges()
Parameters
NameTypeDescription
$flag
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetIsArray(bool $flag) : \Zend_Form_Element
Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetLabel(string $label) : \Zend_Form_Element
Parameters
NameTypeDescription
$labelstring
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetMaximum(int $value) : \Zend_Dojo_Form_Element_TextBox
inherited

Set maximum

Inherited from: \Zend_Dojo_Form_Element_Slider::setMaximum()
Parameters
NameTypeDescription
$valueint
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetMinimum(int $value) : \Zend_Dojo_Form_Element_TextBox
inherited

Set minimum

Inherited from: \Zend_Dojo_Form_Element_Slider::setMinimum()
Parameters
NameTypeDescription
$valueint
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetName(string $name) : \Zend_Form_Element
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetOptions(array $options) : \Zend_Form_Element
Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetOrder(int $order) : \Zend_Form_Element
Parameters
NameTypeDescription
$orderint
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetPageIncrement(int $value) : \Zend_Dojo_Form_Element_TextBox
inherited

Set pageIncrement

Inherited from: \Zend_Dojo_Form_Element_Slider::setPageIncrement()
Parameters
NameTypeDescription
$valueint
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetPluginLoader(\Zend_Loader_PluginLoader_Interface $loader, string $type) : \Zend_Form_Element
Parameters
NameTypeDescription
$loader\Zend_Loader_PluginLoader_Interface
$typestring

'decorator', 'filter', or 'validate'

Returns
TypeDescription
\Zend_Form_Element
Throws
ExceptionDescription
\Zend_Form_Exceptionon invalid type
methodpublicsetRequired(bool $flag = true) : \Zend_Form_Element
Parameters
NameTypeDescription
$flagbool

Default value is true

Returns
TypeDescription
\Zend_Form_Element
methodpublicsetShowButtons( $flag) : \Zend_Dojo_Form_Element_TextBox
inherited

Set showButtons flag

Inherited from: \Zend_Dojo_Form_Element_Slider::setShowButtons()
Parameters
NameTypeDescription
$flag
Returns
TypeDescription
\Zend_Dojo_Form_Element_TextBox
methodpublicsetTopDecorationAttribs(array $attribs) : \Zend_Dojo_Form_Element_HorizontalSlider

Set attribs to use with top decoration

Parameters
NameTypeDescription
$attribsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetTopDecorationContainer(mixed $container) : \Zend_Dojo_Form_Element_HorizontalSlider

Set container to use with top decoration

Parameters
NameTypeDescription
$containermixed
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetTopDecorationDijit(mixed $dijit) : \Zend_Dojo_Form_Element_HorizontalSlider

Set dijit to use with top decoration

Parameters
NameTypeDescription
$dijitmixed
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetTopDecorationLabels(array $labels) : \Zend_Dojo_Form_Element_HorizontalSlider

Set labels to use with top decoration

Parameters
NameTypeDescription
$labelsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetTopDecorationParams(array $params) : \Zend_Dojo_Form_Element_HorizontalSlider

Set params to use with top decoration

Parameters
NameTypeDescription
$paramsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_HorizontalSlider
methodpublicsetTranslator(\Zend_Translate | null $translator = null) : \Zend_Form_Element
Parameters
NameTypeDescription
$translator\Zend_Translate | null
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetValidators(array $validators) : \Zend_Form_Element
Parameters
NameTypeDescription
$validatorsarray
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetValue(mixed $value) : \Zend_Form_Element
Parameters
NameTypeDescription
$valuemixed
Returns
TypeDescription
\Zend_Form_Element
methodpublicsetView(\Zend_View_Interface $view = null) : \Zend_Dojo_Form_Element_Dijit

Ensures that the view object has the dojo view helper path set.

Parameters
NameTypeDescription
$view\Zend_View_Interface
Returns
TypeDescription
\Zend_Dojo_Form_Element_Dijit
methodpublictranslatorIsDisabled() : bool
Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.0.0a12.