Dojo/Form/Element/ValidationTextBox.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 [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Dojo  
Subpackage
Form_Element  

\Zend_Dojo_Form_Element_ValidationTextBox

Package: Zend_Dojo\Form_Element
ValidationTextBox dijit
Parent(s)
\Zend_Dojo_Form_Element_TextBox < \Zend_Dojo_Form_Element_Dijit < \Zend_Form_Element
Children
\Zend_Dojo_Form_Element_DateTextBox
\Zend_Dojo_Form_Element_NumberSpinner
\Zend_Dojo_Form_Element_PasswordTextBox
\Zend_Dojo_Form_Element_NumberTextBox
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 
Version
$Id$  

Properties

>VPropertypublicstring $helper = 'ValidationTextBox'
Use ValidationTextBox dijit view helper
Default value'ValidationTextBox'Details
Type
string

Methods

methodprotected_castBoolToString(mixed $item, string $key) : void

Cast a boolean value to a string

Parameters
NameTypeDescription
$itemmixed
$keystring
methodpublicclearConstraints() : \Zend_Dojo_Form_Element_ValidationTextBox

Clear all constraints

methodpublicgetConstraint(string $key) : mixed

Get an individual constraint

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
mixed
methodpublicgetConstraints() : array

Get constraints

Returns
TypeDescription
array
methodpublicgetInvalidMessage() : string | null

Retrieve invalidMessage

Returns
TypeDescription
string | null
methodpublicgetPromptMessage() : string | null

Retrieve promptMessage

Returns
TypeDescription
string | null
methodpublicgetRegExp() : string | null

Retrieve regExp

Returns
TypeDescription
string | null
methodpublichasConstraint(string $key) : bool

Is the given constraint set?

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
bool
methodpublicremoveConstraint(string $key) : \Zend_Dojo_Form_Element_ValidationTextBox

Remove a single constraint

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetConstraint(string $key, mixed $value) : \Zend_Dojo_Form_Element_ValidationTextBox

Set an individual constraint

Parameters
NameTypeDescription
$keystring
$valuemixed
Returns
TypeDescription
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetConstraints(array $constraints) : \Zend_Dojo_Form_Element_ValidationTextBox

Set validation constraints

Refer to Dojo dijit.form.ValidationTextBox documentation for valid structure.
Parameters
NameTypeDescription
$constraintsarray
Returns
TypeDescription
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetInvalidMessage(string $message) : \Zend_Dojo_Form_Element_ValidationTextBox

Set invalidMessage

Parameters
NameTypeDescription
$messagestring
Returns
TypeDescription
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetPromptMessage(string $message) : \Zend_Dojo_Form_Element_ValidationTextBox

Set promptMessage

Parameters
NameTypeDescription
$messagestring
Returns
TypeDescription
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetRegExp(string $regexp) : \Zend_Dojo_Form_Element_ValidationTextBox

Set regExp

Parameters
NameTypeDescription
$regexpstring
Returns
TypeDescription
\Zend_Dojo_Form_Element_ValidationTextBox
Documentation was generated by phpDocumentor 2.2.0 .