Class Zend_Validate_Callback

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

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

Zend_Validate_Abstract
   |
   --Zend_Validate_Callback
Class Constant Summary
 INVALID_CALLBACK = 'callbackInvalid'
 INVALID_VALUE = 'callbackValue'
Variable Summary
 string|array $_callback
 mixed $_options
Method Summary
 void __construct ([string|array $callback = null], mixed $max, boolean $inclusive)
 mixed getCallback ()
 mixed getOptions ()
 boolean isValid (mixed $value)
 Zend_Validate_Callback setCallback (string|array $callback)
 Zend_Validate_Callback setOptions ( $options, mixed $max)
Variables
string|array $_callback = null (line 60)

Callback in a call_user_func format

  • access: protected
array $_messageTemplates = array(
self::INVALID_VALUE => "'%value%' is not valid",
self::INVALID_CALLBACK => "Failure within the callback, exception returned",
)
(line 50)

Validation failure message template definitions

  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
Validation failure message template definitions
mixed $_options = array() (line 67)

Default options to set for the filter

  • 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
Constructor __construct (line 77)

Sets validator options

  • access: public
void __construct ([string|array $callback = null], mixed $max, boolean $inclusive)
  • string|array $callback
  • mixed $max
  • boolean $inclusive
getCallback (line 101)

Returns the set callback

  • access: public
mixed getCallback ()
getOptions (line 127)

Returns the set options for the callback

  • access: public
mixed getOptions ()
isValid (line 153)

Defined by Zend_Validate_Interface

Returns true if and only if the set callback returns for the provided $value

  • access: public
boolean isValid (mixed $value)
  • mixed $value
setCallback (line 112)

Sets the callback

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Callback setCallback (string|array $callback)
  • string|array $callback
setOptions (line 138)

Sets options for the callback

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Callback setOptions ( $options, mixed $max)
  • mixed $max
  • $options

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
INVALID_CALLBACK = 'callbackInvalid' (line 38)

Invalid callback

INVALID_VALUE = 'callbackValue' (line 43)

Invalid value

Documentation generated on Mon, 21 Jun 2010 15:10:33 -0400 by phpDocumentor 1.4.3