ComponentReflection
final class ComponentReflection extends ReflectionClass
| internal |
Helpers for Presenter & Component.
Properties
| Control> read-only | $name | ||
| string read-only | $fileName |
Methods
Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter] or annotation @persistent.
Returns array of persistent properties. They are public and have attribute #[Persistent] or annotation @persistent.
Returns array of persistent components. They are tagged with class-level attribute
[Persistent] or annotation @persistent or returned by Presenter::getPersistentComponents().
Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.
Returns action() or render() method if available
Returns handle*() method if available
Has class specified annotation?
Returns an annotation value.
No description
No description
Details
at line 35
array
getParameters()
Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter] or annotation @persistent.
at line 83
array
getPersistentParams()
Returns array of persistent properties. They are public and have attribute #[Persistent] or annotation @persistent.
at line 94
array
getPersistentComponents()
Returns array of persistent components. They are tagged with class-level attribute
[Persistent] or annotation @persistent or returned by Presenter::getPersistentComponents().
at line 118
array
getTemplateVariables(Control $control)
No description
at line 139
bool
hasCallableMethod(string $method)
Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.
at line 149
ReflectionMethod|null
getActionRenderMethod(string $action)
Returns action() or render() method if available
at line 161
ReflectionMethod|null
getSignalMethod(string $signal)
Returns handle*() method if available
at line 173
static array|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 196
bool
hasAnnotation(string $name)
Has class specified annotation?
at line 205
mixed
getAnnotation(string $name)
Returns an annotation value.
at line 212
MethodReflection
getMethod($name)
No description
at line 221
array
getMethods($filter = -1)
No description
at line 232
static array
combineArgs(ReflectionFunctionAbstract $method, array $args)
deprecated
deprecated
No description