API Documentation

Zend/Validate/NotEmpty.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_Validate  
Version
$Id: NotEmpty.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Validate_NotEmpty

Package: Zend\Validate

Parent(s)
\Zend_Validate_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  BOOLEAN = 1
Constant  INTEGER = 2
Constant  FLOAT = 4
Constant  STRING = 8
Constant  ZERO = 16
Constant  EMPTY_ARRAY = 32
Constant  NULL = 64
Constant  PHP = 127
Constant  SPACE = 128
Constant  OBJECT = 256
Constant  OBJECT_STRING = 512
Constant  OBJECT_COUNT = 1024
Constant  ALL = 2047
Constant  INVALID = 'notEmptyInvalid'
Constant  IS_EMPTY = 'isEmpty'

Properties

Propertyprotected  $_constants= 'array( self::BOOLEAN => 'boolean''
Default valuearray( self::BOOLEAN => 'boolean'Details
Type
Propertyprotectedarray  $_messageTemplates= 'array( self::IS_EMPTY => "Value is required and can't be empty"'

Default valuearray( self::IS_EMPTY => "Value is required and can't be empty"Details
Type
array
Propertyprotectedinteger  $_type= '493'

Internal type to detect

Default value493Details
Type
integer

Methods

methodpublic__construct( string|array|\Zend_Config $options = null ) : void

Constructor

Parameters
Name Type Description
$options string|array|\Zend_Config

OPTIONAL

methodpublicgetType( ) : array

Returns the set types

Returns
Type Description
array
methodpublicisValid( string $value ) : boolean

Defined by Zend_Validate_Interface

Returns true if and only if $value is not an empty value.

Parameters
Name Type Description
$value string
Returns
Type Description
boolean
methodpublicsetType( integer|array $type = null ) : \Zend_Validate_NotEmpty

Set the types

Parameters
Name Type Description
$type integer|array
Returns
Type Description
\Zend_Validate_NotEmpty
Throws
Exception Description
\Zend_Validate_Exception
Documentation was generated by DocBlox 0.15.1.