Reflection for determining method signatures to use with server classes

category Zend
package Zend_Server
subpackage Reflection
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
version $Id$

 Methods

Perform class reflection to create dispatch signatures

reflectClass(string|object $class, null|array $argv = false, string $namespace = '') : \Zend_Server_Reflection_Class
Static

Creates a Zend_Server_Reflection_Class object for the class or object provided.

If extra arguments should be passed to dispatchable methods, these may be provided as an array to $argv.

Parameters

$class

stringobject

Class name or object

$argv

nullarray

Optional arguments to be used during the method call

$namespace

string

Optional namespace with which to prefix the method name (used for the signature key). Primarily to avoid collisions, also for XmlRpc namespacing

Exceptions

\Zend_Server_Reflection_Exception

Returns

\Zend_Server_Reflection_Class

Perform function reflection to create dispatch signatures

reflectFunction(string $function, null|array $argv = false, string $namespace = '') : \Zend_Server_Reflection_Function
Static

Creates dispatch prototypes for a function. It returns a Zend_Server_Reflection_Function object.

If extra arguments should be passed to the dispatchable function, these may be provided as an array to $argv.

Parameters

$function

string

Function name

$argv

nullarray

Optional arguments to be used during the method call

$namespace

string

Optional namespace with which to prefix the function name (used for the signature key). Primarily to avoid collisions, also for XmlRpc namespacing

Exceptions

\Zend_Server_Reflection_Exception

Returns

\Zend_Server_Reflection_Function