Property | Type | Description | |
---|---|---|---|
$instance | Zend\EventManager\SharedEventManagerInterface | Retrieve StaticEventManager instance |
Method | Description | |
---|---|---|
getEvent ( string $id ) : Zend\EventManager\EventManager | Retrieve event | |
getInstance ( ) : Zend\EventManager\SharedEventManagerInterface | Retrieve instance | |
hasInstance ( ) : boolean | Is a singleton instance defined? | |
resetInstance ( ) : void | Reset the singleton instance | |
setInstance ( Zend\EventManager\SharedEventManagerInterface $instance ) : void | Set the singleton to a specific SharedEventManagerInterface instance | |
trigger ( string $id, string $event, string | object $target = null, array | ArrayAccess $argv = [], null | callable $callback = null ) : Zend\EventManager\ResponseCollection | Trigger all listeners for a given event |
public static getInstance ( ) : Zend\EventManager\SharedEventManagerInterface | ||
return | Zend\EventManager\SharedEventManagerInterface |
public static hasInstance ( ) : boolean | ||
return | boolean |
public static resetInstance ( ) : void | ||
return | void |
public static setInstance ( Zend\EventManager\SharedEventManagerInterface $instance ) : void | ||
$instance | Zend\EventManager\SharedEventManagerInterface | Event instance |
return | void |
public trigger ( string $id, string $event, string | object $target = null, array | ArrayAccess $argv = [], null | callable $callback = null ) : Zend\EventManager\ResponseCollection | ||
$id | string | Identifier(s) for event emitting component(s) |
$event | string | Event |
$target | string | object | Object calling emit, or symbol describing target (such as static method name) |
$argv | array | ArrayAccess | Array of arguments; typically, should be associative |
$callback | null | callable | Callback function |
return | Zend\EventManager\ResponseCollection | All listener return values |