Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.22 KB

util-Event.md

File metadata and controls

36 lines (30 loc) · 1.22 KB

Utilities / Event

im\util\Event


Description

An event object for the im\util\EventHandler

Synopsis

class Event {

    // Properties
    public int $flag
    public im\util\EventHandler $target
    public string $subject = NULL
    public mixed $data = NULL
    public mixed $meta = NULL

    // Methods
    public __construct(int $flag, im\util\EventHandler $target, null|string $subject = NULL, mixed $data = NULL, mixed $meta = NULL, bool $recursive = FALSE)
}

Properties

Name Description
Event :: $flag The event flag that defines the type of event this is
Event :: $target The event handler that triggered this event
Event :: $subject An optional subject for this event
Event :: $data Optional data that can be attached to the event
Event :: $meta Additional information that can be attached to the event

Methods

Name Description
Event :: __construct