Zend Framework  3.0
Static Public Member Functions | List of all members
Reflection Class Reference

Reflection for determining method signatures to use with server classes. More...

Static Public Member Functions

static reflectClass ($class, $argv=false, $namespace= '')
 Perform class reflection to create dispatch signatures.
 
static reflectFunction ($function, $argv=false, $namespace= '')
 Perform function reflection to create dispatch signatures.
 

Detailed Description

Reflection for determining method signatures to use with server classes.

Member Function Documentation

static reflectClass (   $class,
  $argv = false,
  $namespace = '' 
)
static

Perform class reflection to create dispatch signatures.

Creates a Zend\Server\Reflection\ClassReflectionobjectfortheclassorobjectprovided.Ifextraargumentsshouldbepassedtodispatchablemethods,thesemaybeprovidedasanarrayto$argv.@paramstring|object$classClassnameorobject@parambool|array$argvOptionalargumentstobeusedduringthemethodcall@paramstring$namespaceOptionalnamespacewithwhichtoprefixthemethodname(usedforthesignaturekey).Primarilytoavoidcollisions,alsoforXmlRpcnamespacing@return\Zend\Server\Reflection\ReflectionClass@throws\Zend\Server\Reflection\Exception\InvalidArgumentException

static reflectFunction (   $function,
  $argv = false,
  $namespace = '' 
)
static

Perform function reflection to create dispatch signatures.

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

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

Parameters
string$functionFunction name
bool | array$argvOptional arguments to be used during the method call
string$namespaceOptional namespace with which to prefix the function name (used for the signature key). Primarily to avoid collisions, also for XmlRpc namespacing
Returns
Exceptions
\Zend\Server\Reflection\Exception\InvalidArgumentException