\Phug\PartialPluginEventsTrait

Summary

Methods
Properties
Constants
getEventsList()
attachEvent()
detachEvent()
attachEvents()
detachEvents()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getEventsList()

getEventsList() : array

Get events lists to be sorted.

Returns

array

attachEvent()

attachEvent(string  $event, callable  $callback, integer  $priority) : boolean

Attaches a listener to an event.

Parameters

string $event

the event to attach too

callable $callback

a callable function

integer $priority

the priority at which the $callback executed

Throws

\ReflectionException

Returns

boolean —

true on success false on failure

detachEvent()

detachEvent(string  $event, callable  $callback) : boolean

Detaches a listener from an event.

Parameters

string $event

the event to attach too

callable $callback

a callable function

Throws

\ReflectionException

Returns

boolean —

true on success false on failure

attachEvents()

attachEvents() 

Throws

\ReflectionException

detachEvents()

detachEvents() 

Throws

\ReflectionException