Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_NotEmpty Class Reference
Inheritance diagram for Zend_Validate_NotEmpty:
Collaboration diagram for Zend_Validate_NotEmpty:

Public Member Functions

 __construct ($options=null)
 getType ()
 setType ($type=null)
 isValid ($value)

Data Fields

const BOOLEAN = 1
const INTEGER = 2
const FLOAT = 4
const STRING = 8
const ZERO = 16
const EMPTY_ARRAY = 32
const NULL = 64
const PHP = 127
const SPACE = 128
const ALL = 255
const INVALID = 'notEmptyInvalid'
const IS_EMPTY = 'isEmpty'

Protected Attributes

 $_constants
 $_messageTemplates
 $_type = 237

Detailed Description

Definition at line 33 of file NotEmpty.php.


Constructor & Destructor Documentation

__construct ( options = null)

Constructor

Parameters:
string | array | Zend_Config$optionsOPTIONAL

Definition at line 82 of file NotEmpty.php.

Here is the call graph for this function:


Member Function Documentation

getType ( )

Returns the set types

Returns:
array

Definition at line 106 of file NotEmpty.php.

Here is the caller graph for this function:

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 152 of file NotEmpty.php.

Here is the call graph for this function:

setType ( type = null)

Set the types

Parameters:
integer | array$type
Exceptions:
Zend_Validate_Exception
Returns:
Zend_Validate_NotEmpty

Definition at line 118 of file NotEmpty.php.

Here is the caller graph for this function:


Field Documentation

$_constants [protected]
Initial value:
 array(
        self::BOOLEAN      => 'boolean',
        self::INTEGER      => 'integer',
        self::FLOAT        => 'float',
        self::STRING       => 'string',
        self::ZERO         => 'zero',
        self::EMPTY_ARRAY  => 'array',
        self::NULL         => 'null',
        self::PHP          => 'php',
        self::SPACE        => 'space',
        self::ALL          => 'all'
    )

Definition at line 49 of file NotEmpty.php.

$_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 65 of file NotEmpty.php.

$_type = 237 [protected]

Definition at line 75 of file NotEmpty.php.

const ALL = 255

Definition at line 44 of file NotEmpty.php.

const BOOLEAN = 1

Definition at line 35 of file NotEmpty.php.

const EMPTY_ARRAY = 32

Definition at line 40 of file NotEmpty.php.

const FLOAT = 4

Definition at line 37 of file NotEmpty.php.

const INTEGER = 2

Definition at line 36 of file NotEmpty.php.

const INVALID = 'notEmptyInvalid'

Definition at line 46 of file NotEmpty.php.

const IS_EMPTY = 'isEmpty'

Definition at line 47 of file NotEmpty.php.

const NULL = 64

Definition at line 41 of file NotEmpty.php.

const PHP = 127

Definition at line 42 of file NotEmpty.php.

const SPACE = 128

Definition at line 43 of file NotEmpty.php.

const STRING = 8

Definition at line 38 of file NotEmpty.php.

const ZERO = 16

Definition at line 39 of file NotEmpty.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations