phpQueryObject::bind
Binds a handler to one or more events (like click) for each matched element.
Can also bind custom events.
Signature
public function bind(unknown_type
$type,
unknown_type
$data,
[unknown_type
$callback = NULL] )
Parameters
$type
— object
$data
— object- Optional
$callback
— object
Returns
- phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
Line | Task |
---|---|
1424+ | support '!' (exclusive) events |
1424+ | support more than event in $type (space-separated) |
1425 | check if $data is callable, not using is_callable |