virt2/api/soft/phpquery/api-reference/phpQuery/phpQueryEvents.html

473 lines
13 KiB
HTML
Executable File

<html>
<head>
<title>Docs For Class phpQueryEvents</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr>
<td class="header_top">phpQuery</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
<tr>
<td class="header_menu">
[ <a href="../classtrees_phpQuery.html" class="menu">class tree: phpQuery</a> ]
[ <a href="../elementindex_phpQuery.html" class="menu">index: phpQuery</a> ]
[ <a href="../elementindex.html" class="menu">all elements</a> ]
</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="200" class="menu">
<div id="todolist">
<p><a href="../todolist.html">Todo List</a></p>
</div>
<b>Packages:</b><br />
<a href="../li_phpQuery.html">phpQuery</a><br />
<br /><br />
<b>Files:</b><br />
<div class="package">
<a href="../phpQuery/_Callback.php.html"> Callback.php
</a><br>
<a href="../phpQuery/_DOMDocumentWrapper.php.html"> DOMDocumentWrapper.php
</a><br>
<a href="../phpQuery/_DOMEvent.php.html"> DOMEvent.php
</a><br>
<a href="../phpQuery/_phpQuery.php.html"> phpQuery.php
</a><br>
<a href="../phpQuery/_phpQueryEvents.php.html"> phpQueryEvents.php
</a><br>
<a href="../phpQuery/_phpQueryObject.php.html"> phpQueryObject.php
</a><br>
</div><br />
<b>Classes:</b><br />
<div class="package">
<a href="../phpQuery/Callback.html">Callback</a><br />
<a href="../phpQuery/CallbackParam.html">CallbackParam</a><br />
<a href="../phpQuery/CallbackReference.html">CallbackReference</a><br />
<a href="../phpQuery/DOMDocumentWrapper.html">DOMDocumentWrapper</a><br />
<a href="../phpQuery/DOMEvent.html">DOMEvent</a><br />
<a href="../phpQuery/phpQuery.html">phpQuery</a><br />
<a href="../phpQuery/phpQueryEvents.html">phpQueryEvents</a><br />
<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a><br />
<a href="../phpQuery/phpQueryPlugins.html">phpQueryPlugins</a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1>Class: phpQueryEvents</h1>
Source Location: /phpQueryEvents.php<br /><br />
<table width="100%" border="0">
<tr><td valign="top">
<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">Event handling class.</div><br /><br />
<h4>Author(s):</h4>
<ul>
<li>Tobiasz Cudnik</li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../phpQuery/phpQueryEvents.html#methodadd">add</a></li>
<li><a href="../phpQuery/phpQueryEvents.html#methodgetNode">getNode</a></li>
<li><a href="../phpQuery/phpQueryEvents.html#methodissetGlobal">issetGlobal</a></li>
<li><a href="../phpQuery/phpQueryEvents.html#methodremove">remove</a></li>
<li><a href="../phpQuery/phpQueryEvents.html#methodsetNode">setNode</a></li>
<li><a href="../phpQuery/phpQueryEvents.html#methodtrigger">trigger</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
</tr></table>
<hr />
<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 9]<br />
Event handling class.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>author:</b>&nbsp;&nbsp;</td><td>Tobiasz Cudnik</td>
</tr>
<tr>
<td><b>abstract:</b>&nbsp;&nbsp;</td><td></td>
</tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="methodadd"></a>
<h3>static method add <span class="smalllinenumber">[line 96]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>static void add(
DOMNode|<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|string
$document,
$node, unknown_type
$type, unknown_type
$data, [unknown_type
$callback = null])</code>
</td></tr></table>
</td></tr></table><br />
Binds a handler to one or more events (like click) for each matched element.<br /><br /><p>Can also bind custom events.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>support binding to global events</td>
</tr>
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>support '!' (exclusive) events</td>
</tr>
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>support more than event in $type (space-separated)</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">DOMNode|<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|string&nbsp;&nbsp;</td>
<td><b>$document</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$type</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$data</b>&nbsp;&nbsp;</td>
<td>Optional</td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$callback</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$node</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodgetNode"></a>
<h3>static method getNode <span class="smalllinenumber">[line 136]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>static void getNode(
$documentID,
$node)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$documentID</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$node</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodissetGlobal"></a>
<h3>static method issetGlobal <span class="smalllinenumber">[line 148]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>static void issetGlobal(
$documentID,
$type)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$documentID</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$type</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodremove"></a>
<h3>static method remove <span class="smalllinenumber">[line 123]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>static void remove(
DOMNode|<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|string
$document,
$node, [unknown_type
$type = null], [unknown_type
$callback = null])</code>
</td></tr></table>
</td></tr></table><br />
Enter description here...<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>support more than event in $type (space-separated)</td>
</tr>
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>namespace events</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">DOMNode|<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|string&nbsp;&nbsp;</td>
<td><b>$document</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$type</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$callback</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$node</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodsetNode"></a>
<h3>static method setNode <span class="smalllinenumber">[line 142]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>static void setNode(
$documentID,
$node)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$documentID</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$node</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodtrigger"></a>
<h3>static method trigger <span class="smalllinenumber">[line 21]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>static void trigger(
DOMNode|<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|string
$document, unknown_type
$type, [unknown_type
$data = array()], [
$node = null])</code>
</td></tr></table>
</td></tr></table><br />
Trigger a type of event on every matched element.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>support more than event in $type (space-separated)</td>
</tr>
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>exclusive events (with !)</td>
</tr>
<tr>
<td><b>TODO:</b>&nbsp;&nbsp;</td><td>global events (test)</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">DOMNode|<a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|string&nbsp;&nbsp;</td>
<td><b>$document</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$type</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">unknown_type&nbsp;&nbsp;</td>
<td><b>$data</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$node</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
</div><br />
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:26 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>