Class Zend_Validate_NotEmpty

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/NotEmpty.php (line 33)

Zend_Validate_Abstract
   |
   --Zend_Validate_NotEmpty
Class Constant Summary
 ALL = 255
 BOOLEAN = 1
 FLOAT = 4
 INTEGER = 2
 INVALID = 'notEmptyInvalid'
 IS_EMPTY = 'isEmpty'
 NULL = 64
 PHP = 127
 SPACE = 128
 STRING = 8
 ZERO = 16
Variable Summary
 mixed $_constants
 integer $_type
Method Summary
 array getType ()
 boolean isValid (string $value)
 Zend_Validate_NotEmpty setType ([integer|array $type = null])
 Zend_Validate_NotEmpty __construct ([string|array|Zend_Config $options = null])
Variables
mixed $_constants = 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'
)
(line 49)
  • access: protected
array $_messageTemplates = 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",
)
(line 65)
  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
Validation failure message template definitions
integer $_type = 237 (line 75)

Internal type to detect

  • access: protected

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_messageVariables
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Methods
getType (line 106)

Returns the set types

  • access: public
array getType ()
isValid (line 152)

Defined by Zend_Validate_Interface

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

  • access: public
boolean isValid (string $value)
  • string $value
setType (line 118)

Set the types

  • throws: Zend_Validate_Exception
  • access: public
Zend_Validate_NotEmpty setType ([integer|array $type = null])
  • integer|array $type
Constructor __construct (line 82)

Constructor

  • access: public
Zend_Validate_NotEmpty __construct ([string|array|Zend_Config $options = null])

Inherited Methods

Inherited From Zend_Validate_Abstract

 Zend_Validate_Abstract::getDefaultTranslator()
 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessageLength()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::getMessageTemplates()
 Zend_Validate_Abstract::getMessageVariables()
 Zend_Validate_Abstract::getObscureValue()
 Zend_Validate_Abstract::getTranslator()
 Zend_Validate_Abstract::hasDefaultTranslator()
 Zend_Validate_Abstract::hasTranslator()
 Zend_Validate_Abstract::setDefaultTranslator()
 Zend_Validate_Abstract::setDisableTranslator()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessageLength()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::setObscureValue()
 Zend_Validate_Abstract::setTranslator()
 Zend_Validate_Abstract::translatorIsDisabled()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
ALL = 255 (line 44)
BOOLEAN = 1 (line 35)
EMPTY_ARRAY = 32 (line 40)
FLOAT = 4 (line 37)
INTEGER = 2 (line 36)
INVALID = 'notEmptyInvalid' (line 46)
IS_EMPTY = 'isEmpty' (line 47)
NULL = 64 (line 41)
PHP = 127 (line 42)
SPACE = 128 (line 43)
STRING = 8 (line 38)
ZERO = 16 (line 39)

Documentation generated on Mon, 21 Jun 2010 15:35:50 -0400 by phpDocumentor 1.4.3