PHP Class Fuel\Event\Listener

Afficher le fichier Open project: fuelphp/event

Méthodes publiques

Свойство Type Description
$priority integer priority

Protected Properties

Свойство Type Description
$context mixed handler context
$event string event name
$handler mixed event handler
$propagate boolean continue propagation boolean

Méthodes publiques

Méthode Description
__construct ( string $event, callable $handler, mixed $context = null, integer $priority = null ) Constructor
__invoke ( string $event, array $args ) : mixed Invoke handler forewarder.
context ( ) : mixed Retrieve the Event context
handler ( ) : mixed Retrieve the Event handler
is ( $event, $handler, $context ) : boolean Retrieve wether the event object matches a set of event params.
name ( ) : string Retrieve the Event name
propagationStopped ( ) : boolean Returns wether event propagation should continue.
stopPropagation ( ) : object Prevents further events from being fired.

Method Details

__construct() public méthode

Constructor
public __construct ( string $event, callable $handler, mixed $context = null, integer $priority = null )
$event string event name
$handler callable handler
$context mixed closure context
$priority integer closure context

__invoke() public méthode

Invoke handler forewarder.
public __invoke ( string $event, array $args ) : mixed
$event string triggered event
$args array handler arguments
Résultat mixed handler return value

context() public méthode

Retrieve the Event context
public context ( ) : mixed
Résultat mixed event context

handler() public méthode

Retrieve the Event handler
public handler ( ) : mixed
Résultat mixed event handler

is() public méthode

Retrieve wether the event object matches a set of event params.
public is ( $event, $handler, $context ) : boolean
Résultat boolean wether the event object matches the params

name() public méthode

Retrieve the Event name
public name ( ) : string
Résultat string event name

propagationStopped() public méthode

Returns wether event propagation should continue.
public propagationStopped ( ) : boolean
Résultat boolean wether event propagation should continue.

stopPropagation() public méthode

Prevents further events from being fired.
public stopPropagation ( ) : object
Résultat object $this

Property Details

$context protected_oe property

handler context
protected mixed $context
Résultat mixed

$event protected_oe property

event name
protected string $event
Résultat string

$handler protected_oe property

event handler
protected mixed $handler
Résultat mixed

$priority public_oe property

priority
public int $priority
Résultat integer

$propagate protected_oe property

continue propagation boolean
protected bool $propagate
Résultat boolean