public static function reflectFunction($function, $argv = false, $namespace = '')
    {
        if (!is_string($function) || !function_exists($function)) {
            require_once 'Zend/Server/Reflection/Exception.php';
            throw new Zend_Server_Reflection_Exception('Invalid function "' . $function . '" passed to reflectFunction');
        }


        if ($argv && !is_array($argv)) {
            require_once 'Zend/Server/Reflection/Exception.php';
            throw new Zend_Server_Reflection_Exception('Invalid argv argument passed to reflectClass');
        }

        return new Zend_Server_Reflection_Function(new ReflectionFunction($function), $namespace, $argv);
    }
public static function reflectFunction($function, $argv = false, $namespace = '')
    {
        if (!is_string($function) || !function_exists($function)) {
            require_once 'Zend/Server/Reflection/Exception.php';
            throw new Zend_Server_Reflection_Exception('Invalid function "' . $function . '" passed to reflectFunction');
        }


        if ($argv && !is_array($argv)) {
            require_once 'Zend/Server/Reflection/Exception.php';
            throw new Zend_Server_Reflection_Exception('Invalid argv argument passed to reflectClass');
        }

        return new Zend_Server_Reflection_Function(new ReflectionFunction($function), $namespace, $argv);
    }
public static function reflectFunction ( $ function , $ argv = false , $ namespace = '' ) { if ( ! is_string ( $ function ) || ! function_exists ( $ function ) ) { require_once 'Zend/Server/Reflection/Exception.php' ; throw new Zend_Server_Reflection_Exception ( 'Invalid function "' . $ function . '" passed to reflectFunction' ) ; } if ( $ argv && ! is_array ( $ argv ) ) { require_once 'Zend/Server/Reflection/Exception.php' ; throw new Zend_Server_Reflection_Exception ( 'Invalid argv argument passed to reflectClass' ) ; } return new Zend_Server_Reflection_Function ( new ReflectionFunction ( $ function ) , $ namespace , $ argv ) ; }
Perform function reflection to create dispatch signatures

Creates dispatch prototypes for a function. It returns a
{@link Zend_Server_Reflection_Function} object.

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

@param string $function Function name
@param null|array $argv Optional arguments to be used during the method call
@param string $namespace Optional namespace with which to prefix the
function name (used for the signature key). Primarily to avoid
collisions, also for XmlRpc namespacing
@return Zend_Server_Reflection_Function
@throws Zend_Server_Reflection_Exception
Perform function reflection to create dispatch signatures