PHP Class Pop\Event\Manager

Author: Nick Sagona, III ([email protected])
Inheritance: implements ArrayAccess, implements Countable, implements IteratorAggregate
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$alive boolean Event 'alive' tracking flag
$listeners array Event listeners
$results array Event results

Méthodes publiques

Méthode Description
__construct ( string $name = null, mixed $action = null, integer $priority ) : Manager Constructor
alive ( ) : boolean Method to if the project application is still alive or has been killed
attach ( string $name, mixed $action, integer $priority ) : Manager Method to attach an event listener
detach ( string $name, mixed $action ) : Manager Method to detach an event listener
get ( string $name ) : mixed Method to return an event
getResults ( string $name ) : mixed Method to return the event results
trigger ( string $name, array $args = [] ) : void Method to trigger an event listener priority

Method Details

__construct() public méthode

Instantiate the event Manager object.
public __construct ( string $name = null, mixed $action = null, integer $priority ) : Manager
$name string
$action mixed
$priority integer
Résultat Manager

alive() public méthode

Method to if the project application is still alive or has been killed
public alive ( ) : boolean
Résultat boolean

attach() public méthode

Method to attach an event listener
public attach ( string $name, mixed $action, integer $priority ) : Manager
$name string
$action mixed
$priority integer
Résultat Manager

detach() public méthode

Method to detach an event listener
public detach ( string $name, mixed $action ) : Manager
$name string
$action mixed
Résultat Manager

get() public méthode

Method to return an event
public get ( string $name ) : mixed
$name string
Résultat mixed

getResults() public méthode

Method to return the event results
public getResults ( string $name ) : mixed
$name string
Résultat mixed

trigger() public méthode

Method to trigger an event listener priority
public trigger ( string $name, array $args = [] ) : void
$name string
$args array
Résultat void

Property Details

$alive protected_oe property

Event 'alive' tracking flag
protected bool $alive
Résultat boolean

$listeners protected_oe property

Event listeners
protected array $listeners
Résultat array

$results protected_oe property

Event results
protected array $results
Résultat array