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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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