Server/Method/Callback.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Server  
Subpackage
Method  
Version
$Id$  

\Zend_Server_Method_Callback

Package: Zend_Server\Method
Method callback metadata
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_class

Class name for class method callback

Details
Type
string
>VPropertyprotectedstring $_function

Function name for function callback

Details
Type
string
>VPropertyprotectedstring $_method

Method name for class method callback

Details
Type
string
>VPropertyprotectedstring $_type

Callback type

Details
Type
string
>VPropertyprotectedarray $_types = array('function', 'static', 'instance')

Valid callback types

Default valuearray('function', 'static', 'instance')Details
Type
array

Methods

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

Constructor

Parameters
NameTypeDescription
$optionsnull | array
methodpublicgetClass() : string | null

Get callback class

Returns
TypeDescription
string | null
methodpublicgetFunction() : null | string

Get callback function

Returns
TypeDescription
null | string
methodpublicgetMethod() : null | string

Get callback class method

Returns
TypeDescription
null | string
methodpublicgetType() : string

Get callback type

Returns
TypeDescription
string
methodpublicsetClass(string $class) : \Zend_Server_Method_Callback

Set callback class

Parameters
NameTypeDescription
$classstring
Returns
TypeDescription
\Zend_Server_Method_Callback
methodpublicsetFunction(string $function) : \Zend_Server_Method_Callback

Set callback function

Parameters
NameTypeDescription
$functionstring
Returns
TypeDescription
\Zend_Server_Method_Callback
methodpublicsetMethod(string $method) : \Zend_Server_Method_Callback

Set callback class method

Parameters
NameTypeDescription
$methodstring
Returns
TypeDescription
\Zend_Server_Method_Callback
methodpublicsetOptions(array $options) : \Zend_Server_Method_Callback

Set object state from array of options

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Server_Method_Callback
methodpublicsetType(string $type) : \Zend_Server_Method_Callback

Set callback type

Parameters
NameTypeDescription
$typestring
Returns
TypeDescription
\Zend_Server_Method_Callback
Throws
ExceptionDescription
\Zend_Server_Exception
methodpublictoArray() : array

Cast callback to array

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .