PHP 클래스 Pop\Event\Manager

저자: Nick Sagona, III ([email protected])
상속: implements ArrayAccess, implements Countable, implements IteratorAggregate
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$alive boolean Event 'alive' tracking flag
$listeners array Event listeners
$results array Event results

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

alive() 공개 메소드

Method to if the project application is still alive or has been killed
public alive ( ) : boolean
리턴 boolean

attach() 공개 메소드

Method to attach an event listener
public attach ( string $name, mixed $action, integer $priority ) : Manager
$name string
$action mixed
$priority integer
리턴 Manager

detach() 공개 메소드

Method to detach an event listener
public detach ( string $name, mixed $action ) : Manager
$name string
$action mixed
리턴 Manager

get() 공개 메소드

Method to return an event
public get ( string $name ) : mixed
$name string
리턴 mixed

getResults() 공개 메소드

Method to return the event results
public getResults ( string $name ) : mixed
$name string
리턴 mixed

trigger() 공개 메소드

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

프로퍼티 상세

$alive 보호되어 있는 프로퍼티

Event 'alive' tracking flag
protected bool $alive
리턴 boolean

$listeners 보호되어 있는 프로퍼티

Event listeners
protected array $listeners
리턴 array

$results 보호되어 있는 프로퍼티

Event results
protected array $results
리턴 array