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.
ValidationTextBox dijit

_castBoolToString(
mixed $item, string $key
)
:
void
Cast a boolean value to a string
Name | Type | Description |
---|---|---|
$item | mixed | |
$key | string |

clearConstraints(
)
:
\Zend_Dojo_Form_Element_ValidationTextBox
Clear all constraints
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |

getConstraint(
string $key
)
:
mixed
Get an individual constraint
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
mixed |

hasConstraint(
string $key
)
:
bool
Is the given constraint set?
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
bool |

removeConstraint(
string $key
)
:
\Zend_Dojo_Form_Element_ValidationTextBox
Remove a single constraint
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
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.
Name | Type | Description |
---|---|---|
$constraints | array |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |

setInvalidMessage(
string $message
)
:
\Zend_Dojo_Form_Element_ValidationTextBox
Set invalidMessage
Name | Type | Description |
---|---|---|
$message | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |

setPromptMessage(
string $message
)
:
\Zend_Dojo_Form_Element_ValidationTextBox
Set promptMessage
Name | Type | Description |
---|---|---|
$message | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |

setRegExp(
string $regexp
)
:
\Zend_Dojo_Form_Element_ValidationTextBox
Set regExp
Name | Type | Description |
---|---|---|
$regexp | string |
Type | Description |
---|---|
\Zend_Dojo_Form_Element_ValidationTextBox |