\rex_extension

Klasse die Einsprungpunkte zur Erweiterung der Kernfunktionalitaetet bietet.

Summary

Methods
Properties
Constants
setFactoryClass()
getFactoryClass()
hasFactoryClass()
registerPoint()
register()
isRegistered()
No public properties found
EARLY
NORMAL
LATE
callFactoryClass()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

EARLY

EARLY = -1

NORMAL

NORMAL = 0

LATE

LATE = 1

Methods

setFactoryClass()

setFactoryClass(string  $subclass) : mixed

Sets the class for the factory.

Parameters

string $subclass

Classname

Throws

\InvalidArgumentException

Returns

mixed —

getFactoryClass()

getFactoryClass() : string

Returns the class for the factory.

Returns

string —

hasFactoryClass()

hasFactoryClass() : bool

Returns if the class has a custom factory class.

Returns

bool —

registerPoint()

registerPoint(\rex_extension_point  $extensionPoint) : mixed

Registers an extension point.

Parameters

\rex_extension_point $extensionPoint

Extension point

Returns

mixed —

Subject, maybe adjusted by the extensions

register()

register(string|string[]  $extensionPoint, callable  $extension, mixed  $level = self::NORMAL, array  $params = []) : mixed

Registers an extension for an extension point.

Parameters

string|string[] $extensionPoint

Name(s) of extension point(s)

callable $extension

Callback extension

mixed $level
array $params

Additional params

Returns

mixed —

isRegistered()

isRegistered(string  $extensionPoint) : bool

Checks whether an extension is registered for the given extension point.

Parameters

string $extensionPoint

Name of extension point

Returns

bool —

callFactoryClass()

callFactoryClass(string  $method, array  $arguments) : mixed

Calls the factory class with the given method and arguments.

Parameters

string $method

Method name

array $arguments

Array of arguments

Returns

mixed —

Result of the callback