Dojo/Form/Element/ValidationTextBox.php
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-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
Returns
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
Methods
_castBoolToString(mixed $item, string $key) : void
Cast a boolean value to a string
Parameters
Name | Type | Description |
---|---|---|
$item | mixed | |
$key | string |
clearConstraints() : \Zend_Dojo_Form_Element_ValidationTextBox
Clear all constraints
Returns
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |
getConstraint(string $key) : mixed
Get an individual constraint
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
mixed |
hasConstraint(string $key) : bool
Is the given constraint set?
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
bool |
removeConstraint(string $key) : \Zend_Dojo_Form_Element_ValidationTextBox
Remove a single constraint
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |
setConstraint(string $key, mixed $value) : \Zend_Dojo_Form_Element_ValidationTextBox
Set an individual constraint
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |
setConstraints(array $constraints) : \Zend_Dojo_Form_Element_ValidationTextBox
Set validation constraints
Refer to Dojo dijit.form.ValidationTextBox documentation for valid
structure.
ParametersName | Type | Description |
---|---|---|
$constraints | array |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |
setInvalidMessage(string $message) : \Zend_Dojo_Form_Element_ValidationTextBox
Set invalidMessage
Parameters
Returns
Name | Type | Description |
---|---|---|
$message | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |
setPromptMessage(string $message) : \Zend_Dojo_Form_Element_ValidationTextBox
Set promptMessage
Parameters
Returns
Name | Type | Description |
---|---|---|
$message | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |
setRegExp(string $regexp) : \Zend_Dojo_Form_Element_ValidationTextBox
Set regExp
Parameters
Returns
Name | Type | Description |
---|---|---|
$regexp | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |