API Documentation

Validate/Callback.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: Callback.php 22697 2010-07-26 21:14:47Z alexander $
Classes
Zend_Validate_Callback

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Validate_Callback

Extends from
Zend_Validate_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
INVALID_CALLBACK
INVALID_VALUE
Properties
$_messageTemplates
$_callback
$_options
Methods
__construct
getCallback
setCallback
getOptions
setOptions
isValid

Description

Constants

INVALID_CALLBACK

 INVALID_CALLBACK = 'callbackInvalid'

Invalid callback

Details

value
callbackInvalid

INVALID_VALUE

 INVALID_VALUE = 'callbackValue'

Invalid value

Details

value
callbackValue

Properties

$_callback

string|array $_callback = 'null'

Callback in a call_user_func format

Details

$_callback
string|array
visibility
protected
default
null
final
false
static
false

$_messageTemplates

array $_messageTemplates = 'array'

Validation failure message template definitions

Details

$_messageTemplates
array
visibility
protected
default
array
final
false
static
false

$_options

mixed $_options = 'array'

Default options to set for the filter

Details

$_options
mixed
visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct( string|array $callback = null ) : void

Sets validator options

Arguments
$callback
stringarray
Details
visibility
public
final
false
static
false

getCallback

getCallback( ) : mixed

Returns the set callback

Output
mixed
Details
visibility
public
final
false
static
false

getOptions

getOptions( ) : mixed

Returns the set options for the callback

Output
mixed
Details
visibility
public
final
false
static
false

isValid

isValid( mixed $value ) : boolean

Defined by Zend_Validate_Interface

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

Arguments
$value
mixed
Output
boolean
Details
visibility
public
final
false
static
false

setCallback

setCallback( string|array $callback ) : Zend_Validate_Callback

Sets the callback

Arguments
$callback
stringarray
Output
Zend_Validate_Callback
Provides a fluent interface
Details
visibility
public
final
false
static
false

setOptions

setOptions(  $options ) : Zend_Validate_Callback

Sets options for the callback

Arguments
$options
Output
Zend_Validate_Callback
Provides a fluent interface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.