Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_NotEmpty Class Reference

Inheritance diagram for Zend_Validate_NotEmpty:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 isValid ($value)

Data Fields

const INVALID = 'notEmptyInvalid'
const IS_EMPTY = 'isEmpty'

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 33 of file NotEmpty.php.


Member Function Documentation

isValid ( value )

Defined by Zend_Validate_Interface

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

Parameters:
string$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 54 of file NotEmpty.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::IS_EMPTY => "Value is required and can't be empty",
        self::INVALID  => "Invalid type given, value should be float, string, array, boolean or integer",
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 41 of file NotEmpty.php.


The documentation for this class was generated from the following file: