PHP Класс Horde_Reflection, horde

Based on the PEAR XML_RPC2_Server_Method class by Sergio Carvalho Copyright 2004-2006 Sergio Gonalves Carvalho () Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Sergio Carvalho ([email protected])
Автор: Duck ([email protected])
Автор: Jan Schneider ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_help string Method help, for introspection.
$_name string External method name.
$_numberOfRequiredParameters integer Number of required parameters.
$_parameters array Method signature parameters.
$_returns string Method signature return type.

Открытые методы

Метод Описание
__construct ( ReflectionFunction $method ) Constructor.
autoDocument ( ) : string Returns a complete description of the method.
factory ( string $function, string $driver = 'Html' ) : Horde_Document Attempts to return a concrete Horde_Document instance based on $driver.

Защищенные методы

Метод Описание
_limitPHPType ( $type ) : string | array Converts types from phpdoc comments (and limit to xmlrpc available types) to php type names.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( ReflectionFunction $method )
$method ReflectionFunction The PHP method to introspect.

_limitPHPType() защищенный статический Метод

Converts types from phpdoc comments (and limit to xmlrpc available types) to php type names.
protected static _limitPHPType ( $type ) : string | array
Результат string | array The standardized php type(s).

autoDocument() абстрактный публичный Метод

Returns a complete description of the method.
abstract public autoDocument ( ) : string
Результат string The method documentation.

factory() публичный статический Метод

Attempts to return a concrete Horde_Document instance based on $driver.
public static factory ( string $function, string $driver = 'Html' ) : Horde_Document
$function string The method to document.
$driver string The type of the concrete Horde_Document subclass to return. The class name is based on the driver. The code is dynamically included.
Результат Horde_Document The newly created concrete Horde_Document instance, or false on an error.

Описание свойств

$_help защищенное свойство

Method help, for introspection.
protected string $_help
Результат string

$_name защищенное свойство

External method name.
protected string $_name
Результат string

$_numberOfRequiredParameters защищенное свойство

Number of required parameters.
protected int $_numberOfRequiredParameters
Результат integer

$_parameters защищенное свойство

Method signature parameters.
protected array $_parameters
Результат array

$_returns защищенное свойство

Method signature return type.
protected string $_returns
Результат string