\DOMEvent
DOMEvent class.
Based on
- Author: Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
Synopsis
class DOMEvent
{
- // members
- public unknown_type $bubbles = true;
- public unknown_type $cancelable = true;
- public unknown_type $currentTarget;
- public unknown_type $detail;
- public unknown_type $eventPhase;
- public unknown_type $explicitOriginalTarget;
- public unknown_type $originalTarget;
- public unknown_type $relatedTarget;
- public unknown_type $target;
- public unknown_type $timeStamp;
- public $type;
- public boolean $runDefault = true;
- public $data = NULL;
- // methods
- public void __construct()
- public void preventDefault()
- public void stopPropagation()
Tasks
Line | Task |
---|---|
11+ | implement ArrayAccess ? |
Members
public
- $bubbles
—
unknown_type
Returns a boolean indicating whether the event bubbles up through the DOM or not. - $cancelable
—
unknown_type
Returns a boolean indicating whether the event is cancelable. - $currentTarget
—
unknown_type
Returns a reference to the currently registered target for the event. - $data
- $detail
—
unknown_type
Returns detail about the event, depending on the type of event. - $eventPhase
—
unknown_type
Used to indicate which phase of the event flow is currently being evaluated. - $explicitOriginalTarget
—
unknown_type
The explicit original target of the event (Mozilla-specific). - $originalTarget
—
unknown_type
The original target of the event, before any retargetings (Mozilla-specific). - $runDefault
- $target
—
unknown_type
Returns a reference to the target to which the event was originally dispatched. - $timeStamp
—
unknown_type
Returns the time that the event was created. -
$type
Returns the name of the event (case-insensitive).
Methods
public
- __construct()
- preventDefault() — Cancels the event (if it is cancelable).
- stopPropagation() — Stops the propagation of events further along in the DOM.