PHP Class phpQueryEvents, microweber

Author: Tobiasz Cudnik
显示文件 Open project: microweber/microweber Class Usage Examples

Public Methods

Method Description
add ( DOMNode | phpQueryObject | string $document, $node, unknown_type $type, unknown_type $data, unknown_type $callback = null ) Binds a handler to one or more events (like click) for each matched element.
remove ( DOMNode | phpQueryObject | string $document, $node, unknown_type $type = null, unknown_type $callback = null ) Enter description here.
trigger ( DOMNode | phpQueryObject | string $document, unknown_type $type, unknown_type $data = [], $node = null ) Trigger a type of event on every matched element.

Protected Methods

Method Description
getNode ( $documentID, $node )
issetGlobal ( $documentID, $type )
setNode ( $documentID, $node )

Method Details

add() public static method

Can also bind custom events.
public static add ( DOMNode | phpQueryObject | string $document, $node, unknown_type $type, unknown_type $data, unknown_type $callback = null )
$document DOMNode | phpQueryObject | string
$type unknown_type
$data unknown_type Optional
$callback unknown_type

getNode() protected static method

protected static getNode ( $documentID, $node )

issetGlobal() protected static method

protected static issetGlobal ( $documentID, $type )

remove() public static method

..
public static remove ( DOMNode | phpQueryObject | string $document, $node, unknown_type $type = null, unknown_type $callback = null )
$document DOMNode | phpQueryObject | string
$type unknown_type
$callback unknown_type

setNode() protected static method

protected static setNode ( $documentID, $node )

trigger() public static method

Trigger a type of event on every matched element.
public static trigger ( DOMNode | phpQueryObject | string $document, unknown_type $type, unknown_type $data = [], $node = null )
$document DOMNode | phpQueryObject | string
$type unknown_type
$data unknown_type