PHP Class Imbo\EventManager\Event

Author: Christer Edvartsen ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\GenericEvent, implements Imbo\EventManager\EventInterface
显示文件 Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
__construct ( array $arguments = [] ) Class constructor
getAccessControl ( )
getArgument ( string $key ) : mixed Get argument
getConfig ( )
getDatabase ( )
getHandler ( )
getManager ( )
getName ( ) : string Get the event name
getRequest ( )
getResponse ( )
getStorage ( )
hasArgument ( string $key ) : boolean See if the event has an argument
isPropagationStopped ( ) : boolean Check if propagation has been stopped
setArgument ( string $key, mixed $value ) : self Add argument
setArguments ( array $arguments = [] ) : self Set arguments
setName ( string $name ) : self Sets the event name
stopPropagation ( ) Stops the propagation of the event

Method Details

__construct() public method

Class constructor
public __construct ( array $arguments = [] )
$arguments array

getAccessControl() public method

public getAccessControl ( )

getArgument() public method

Get argument
public getArgument ( string $key ) : mixed
$key string
return mixed

getConfig() public method

public getConfig ( )

getDatabase() public method

public getDatabase ( )

getHandler() public method

public getHandler ( )

getManager() public method

public getManager ( )

getName() public method

Get the event name
public getName ( ) : string
return string

getRequest() public method

public getRequest ( )

getResponse() public method

public getResponse ( )

getStorage() public method

public getStorage ( )

hasArgument() public method

See if the event has an argument
public hasArgument ( string $key ) : boolean
$key string
return boolean

isPropagationStopped() public method

Check if propagation has been stopped
public isPropagationStopped ( ) : boolean
return boolean

setArgument() public method

Add argument
public setArgument ( string $key, mixed $value ) : self
$key string
$value mixed
return self

setArguments() public method

Set arguments
public setArguments ( array $arguments = [] ) : self
$arguments array
return self

setName() public method

Sets the event name
public setName ( string $name ) : self
$name string
return self

stopPropagation() public method

Stops the propagation of the event
public stopPropagation ( )