API Documentation

Zend/Dojo/Form/Element/ValidationTextBox.php

Show: inherited
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_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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Used_by
\Zend_Dojo_Form_Element_DateTextBox  
Used_by
\Zend_Dojo_Form_Element_NumberSpinner  
Used_by
\Zend_Dojo_Form_Element_PasswordTextBox  
Used_by
\Zend_Dojo_Form_Element_NumberTextBox  
Uses
\Zend_Dojo_Form_Element_TextBox  
Version
$Id: ValidationTextBox.php 24594 2012-01-05 21:27:01Z matthew $  

Properties

Propertypublicstring  $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
Name Type Description
$item mixed
$key string
methodpublicclearConstraints( ) : \Zend_Dojo_Form_Element_ValidationTextBox

Clear all constraints

methodpublicgetConstraint( string $key ) : mixed

Get an individual constraint

Parameters
Name Type Description
$key string
Returns
Type Description
mixed
methodpublicgetConstraints( ) : array

Get constraints

Returns
Type Description
array
methodpublicgetInvalidMessage( ) : string|null

Retrieve invalidMessage

Returns
Type Description
string|null
methodpublicgetPromptMessage( ) : string|null

Retrieve promptMessage

Returns
Type Description
string|null
methodpublicgetRegExp( ) : string|null

Retrieve regExp

Returns
Type Description
string|null
methodpublichasConstraint( string $key ) : bool

Is the given constraint set?

Parameters
Name Type Description
$key string
Returns
Type Description
bool
methodpublicremoveConstraint( string $key ) : \Zend_Dojo_Form_Element_ValidationTextBox

Remove a single constraint

Parameters
Name Type Description
$key string
Returns
Type Description
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetConstraint( string $key, mixed $value ) : \Zend_Dojo_Form_Element_ValidationTextBox

Set an individual constraint

Parameters
Name Type Description
$key string
$value mixed
Returns
Type Description
\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
Name Type Description
$constraints array
Returns
Type Description
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetInvalidMessage( string $message ) : \Zend_Dojo_Form_Element_ValidationTextBox

Set invalidMessage

Parameters
Name Type Description
$message string
Returns
Type Description
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetPromptMessage( string $message ) : \Zend_Dojo_Form_Element_ValidationTextBox

Set promptMessage

Parameters
Name Type Description
$message string
Returns
Type Description
\Zend_Dojo_Form_Element_ValidationTextBox
methodpublicsetRegExp( string $regexp ) : \Zend_Dojo_Form_Element_ValidationTextBox

Set regExp

Parameters
Name Type Description
$regexp string
Returns
Type Description
\Zend_Dojo_Form_Element_ValidationTextBox
Documentation was generated by DocBlox 0.15.1.