|
Moodle
2.2.1
http://www.collinsharper.com
|


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 | |
Definition at line 33 of file NotEmpty.php.
| __construct | ( | $ | options = null | ) |
Constructor
| string | array | Zend_Config | $options | OPTIONAL |
Definition at line 82 of file NotEmpty.php.

| getType | ( | ) |
Returns the set types
Definition at line 106 of file NotEmpty.php.

| isValid | ( | $ | value | ) |
Defined by Zend_Validate_Interface
Returns true if and only if $value is not an empty value.
| string | $value |
Implements Zend_Validate_Interface.
Definition at line 152 of file NotEmpty.php.

| setType | ( | $ | type = null | ) |
Set the types
| integer | array | $type |
| Zend_Validate_Exception |
Definition at line 118 of file NotEmpty.php.

$_constants [protected] |
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] |
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.