PHP 클래스 Prado\TComponentReflection
TComponentReflection provides functionalities to inspect the public/protected
properties, events and methods defined in a class.
The following code displays the properties and events defined in {@link TDataGrid},
$reflection=new TComponentReflection('TDataGrid');
Prado::varDump($reflection->getProperties());
Prado::varDump($reflection->getEvents());
파일 보기
프로젝트 열기: pradosoft/prado
공개 메소드들
보호된 메소드들
비공개 메소드들
메소드 상세
determinePropertyType()
보호된 메소드
This method uses the doc comment to determine the property type.
public getEvents ( ) : array |
리턴 |
array |
list of component events. Array keys are event names.
Each array element is of the following structure:
[protected]=>whether the event is protected or not
[class]=>the class where the event is inherited from.
[comments]=>comments associated with the event. |
public getMethods ( ) : array |
리턴 |
array |
list of public/protected methods. Array keys are method names.
Each array element is of the following structure:
[protected]=>whether the method is protected or not
[static]=>whether the method is static or not
[class]=>the class where the property is inherited from,
[comments]=>comments associated with the event. |
public getProperties ( ) : array |
리턴 |
array |
list of component properties. Array keys are property names.
Each array element is of the following structure:
[type]=>property type,
[readonly]=>whether the property is read-only,
[protected]=>whether the method is protected or not
[class]=>the class where the property is inherited from,
[comments]=>comments associated with the property. |