final class ComponentReflection extends ReflectionClass

internal  
 

Helpers for Presenter & Component.

Methods

array
getParameters()

Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter].

array
getPersistentParams()

Returns array of persistent properties. They are public and have attribute #[Persistent].

array
getPersistentComponents()

Returns array of persistent components. They are tagged with class-level attribute

[Persistent] or annotation @persistent or returned by Presenter::getPersistentComponents().

void
saveState(Component $component, array $params)

Saves state information for next request.

bool
hasCallableMethod(string $method)

Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.

ReflectionMethod|null
getActionRenderMethod(string $action)

Returns action() or render() method if available

ReflectionMethod|null
getSignalMethod(string $signal)

Returns handle*() method if available

static array|null
parseAnnotation(Reflector $ref, string $name) deprecated

Returns an annotation value.

bool
hasAnnotation(string $name) deprecated

Has class specified annotation?

mixed
getAnnotation(string $name) deprecated

Returns an annotation value.

getMethod($name)

No description

array
getMethods($filter = -1)

No description

static array
combineArgs(ReflectionFunctionAbstract $method, array $args) deprecated

No description

Details

at line 34
array getParameters()

Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter].

Return Value

array

at line 81
array getPersistentParams()

Returns array of persistent properties. They are public and have attribute #[Persistent].

Return Value

array

at line 92
array getPersistentComponents()

Returns array of persistent components. They are tagged with class-level attribute

[Persistent] or annotation @persistent or returned by Presenter::getPersistentComponents().

Return Value

array

at line 119
void saveState(Component $component, array $params)

Saves state information for next request.

Parameters

Component $component
array $params

Return Value

void

at line 159
bool hasCallableMethod(string $method)

Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.

Parameters

string $method

Return Value

bool

at line 169
ReflectionMethod|null getActionRenderMethod(string $action)

Returns action() or render() method if available

Parameters

string $action

Return Value

ReflectionMethod|null

at line 181
ReflectionMethod|null getSignalMethod(string $signal)

Returns handle*() method if available

Parameters

string $signal

Return Value

ReflectionMethod|null

at line 194
static array|null parseAnnotation(Reflector $ref, string $name) deprecated

deprecated

Returns an annotation value.

Parameters

Reflector $ref
string $name

Return Value

array|null

at line 225
bool hasAnnotation(string $name) deprecated

deprecated

Has class specified annotation?

Parameters

string $name

Return Value

bool

at line 235
mixed getAnnotation(string $name) deprecated

deprecated

Returns an annotation value.

Parameters

string $name

Return Value

mixed

at line 242
MethodReflection getMethod($name)

No description

Parameters

$name

Return Value

MethodReflection

at line 251
array getMethods($filter = -1)

No description

Parameters

$filter

Return Value

array

at line 262
static array combineArgs(ReflectionFunctionAbstract $method, array $args) deprecated

deprecated

No description

Parameters

ReflectionFunctionAbstract $method
array $args

Return Value

array