API Documentation

Zend/Server/Method/Callback.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Server  
Subpackage
Method  
Version
$Id: Callback.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Server_Method_Callback

Package: Zend\Server\Method

Method callback metadata

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedstring  $_class= ''

Class name for class method callback
Details
Type
string
Propertyprotectedstring  $_function= ''

Function name for function callback
Details
Type
string
Propertyprotectedstring  $_method= ''

Method name for class method callback
Details
Type
string
Propertyprotectedstring  $_type= ''

Callback type
Details
Type
string
Propertyprotectedarray  $_types= 'array('function''

Valid callback types
Default valuearray('function'Details
Type
array

Methods

methodpublic__construct( null|array $options = null ) : void

Constructor

Parameters
Name Type Description
$options null|array
methodpublicgetClass( ) : string|null

Get callback class

Returns
Type Description
string|null
methodpublicgetFunction( ) : null|string

Get callback function

Returns
Type Description
null|string
methodpublicgetMethod( ) : null|string

Get callback class method

Returns
Type Description
null|string
methodpublicgetType( ) : string

Get callback type

Returns
Type Description
string
methodpublicsetClass( string $class ) : \Zend_Server_Method_Callback

Set callback class

Parameters
Name Type Description
$class string
Returns
Type Description
\Zend_Server_Method_Callback
methodpublicsetFunction( string $function ) : \Zend_Server_Method_Callback

Set callback function

Parameters
Name Type Description
$function string
Returns
Type Description
\Zend_Server_Method_Callback
methodpublicsetMethod( string $method ) : \Zend_Server_Method_Callback

Set callback class method

Parameters
Name Type Description
$method string
Returns
Type Description
\Zend_Server_Method_Callback
methodpublicsetOptions( array $options ) : \Zend_Server_Method_Callback

Set object state from array of options

Parameters
Name Type Description
$options array
Returns
Type Description
\Zend_Server_Method_Callback
methodpublicsetType( string $type ) : \Zend_Server_Method_Callback

Set callback type

Parameters
Name Type Description
$type string
Returns
Type Description
\Zend_Server_Method_Callback
Throws
Exception Description
\Zend_Server_Exception
methodpublictoArray( ) : array

Cast callback to array

Returns
Type Description
array
Documentation was generated by DocBlox 0.15.1.