Event
extends Component
in package
implements
IEvent
Tags
Table of Contents
Interfaces
Properties
- $action : string
- $is_propogating : bool
- $name : string
- $object : IModel
- $preposition : string
- $subject : IModel
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- fire() : mixed
- getAction() : string
- getName() : string
- getObject() : IModel
- Gets an instance of the object of this event
- getPreposition() : string
- getReflection() : ReflectionClass
- getSubject() : IModel
- Gets an instance of the subject of this event
- isPropogating() : bool
- Determines whether or not this event is being propogated
- stopPropogation() : null
- Stops the propgation of this event
- init() : mixed
- setAction() : mixed
- setObject() : mixed
- setSubject() : mixed
- setPreposition() : void
Properties
$action
protected
string
$action
$is_propogating
protected
bool
$is_propogating
= true
$name
protected
string
$name
$object
protected
IModel
$object
$preposition
protected
string
$preposition
$subject
protected
IModel
$subject
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(IModel $subject, string $action[, IModel $object = null ][, string $preposition = IEvent::PREPOSITION_ON ]) : mixed
Parameters
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolfire()
public
fire() : mixed
Tags
getAction()
public
getAction() : string
Tags
Return values
stringgetName()
public
getName() : string
Tags
Return values
stringgetObject()
Gets an instance of the object of this event
public
getObject() : IModel
Tags
Return values
IModelgetPreposition()
public
getPreposition() : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetSubject()
Gets an instance of the subject of this event
public
getSubject() : IModel
Tags
Return values
IModel —The subject of this event
isPropogating()
Determines whether or not this event is being propogated
public
isPropogating() : bool
Tags
Return values
bool —true if the event is being propogated, false otherwise
stopPropogation()
Stops the propgation of this event
public
stopPropogation() : null
Tags
Return values
nullinit()
protected
init() : mixed
setAction()
protected
setAction(string $action) : mixed
Parameters
- $action : string
setObject()
protected
setObject(IModel $object) : mixed
Parameters
- $object : IModel
setSubject()
protected
setSubject(IModel $subject) : mixed
Parameters
- $subject : IModel
setPreposition()
private
setPreposition(string $preposition) : void
Parameters
- $preposition : string