first commit

This commit is contained in:
root
2025-06-16 18:28:08 +05:00
commit d7b21fab0b
21327 changed files with 4845697 additions and 0 deletions

4
api/soft/phpQuery-master/.gitattributes vendored Executable file
View File

@@ -0,0 +1,4 @@
/.idea export-ignore
/test-cases export-ignore
/unit-tests export-ignore

15
api/soft/phpQuery-master/.gitignore vendored Executable file
View File

@@ -0,0 +1,15 @@
/.idea
/nbproject
/storage
!/storage/.gitkeep
/app/cache
!/app/cache/.gitkeep
/engine
/libs
/logs
*.swp
.DS_Store
tapon-cards.csv
/app/nbproject
/app/public/.htaccess
*.rdb

View File

@@ -0,0 +1,80 @@
## phpQuery, one more fork!
My intent is to have it easily integrated in differents projects, so available on packagist.
I've gathered some fix and new features here and there, as will keep looking for new stuff on github about phpQuery
### github repos i've integrated:
* https://github.com/ralph-tice/phpquery (one commit: added WebBrowser->browserDownload)
* https://github.com/aptivate/phpquery (three commits)
* https://github.com/panrafal/phpquery (remove zend)
### github repos i've looked at:
* https://github.com/denis-isaev/phpquery
* https://github.com/r-sal/phpquery
* https://github.com/damien-list/phpquery-1
* https://github.com/nev3rm0re/phpquery
* https://github.com/Aurielle/phpquery
* https://github.com/kevee/phpquery (include php-css-parser)
* https://github.com/lucassouza1/phpquery
## Manual
* [Manual](wiki/README.md) imported from http://code.google.com/p/phpquery/wiki
## Extracts from fmorrow README.md:
### Whats phpQuery?
To quote the phpQuery *(orignally concieved and developed by Tobiasz Cudnik, available on Google Code and Github)* project documentation:
>phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library.
>
>Library is written in PHP5 and provides additional Command Line Interface (CLI).
### Example usage
(copied from http://code.google.com/p/phpquery/wiki/Basics)
Complete working example:
```php
<?php
include 'phpQuery-onefile.php';
$file = 'test.html'; // see below for source
// loads the file
// basically think of your php script as a regular HTML page running client side with jQuery. This loads whatever file you want to be the current page
phpQuery::newDocumentFileHTML($file);
// Once the page is loaded, you can then make queries on whatever DOM is loaded.
// This example grabs the title of the currently loaded page.
$titleElement = pq('title'); // in jQuery, this would return a jQuery object. I'm guessing something similar is happening here with pq.
// You can then use any of the functionality available to that pq object. Such as getting the innerHTML like I do here.
$title = $titleElement->html();
// And output the result
echo '<h2>Title:</h2>';
echo '<p>' . htmlentities( $title) . '</p>';
?>
```
====
Source for test.html:
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Hello World!</title>
</head>
<body>
</body>
</html>
```

View File

@@ -0,0 +1,91 @@
<html>
<head>
<title>Class Trees for Package phpQuery</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 />
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1>Class Trees for Package phpQuery</h1>
<hr />
<div class="classtree">Root class Callback</div><br />
<ul>
<li><a href="phpQuery/Callback.html">Callback</a><ul>
<li><a href="phpQuery/CallbackReference.html">CallbackReference</a></li></ul></li>
</ul>
<hr />
<div class="classtree">Root class CallbackParam</div><br />
<ul>
<li><a href="phpQuery/CallbackParam.html">CallbackParam</a></li></ul>
<hr />
<div class="classtree">Root class DOMDocumentWrapper</div><br />
<ul>
<li><a href="phpQuery/DOMDocumentWrapper.html">DOMDocumentWrapper</a></li></ul>
<hr />
<div class="classtree">Root class DOMEvent</div><br />
<ul>
<li><a href="phpQuery/DOMEvent.html">DOMEvent</a></li></ul>
<hr />
<div class="classtree">Root class phpQuery</div><br />
<ul>
<li><a href="phpQuery/phpQuery.html">phpQuery</a></li></ul>
<hr />
<div class="classtree">Root class phpQueryEvents</div><br />
<ul>
<li><a href="phpQuery/phpQueryEvents.html">phpQueryEvents</a></li></ul>
<hr />
<div class="classtree">Root class phpQueryObject</div><br />
<ul>
<li><a href="phpQuery/phpQueryObject.html">phpQueryObject</a></li></ul>
<hr />
<div class="classtree">Root class phpQueryPlugins</div><br />
<ul>
<li><a href="phpQuery/phpQueryPlugins.html">phpQueryPlugins</a></li></ul>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,875 @@
<html>
<head>
<title>Element Index</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"></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="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 />
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<a name="top"></a>
<h1>Index of all elements</h1>
[ <a href="elementindex.html#a">a</a> ]
[ <a href="elementindex.html#b">b</a> ]
[ <a href="elementindex.html#c">c</a> ]
[ <a href="elementindex.html#d">d</a> ]
[ <a href="elementindex.html#e">e</a> ]
[ <a href="elementindex.html#f">f</a> ]
[ <a href="elementindex.html#g">g</a> ]
[ <a href="elementindex.html#h">h</a> ]
[ <a href="elementindex.html#i">i</a> ]
[ <a href="elementindex.html#k">k</a> ]
[ <a href="elementindex.html#l">l</a> ]
[ <a href="elementindex.html#m">m</a> ]
[ <a href="elementindex.html#n">n</a> ]
[ <a href="elementindex.html#o">o</a> ]
[ <a href="elementindex.html#p">p</a> ]
[ <a href="elementindex.html#r">r</a> ]
[ <a href="elementindex.html#s">s</a> ]
[ <a href="elementindex.html#t">t</a> ]
[ <a href="elementindex.html#u">u</a> ]
[ <a href="elementindex.html#v">v</a> ]
[ <a href="elementindex.html#w">w</a> ]
[ <a href="elementindex.html#x">x</a> ]
[ <a href="elementindex.html#_">_</a> ]
<hr />
<a name="a"></a>
<div>
<h2>a</h2>
<dl>
<dt><b>$active</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$active">phpQuery::$active</a></dd>
<dt><b>$ajaxAllowedHosts</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$ajaxAllowedHosts">phpQuery::$ajaxAllowedHosts</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Hosts allowed for AJAX connections.</dd>
<dt><b>$ajaxSettings</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$ajaxSettings">phpQuery::$ajaxSettings</a><br>&nbsp;&nbsp;&nbsp;&nbsp;AJAX settings.</dd>
<dt><b>add</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodadd">phpQueryEvents::add()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Binds a handler to one or more events (like click) for each matched element.</dd>
<dt><b>add</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodadd">phpQueryObject::add()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>addClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodaddClass">phpQueryObject::addClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>addClassPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodaddClassPHP">phpQueryObject::addClassPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>after</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodafter">phpQueryObject::after()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>afterMarkupLoad</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodafterMarkupLoad">DOMDocumentWrapper::afterMarkupLoad()</a></dd>
<dt><b>afterPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodafterPHP">phpQueryObject::afterPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>ajax</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajax">phpQuery::ajax()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Make an AJAX request.</dd>
<dt><b>ajaxAllowHost</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajaxAllowHost">phpQuery::ajaxAllowHost()</a></dd>
<dt><b>ajaxAllowURL</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajaxAllowURL">phpQuery::ajaxAllowURL()</a></dd>
<dt><b>ajaxSetup</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajaxSetup">phpQuery::ajaxSetup()</a></dd>
<dt><b>ancestors</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodancestors">phpQueryObject::ancestors()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>andSelf</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodandSelf">phpQueryObject::andSelf()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>append</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodappend">phpQueryObject::append()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>appendPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodappendPHP">phpQueryObject::appendPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>appendTo</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodappendTo">phpQueryObject::appendTo()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>attr</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattr">phpQueryObject::attr()</a></dd>
<dt><b>attrAppend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrAppend">phpQueryObject::attrAppend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>attrEvents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrEvents">phpQueryObject::attrEvents()</a></dd>
<dt><b>attrPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrPHP">phpQueryObject::attrPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>attrPrepend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrPrepend">phpQueryObject::attrPrepend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="b"></a>
<div>
<h2>b</h2>
<dl>
<dt><b>$bubbles</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$bubbles">DOMEvent::$bubbles</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a boolean indicating whether the event bubbles up through the DOM or not.</dd>
<dt><b>before</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodbefore">phpQueryObject::before()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>beforePHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodbeforePHP">phpQueryObject::beforePHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>bind</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodbind">phpQueryObject::bind()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Binds a handler to one or more events (like click) for each matched element.</dd>
<dt><b>browser</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodbrowser">phpQuery::browser()</a></dd>
<dt><b>browserGet</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodbrowserGet">phpQuery::browserGet()</a></dd>
<dt><b>browserPost</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodbrowserPost">phpQuery::browserPost()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="c"></a>
<div>
<h2>c</h2>
<dl>
<dt><b>$callback</b></dt>
<dd>in file Callback.php, variable <a href="phpQuery/Callback.html#var$callback">Callback::$callback</a></dd>
<dt><b>$cancelable</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$cancelable">DOMEvent::$cancelable</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a boolean indicating whether the event is cancelable.</dd>
<dt><b>$charset</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$charset">DOMDocumentWrapper::$charset</a></dd>
<dt><b>$charset</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$charset">phpQueryObject::$charset</a></dd>
<dt><b>$contentType</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$contentType">DOMDocumentWrapper::$contentType</a></dd>
<dt><b>$current</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$current">phpQueryObject::$current</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Iterator interface helper</dd>
<dt><b>$currentTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$currentTarget">DOMEvent::$currentTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a reference to the currently registered target for the event.</dd>
<dt><b>Callback</b></dt>
<dd>in file Callback.php, class <a href="phpQuery/Callback.html">Callback</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Callback class implementing ParamStructures, pattern similar to Currying.</dd>
<dt><b>Callback.php</b></dt>
<dd>procedural page <a href="phpQuery/_Callback.php.html">Callback.php</a></dd>
<dt><b>CallbackParam</b></dt>
<dd>in file Callback.php, class <a href="phpQuery/CallbackParam.html">CallbackParam</a></dd>
<dt><b>CallbackReference</b></dt>
<dd>in file Callback.php, class <a href="phpQuery/CallbackReference.html">CallbackReference</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Callback class implementing ParamStructures, pattern similar to Currying.</dd>
<dt><b>callbackRun</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodcallbackRun">phpQuery::callbackRun()</a></dd>
<dt><b>change</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodchange">phpQueryObject::change()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>charsetAppendToHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetAppendToHTML">DOMDocumentWrapper::charsetAppendToHTML()</a></dd>
<dt><b>charsetAppendToXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetAppendToXML">DOMDocumentWrapper::charsetAppendToXML()</a></dd>
<dt><b>charsetFromHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetFromHTML">DOMDocumentWrapper::charsetFromHTML()</a></dd>
<dt><b>charsetFromXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetFromXML">DOMDocumentWrapper::charsetFromXML()</a></dd>
<dt><b>children</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodchildren">phpQueryObject::children()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>click</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodclick">phpQueryObject::click()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>contents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcontents">phpQueryObject::contents()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>contentsUnwrap</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcontentsUnwrap">phpQueryObject::contentsUnwrap()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>contentTypeFromHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcontentTypeFromHTML">DOMDocumentWrapper::contentTypeFromHTML()</a></dd>
<dt><b>contentTypeToArray</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcontentTypeToArray">DOMDocumentWrapper::contentTypeToArray()</a></dd>
<dt><b>count</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcount">phpQueryObject::count()</a></dd>
<dt><b>createDocumentWrapper</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodcreateDocumentWrapper">phpQuery::createDocumentWrapper()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>css</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcss">phpQueryObject::css()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>current</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcurrent">phpQueryObject::current()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="d"></a>
<div>
<h2>d</h2>
<dl>
<dt><b>$data</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$data">DOMEvent::$data</a></dd>
<dt><b>$debug</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$debug">phpQuery::$debug</a></dd>
<dt><b>$defaultCharset</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$defaultCharset">phpQuery::$defaultCharset</a></dd>
<dt><b>$defaultDoctype</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$defaultDoctype">phpQuery::$defaultDoctype</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Applies only to HTML.</dd>
<dt><b>$defaultDocumentID</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$defaultDocumentID">phpQuery::$defaultDocumentID</a></dd>
<dt><b>$detail</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$detail">DOMEvent::$detail</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns detail about the event, depending on the type of event.</dd>
<dt><b>$document</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$document">DOMDocumentWrapper::$document</a></dd>
<dt><b>$document</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$document">phpQueryObject::$document</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DOMDocument class.</dd>
<dt><b>$documentFragment</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$documentFragment">phpQueryObject::$documentFragment</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Indicated if doument is just a fragment (no &lt;html&gt; tag).</dd>
<dt><b>$documentID</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$documentID">phpQueryObject::$documentID</a></dd>
<dt><b>$documents</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$documents">phpQuery::$documents</a></dd>
<dt><b>$documentWrapper</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$documentWrapper">phpQueryObject::$documentWrapper</a></dd>
<dt><b>$dumpCount</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$dumpCount">phpQuery::$dumpCount</a></dd>
<dt><b>debug</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddebug">DOMDocumentWrapper::debug()</a></dd>
<dt><b>debug</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methoddebug">phpQuery::debug()</a></dd>
<dt><b>debug</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddebug">phpQueryObject::debug()</a></dd>
<dt><b>documentCreate</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddocumentCreate">DOMDocumentWrapper::documentCreate()</a></dd>
<dt><b>documentFragment</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddocumentFragment">phpQueryObject::documentFragment()</a></dd>
<dt><b>documentFragmentCreate</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddocumentFragmentCreate">DOMDocumentWrapper::documentFragmentCreate()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates new document fragment.</dd>
<dt><b>documentFragmentToMarkup</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddocumentFragmentToMarkup">DOMDocumentWrapper::documentFragmentToMarkup()</a></dd>
<dt><b>DOMDOCUMENT</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMDOCUMENT">DOMDOCUMENT</a></dd>
<dt><b>DOMDocumentWrapper</b></dt>
<dd>in file DOMDocumentWrapper.php, class <a href="phpQuery/DOMDocumentWrapper.html">DOMDocumentWrapper</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DOMDocumentWrapper class simplifies work with DOMDocument.</dd>
<dt><b>DOMDocumentWrapper.php</b></dt>
<dd>procedural page <a href="phpQuery/_DOMDocumentWrapper.php.html">DOMDocumentWrapper.php</a></dd>
<dt><b>DOMELEMENT</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMELEMENT">DOMELEMENT</a></dd>
<dt><b>DOMEvent</b></dt>
<dd>in file DOMEvent.php, class <a href="phpQuery/DOMEvent.html">DOMEvent</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DOMEvent class.</dd>
<dt><b>DOMEvent.php</b></dt>
<dd>procedural page <a href="phpQuery/_DOMEvent.php.html">DOMEvent.php</a></dd>
<dt><b>DOMNODE</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMNODE">DOMNODE</a></dd>
<dt><b>DOMNODELIST</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMNODELIST">DOMNODELIST</a></dd>
<dt><b>DOMNodeListToArray</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodDOMNodeListToArray">phpQuery::DOMNodeListToArray()</a></dd>
<dt><b>dump</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddump">phpQueryObject::dump()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Dump htmlOuter and preserve chain. Usefull for debugging.</dd>
<dt><b>dumpDie</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpDie">phpQueryObject::dumpDie()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Dump htmlOuter and stop script execution. Usefull for debugging.</dd>
<dt><b>dumpLength</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpLength">phpQueryObject::dumpLength()</a></dd>
<dt><b>dumpTree</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpTree">phpQueryObject::dumpTree()</a></dd>
<dt><b>dumpWhois</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpWhois">phpQueryObject::dumpWhois()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="e"></a>
<div>
<h2>e</h2>
<dl>
<dt><b>$elements</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$elements">phpQueryObject::$elements</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Stack of selected elements.</dd>
<dt><b>$elementsBackup</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$elementsBackup">phpQueryObject::$elementsBackup</a></dd>
<dt><b>$elementsInterator</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$elementsInterator">phpQueryObject::$elementsInterator</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Iterator interface helper</dd>
<dt><b>$eventPhase</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$eventPhase">DOMEvent::$eventPhase</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Used to indicate which phase of the event flow is currently being evaluated.</dd>
<dt><b>$events</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$events">DOMDocumentWrapper::$events</a></dd>
<dt><b>$eventsGlobal</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$eventsGlobal">DOMDocumentWrapper::$eventsGlobal</a></dd>
<dt><b>$eventsNodes</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$eventsNodes">DOMDocumentWrapper::$eventsNodes</a></dd>
<dt><b>$explicitOriginalTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$explicitOriginalTarget">DOMEvent::$explicitOriginalTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;The explicit original target of the event (Mozilla-specific).</dd>
<dt><b>each</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodeach">phpQueryObject::each()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>each</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodeach">phpQuery::each()</a></dd>
<dt><b>elementsContainsNode</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodelementsContainsNode">phpQueryObject::elementsContainsNode()</a></dd>
<dt><b>end</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodend">phpQueryObject::end()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>eq</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodeq">phpQueryObject::eq()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>expandEmptyTag</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodexpandEmptyTag">DOMDocumentWrapper::expandEmptyTag()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;expandEmptyTag</dd>
<dt><b>extend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodextend">phpQueryObject::extend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Deprecated, use $pq-&gt;plugin() instead.</dd>
<dt><b>extend</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodextend">phpQuery::extend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Deprecated, use phpQuery::plugin() instead.</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="f"></a>
<div>
<h2>f</h2>
<dl>
<dt><b>$frames</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$frames">DOMDocumentWrapper::$frames</a><br>&nbsp;&nbsp;&nbsp;&nbsp;TODO</dd>
<dt><b>filter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodfilter">phpQueryObject::filter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>filterCallback</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodfilterCallback">phpQueryObject::filterCallback()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>find</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodfind">phpQueryObject::find()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="g"></a>
<div>
<h2>g</h2>
<dl>
<dt><b>get</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodget">phpQuery::get()</a></dd>
<dt><b>get</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodget">phpQueryObject::get()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return matched DOM nodes.</dd>
<dt><b>getDocument</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDocument">phpQueryObject::getDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns object with stack set to document root.</dd>
<dt><b>getDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgetDocument">phpQuery::getDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns document with id $id or last used as phpQueryObject.</dd>
<dt><b>getDocumentID</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDocumentID">phpQueryObject::getDocumentID()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get object's Document ID.</dd>
<dt><b>getDocumentID</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgetDocumentID">phpQuery::getDocumentID()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns source's document ID.</dd>
<dt><b>getDocumentIDRef</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDocumentIDRef">phpQueryObject::getDocumentIDRef()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Saves object's DocumentID to $var by reference.</dd>
<dt><b>getDOMDocument</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDOMDocument">phpQueryObject::getDOMDocument()</a></dd>
<dt><b>getDOMDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgetDOMDocument">phpQuery::getDOMDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get DOMDocument object related to $source.</dd>
<dt><b>getElementSiblings</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetElementSiblings">phpQueryObject::getElementSiblings()</a></dd>
<dt><b>getNode</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodgetNode">phpQueryEvents::getNode()</a></dd>
<dt><b>getNodeAttrs</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetNodeAttrs">phpQueryObject::getNodeAttrs()</a></dd>
<dt><b>getNodeXpath</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetNodeXpath">phpQueryObject::getNodeXpath()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns node's XPath.</dd>
<dt><b>getString</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetString">phpQueryObject::getString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return matched DOM nodes.</dd>
<dt><b>getStrings</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetStrings">phpQueryObject::getStrings()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return matched DOM nodes.</dd>
<dt><b>grep</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgrep">phpQuery::grep()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="h"></a>
<div>
<h2>h</h2>
<dl>
<dt><b>hasClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhasClass">phpQueryObject::hasClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>hide</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhide">phpQueryObject::hide()</a></dd>
<dt><b>html</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhtml">phpQueryObject::html()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>htmlOuter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhtmlOuter">phpQueryObject::htmlOuter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="i"></a>
<div>
<h2>i</h2>
<dl>
<dt><b>$id</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$id">DOMDocumentWrapper::$id</a></dd>
<dt><b>$isDocumentFragment</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isDocumentFragment">DOMDocumentWrapper::$isDocumentFragment</a></dd>
<dt><b>$isHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isHTML">DOMDocumentWrapper::$isHTML</a></dd>
<dt><b>$isXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isXHTML">DOMDocumentWrapper::$isXHTML</a></dd>
<dt><b>$isXML</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isXML">DOMDocumentWrapper::$isXML</a></dd>
<dt><b>import</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodimport">DOMDocumentWrapper::import()</a></dd>
<dt><b>importAttr</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodimportAttr">DOMDocumentWrapper::importAttr()</a></dd>
<dt><b>inArray</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodinArray">phpQuery::inArray()</a></dd>
<dt><b>index</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodindex">phpQueryObject::index()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>insert</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodinsert">phpQueryObject::insert()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Various insert scenarios.</dd>
<dt><b>insertAfter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodinsertAfter">phpQueryObject::insertAfter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>insertBefore</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodinsertBefore">phpQueryObject::insertBefore()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>is</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodis">phpQueryObject::is()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>isChar</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisChar">phpQueryObject::isChar()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Determines if $char is really a char.</dd>
<dt><b>isDocumentFragmentHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentHTML">DOMDocumentWrapper::isDocumentFragmentHTML()</a></dd>
<dt><b>isDocumentFragmentXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentXHTML">DOMDocumentWrapper::isDocumentFragmentXHTML()</a></dd>
<dt><b>isDocumentFragmentXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentXML">DOMDocumentWrapper::isDocumentFragmentXML()</a></dd>
<dt><b>isFunction</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodisFunction">phpQuery::isFunction()</a></dd>
<dt><b>isHTML</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisHTML">phpQueryObject::isHTML()</a></dd>
<dt><b>isMarkup</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodisMarkup">phpQuery::isMarkup()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Checks if $input is HTML string, which has to start with '&lt;'.</dd>
<dt><b>isRegexp</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisRegexp">phpQueryObject::isRegexp()</a></dd>
<dt><b>isRoot</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisRoot">phpQueryObject::isRoot()</a></dd>
<dt><b>issetGlobal</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodissetGlobal">phpQueryEvents::issetGlobal()</a></dd>
<dt><b>isXHTML</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisXHTML">phpQueryObject::isXHTML()</a></dd>
<dt><b>isXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisXHTML">DOMDocumentWrapper::isXHTML()</a></dd>
<dt><b>isXML</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisXML">phpQueryObject::isXML()</a></dd>
<dt><b>isXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisXML">DOMDocumentWrapper::isXML()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="k"></a>
<div>
<h2>k</h2>
<dl>
<dt><b>key</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodkey">phpQueryObject::key()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="l"></a>
<div>
<h2>l</h2>
<dl>
<dt><b>$lastModified</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$lastModified">phpQuery::$lastModified</a></dd>
<dt><b>length</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodlength">phpQueryObject::length()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>load</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodload">DOMDocumentWrapper::load()</a></dd>
<dt><b>load</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodload">phpQueryObject::load()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>loadDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodloadDocument">phpQuery::loadDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Reuses existing DOMDocument object.</dd>
<dt><b>loadMarkup</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkup">DOMDocumentWrapper::loadMarkup()</a></dd>
<dt><b>loadMarkupHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkupHTML">DOMDocumentWrapper::loadMarkupHTML()</a></dd>
<dt><b>loadMarkupReset</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkupReset">DOMDocumentWrapper::loadMarkupReset()</a></dd>
<dt><b>loadMarkupXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkupXML">DOMDocumentWrapper::loadMarkupXML()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="m"></a>
<div>
<h2>m</h2>
<dl>
<dt><b>makeArray</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmakeArray">phpQuery::makeArray()</a></dd>
<dt><b>map</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmap">phpQueryObject::map()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>map</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmap">phpQuery::map()</a></dd>
<dt><b>markup</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmarkup">phpQueryObject::markup()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;jQuey difference</dd>
<dt><b>markup</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodmarkup">DOMDocumentWrapper::markup()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return document markup, starting with optional $node as root.</dd>
<dt><b>markupEvents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmarkupEvents">phpQueryObject::markupEvents()</a></dd>
<dt><b>markupFixXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodmarkupFixXHTML">DOMDocumentWrapper::markupFixXHTML()</a></dd>
<dt><b>markupOuter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmarkupOuter">phpQueryObject::markupOuter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;jQuey difference</dd>
<dt><b>markupToPHP</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmarkupToPHP">phpQuery::markupToPHP()</a></dd>
<dt><b>matchClasses</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmatchClasses">phpQueryObject::matchClasses()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>merge</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmerge">phpQueryObject::merge()</a></dd>
<dt><b>merge</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmerge">phpQuery::merge()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Merge 2 phpQuery objects.</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="n"></a>
<div>
<h2>n</h2>
<dl>
<dt><b>newDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocument">phpQuery::newDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates new document from markup.</dd>
<dt><b>newDocumentFile</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFile">phpQuery::newDocumentFile()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates new document from file $file.</dd>
<dt><b>newDocumentFileHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFileHTML">phpQuery::newDocumentFileHTML()</a></dd>
<dt><b>newDocumentFilePHP</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFilePHP">phpQuery::newDocumentFilePHP()</a></dd>
<dt><b>newDocumentFileXHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFileXHTML">phpQuery::newDocumentFileXHTML()</a></dd>
<dt><b>newDocumentFileXML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFileXML">phpQuery::newDocumentFileXML()</a></dd>
<dt><b>newDocumentHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentHTML">phpQuery::newDocumentHTML()</a></dd>
<dt><b>newDocumentPHP</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentPHP">phpQuery::newDocumentPHP()</a></dd>
<dt><b>newDocumentXHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentXHTML">phpQuery::newDocumentXHTML()</a></dd>
<dt><b>newDocumentXML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentXML">phpQuery::newDocumentXML()</a></dd>
<dt><b>newInstance</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnewInstance">phpQueryObject::newInstance()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns new instance of actual class.</dd>
<dt><b>next</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnext">phpQueryObject::next()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Double-function method.</dd>
<dt><b>nextAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnextAll">phpQueryObject::nextAll()</a></dd>
<dt><b>not</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnot">phpQueryObject::not()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="o"></a>
<div>
<h2>o</h2>
<dl>
<dt><b>$originalTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$originalTarget">DOMEvent::$originalTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;The original target of the event, before any retargetings (Mozilla-specific).</dd>
<dt><b>offsetExists</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetExists">phpQueryObject::offsetExists()</a></dd>
<dt><b>offsetGet</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetGet">phpQueryObject::offsetGet()</a></dd>
<dt><b>offsetSet</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetSet">phpQueryObject::offsetSet()</a></dd>
<dt><b>offsetUnset</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetUnset">phpQueryObject::offsetUnset()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="p"></a>
<div>
<h2>p</h2>
<dl>
<dt><b>$params</b></dt>
<dd>in file Callback.php, variable <a href="phpQuery/Callback.html#var$params">Callback::$params</a></dd>
<dt><b>$plugins</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$plugins">phpQuery::$plugins</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Static namespace for plugins.</dd>
<dt><b>$pluginsLoaded</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$pluginsLoaded">phpQuery::$pluginsLoaded</a><br>&nbsp;&nbsp;&nbsp;&nbsp;List of loaded plugins.</dd>
<dt><b>$pluginsMethods</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$pluginsMethods">phpQuery::$pluginsMethods</a></dd>
<dt><b>$pluginsStaticMethods</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$pluginsStaticMethods">phpQuery::$pluginsStaticMethods</a></dd>
<dt><b>$previous</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$previous">phpQueryObject::$previous</a></dd>
<dt><b>param</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodparam">phpQuery::param()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>param</b></dt>
<dd>in file Callback.php, method <a href="phpQuery/Callback.html#methodparam">Callback::param()</a></dd>
<dt><b>parent</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodparent">phpQueryObject::parent()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>parents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodparents">phpQueryObject::parents()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>parseJSON</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodparseJSON">phpQuery::parseJSON()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Parses JSON into proper PHP type.</dd>
<dt><b>parseSelector</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodparseSelector">phpQueryObject::parseSelector()</a></dd>
<dt><b>php</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodphp">phpQuery::php()</a></dd>
<dt><b>php</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodphp">phpQueryObject::php()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Just like html(), but returns markup with VALID (dangerous) PHP tags.</dd>
<dt><b>phpQuery</b></dt>
<dd>in file phpQuery.php, class <a href="phpQuery/phpQuery.html">phpQuery</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Static namespace for phpQuery functions.</dd>
<dt><b>phpQuery.php</b></dt>
<dd>procedural page <a href="phpQuery/_phpQuery.php.html">phpQuery.php</a></dd>
<dt><b>phpQueryEvents</b></dt>
<dd>in file phpQueryEvents.php, class <a href="phpQuery/phpQueryEvents.html">phpQueryEvents</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Event handling class.</dd>
<dt><b>phpQueryEvents.php</b></dt>
<dd>procedural page <a href="phpQuery/_phpQueryEvents.php.html">phpQueryEvents.php</a></dd>
<dt><b>phpQueryObject</b></dt>
<dd>in file phpQueryObject.php, class <a href="phpQuery/phpQueryObject.html">phpQueryObject</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Class representing phpQuery objects.</dd>
<dt><b>phpQueryObject.php</b></dt>
<dd>procedural page <a href="phpQuery/_phpQueryObject.php.html">phpQueryObject.php</a></dd>
<dt><b>phpQueryPlugins</b></dt>
<dd>in file phpQuery.php, class <a href="phpQuery/phpQueryPlugins.html">phpQueryPlugins</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Plugins static namespace class.</dd>
<dt><b>phpToMarkup</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodphpToMarkup">phpQuery::phpToMarkup()</a></dd>
<dt><b>plugin</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodplugin">phpQueryObject::plugin()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>plugin</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodplugin">phpQuery::plugin()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Extend phpQuery with $class from $file.</dd>
<dt><b>post</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodpost">phpQuery::post()</a></dd>
<dt><b>pq</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodpq">phpQuery::pq()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Multi-purpose function.</dd>
<dt><b>pq</b></dt>
<dd>in file phpQuery.php, function <a href="phpQuery/_phpQuery.php.html#functionpq">pq()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Shortcut to phpQuery::pq($arg1, $context) Chainable.</dd>
<dt><b>prepend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprepend">phpQueryObject::prepend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prependPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprependPHP">phpQueryObject::prependPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prependTo</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprependTo">phpQueryObject::prependTo()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prev</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprev">phpQueryObject::prev()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prevAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprevAll">phpQueryObject::prevAll()</a></dd>
<dt><b>preventDefault</b></dt>
<dd>in file DOMEvent.php, method <a href="phpQuery/DOMEvent.html#methodpreventDefault">DOMEvent::preventDefault()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Cancels the event (if it is cancelable).</dd>
<dt><b>pseudoClasses</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodpseudoClasses">phpQueryObject::pseudoClasses()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="r"></a>
<div>
<h2>r</h2>
<dl>
<dt><b>$relatedTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$relatedTarget">DOMEvent::$relatedTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Identifies a secondary target for the event.</dd>
<dt><b>$root</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$root">DOMDocumentWrapper::$root</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Document root, by default equals to document itself.</dd>
<dt><b>$root</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$root">phpQueryObject::$root</a></dd>
<dt><b>$runDefault</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$runDefault">DOMEvent::$runDefault</a></dd>
<dt><b>remove</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodremove">phpQueryObject::remove()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>remove</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodremove">phpQueryEvents::remove()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>removeAttr</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodremoveAttr">phpQueryObject::removeAttr()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>removeClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodremoveClass">phpQueryObject::removeClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>replaceAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreplaceAll">phpQueryObject::replaceAll()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>replaceWith</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreplaceWith">phpQueryObject::replaceWith()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>replaceWithPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreplaceWithPHP">phpQueryObject::replaceWithPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>reverse</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreverse">phpQueryObject::reverse()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>rewind</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodrewind">phpQueryObject::rewind()</a></dd>
<dt><b>runQuery</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodrunQuery">phpQueryObject::runQuery()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="s"></a>
<div>
<h2>s</h2>
<dl>
<dt><b>selectDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodselectDocument">phpQuery::selectDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Sets default document to $id. Document has to be loaded prior to using this method.</dd>
<dt><b>serialize</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodserialize">phpQueryObject::serialize()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>serializeArray</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodserializeArray">phpQueryObject::serializeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>setNode</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodsetNode">phpQueryEvents::setNode()</a></dd>
<dt><b>show</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodshow">phpQueryObject::show()</a></dd>
<dt><b>siblings</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodsiblings">phpQueryObject::siblings()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>size</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodsize">phpQueryObject::size()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>slice</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodslice">phpQueryObject::slice()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>stack</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodstack">phpQueryObject::stack()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Attribute method.</dd>
<dt><b>stackIsRoot</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodstackIsRoot">phpQueryObject::stackIsRoot()</a></dd>
<dt><b>stopPropagation</b></dt>
<dd>in file DOMEvent.php, method <a href="phpQuery/DOMEvent.html#methodstopPropagation">DOMEvent::stopPropagation()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Stops the propagation of events further along in the DOM.</dd>
<dt><b>submit</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodsubmit">phpQueryObject::submit()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>switchWith</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodswitchWith">phpQueryObject::switchWith()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="t"></a>
<div>
<h2>t</h2>
<dl>
<dt><b>$target</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$target">DOMEvent::$target</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a reference to the target to which the event was originally dispatched.</dd>
<dt><b>$timeStamp</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$timeStamp">DOMEvent::$timeStamp</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the time that the event was created.</dd>
<dt><b>$type</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$type">DOMEvent::$type</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the event (case-insensitive).</dd>
<dt><b>text</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtext">phpQueryObject::text()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return joined text content.</dd>
<dt><b>toggleClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtoggleClass">phpQueryObject::toggleClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>toJSON</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodtoJSON">phpQuery::toJSON()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns JSON representation of $data.</dd>
<dt><b>toReference</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtoReference">phpQueryObject::toReference()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Saves actual object to $var by reference.</dd>
<dt><b>toRoot</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtoRoot">phpQueryObject::toRoot()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>trigger</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtrigger">phpQueryObject::trigger()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Trigger a type of event on every matched element.</dd>
<dt><b>trigger</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodtrigger">phpQueryEvents::trigger()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Trigger a type of event on every matched element.</dd>
<dt><b>triggerHandler</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtriggerHandler">phpQueryObject::triggerHandler()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.</dd>
<dt><b>trim</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodtrim">phpQuery::trim()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="u"></a>
<div>
<h2>u</h2>
<dl>
<dt><b>unbind</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodunbind">phpQueryObject::unbind()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>unique</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodunique">phpQuery::unique()</a></dd>
<dt><b>unloadDocument</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodunloadDocument">phpQueryObject::unloadDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Unloads whole document from memory.</dd>
<dt><b>unloadDocuments</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodunloadDocuments">phpQuery::unloadDocuments()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Unloades all or specified document from memory.</dd>
<dt><b>unQuote</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodunQuote">phpQueryObject::unQuote()</a></dd>
<dt><b>unsafePHPTags</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodunsafePHPTags">phpQuery::unsafePHPTags()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Parses phpQuery object or HTML result against PHP tags and makes them active.</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="v"></a>
<div>
<h2>v</h2>
<dl>
<dt><b>$valid</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$valid">phpQueryObject::$valid</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Iterator interface helper</dd>
<dt><b>val</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodval">phpQueryObject::val()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return form element value.</dd>
<dt><b>valid</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodvalid">phpQueryObject::valid()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="w"></a>
<div>
<h2>w</h2>
<dl>
<dt><b>whois</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwhois">phpQueryObject::whois()</a></dd>
<dt><b>wrap</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrap">phpQueryObject::wrap()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapAll">phpQueryObject::wrapAll()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapAllOld</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapAllOld">phpQueryObject::wrapAllOld()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapAllPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapAllPHP">phpQueryObject::wrapAllPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapInner</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapInner">phpQueryObject::wrapInner()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapInnerPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapInnerPHP">phpQueryObject::wrapInnerPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapPHP">phpQueryObject::wrapPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="x"></a>
<div>
<h2>x</h2>
<dl>
<dt><b>$xpath</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$xpath">DOMDocumentWrapper::$xpath</a></dd>
<dt><b>$xpath</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$xpath">phpQueryObject::$xpath</a><br>&nbsp;&nbsp;&nbsp;&nbsp;XPath interface.</dd>
<dt><b>xml</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodxml">phpQueryObject::xml()</a></dd>
<dt><b>xmlOuter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodxmlOuter">phpQueryObject::xmlOuter()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<hr />
<a name="_"></a>
<div>
<h2>_</h2>
<dl>
<dt><b>_clone</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_clone">phpQueryObject::_clone()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>_empty</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_empty">phpQueryObject::_empty()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Proper name without underscore (just -&gt;empty()) also works.</dd>
<dt><b>_next</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_next">phpQueryObject::_next()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Safe rename of next().</dd>
<dt><b>_prev</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_prev">phpQueryObject::_prev()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Use prev() and next().</dd>
<dt><b>__call</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQueryPlugins.html#method__call">phpQueryPlugins::__call()</a></dd>
<dt><b>__call</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__call">phpQueryObject::__call()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#method__construct">DOMDocumentWrapper::__construct()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file DOMEvent.php, method <a href="phpQuery/DOMEvent.html#method__construct">DOMEvent::__construct()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__construct">phpQueryObject::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>__construct</b></dt>
<dd>in file Callback.php, method <a href="phpQuery/CallbackReference.html#method__construct">CallbackReference::__construct()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file Callback.php, method <a href="phpQuery/Callback.html#method__construct">Callback::__construct()</a></dd>
<dt><b>__get</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__get">phpQueryObject::__get()</a></dd>
<dt><b>__loadSuccess</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__loadSuccess">phpQueryObject::__loadSuccess()</a></dd>
<dt><b>__pseudoClassParam</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__pseudoClassParam">phpQueryObject::__pseudoClassParam()</a></dd>
<dt><b>__toString</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__toString">phpQueryObject::__toString()</a></dd>
<dt><b>___wrapAllCallback</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method___wrapAllCallback">phpQueryObject::___wrapAllCallback()</a></dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,907 @@
<html>
<head>
<title>Package phpQuery Element Index</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">
<a name="top"></a>
<h1>Element index for package phpQuery</h1>
[ <a href="elementindex_phpQuery.html#a">a</a> ]
[ <a href="elementindex_phpQuery.html#b">b</a> ]
[ <a href="elementindex_phpQuery.html#c">c</a> ]
[ <a href="elementindex_phpQuery.html#d">d</a> ]
[ <a href="elementindex_phpQuery.html#e">e</a> ]
[ <a href="elementindex_phpQuery.html#f">f</a> ]
[ <a href="elementindex_phpQuery.html#g">g</a> ]
[ <a href="elementindex_phpQuery.html#h">h</a> ]
[ <a href="elementindex_phpQuery.html#i">i</a> ]
[ <a href="elementindex_phpQuery.html#k">k</a> ]
[ <a href="elementindex_phpQuery.html#l">l</a> ]
[ <a href="elementindex_phpQuery.html#m">m</a> ]
[ <a href="elementindex_phpQuery.html#n">n</a> ]
[ <a href="elementindex_phpQuery.html#o">o</a> ]
[ <a href="elementindex_phpQuery.html#p">p</a> ]
[ <a href="elementindex_phpQuery.html#r">r</a> ]
[ <a href="elementindex_phpQuery.html#s">s</a> ]
[ <a href="elementindex_phpQuery.html#t">t</a> ]
[ <a href="elementindex_phpQuery.html#u">u</a> ]
[ <a href="elementindex_phpQuery.html#v">v</a> ]
[ <a href="elementindex_phpQuery.html#w">w</a> ]
[ <a href="elementindex_phpQuery.html#x">x</a> ]
[ <a href="elementindex_phpQuery.html#_">_</a> ]
<hr />
<a name="_"></a>
<div>
<h2>_</h2>
<dl>
<dt><b>_clone</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_clone">phpQueryObject::_clone()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>_empty</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_empty">phpQueryObject::_empty()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Proper name without underscore (just -&gt;empty()) also works.</dd>
<dt><b>_next</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_next">phpQueryObject::_next()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Safe rename of next().</dd>
<dt><b>_prev</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method_prev">phpQueryObject::_prev()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Use prev() and next().</dd>
<dt><b>__call</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQueryPlugins.html#method__call">phpQueryPlugins::__call()</a></dd>
<dt><b>__call</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__call">phpQueryObject::__call()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#method__construct">DOMDocumentWrapper::__construct()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file DOMEvent.php, method <a href="phpQuery/DOMEvent.html#method__construct">DOMEvent::__construct()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__construct">phpQueryObject::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>__construct</b></dt>
<dd>in file Callback.php, method <a href="phpQuery/CallbackReference.html#method__construct">CallbackReference::__construct()</a></dd>
<dt><b>__construct</b></dt>
<dd>in file Callback.php, method <a href="phpQuery/Callback.html#method__construct">Callback::__construct()</a></dd>
<dt><b>__get</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__get">phpQueryObject::__get()</a></dd>
<dt><b>__loadSuccess</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__loadSuccess">phpQueryObject::__loadSuccess()</a></dd>
<dt><b>__pseudoClassParam</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__pseudoClassParam">phpQueryObject::__pseudoClassParam()</a></dd>
<dt><b>__toString</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method__toString">phpQueryObject::__toString()</a></dd>
<dt><b>___wrapAllCallback</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#method___wrapAllCallback">phpQueryObject::___wrapAllCallback()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="a"></a>
<div>
<h2>a</h2>
<dl>
<dt><b>$active</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$active">phpQuery::$active</a></dd>
<dt><b>$ajaxAllowedHosts</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$ajaxAllowedHosts">phpQuery::$ajaxAllowedHosts</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Hosts allowed for AJAX connections.</dd>
<dt><b>$ajaxSettings</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$ajaxSettings">phpQuery::$ajaxSettings</a><br>&nbsp;&nbsp;&nbsp;&nbsp;AJAX settings.</dd>
<dt><b>add</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodadd">phpQueryEvents::add()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Binds a handler to one or more events (like click) for each matched element.</dd>
<dt><b>add</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodadd">phpQueryObject::add()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>addClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodaddClass">phpQueryObject::addClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>addClassPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodaddClassPHP">phpQueryObject::addClassPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>after</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodafter">phpQueryObject::after()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>afterMarkupLoad</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodafterMarkupLoad">DOMDocumentWrapper::afterMarkupLoad()</a></dd>
<dt><b>afterPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodafterPHP">phpQueryObject::afterPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>ajax</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajax">phpQuery::ajax()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Make an AJAX request.</dd>
<dt><b>ajaxAllowHost</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajaxAllowHost">phpQuery::ajaxAllowHost()</a></dd>
<dt><b>ajaxAllowURL</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajaxAllowURL">phpQuery::ajaxAllowURL()</a></dd>
<dt><b>ajaxSetup</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodajaxSetup">phpQuery::ajaxSetup()</a></dd>
<dt><b>ancestors</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodancestors">phpQueryObject::ancestors()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>andSelf</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodandSelf">phpQueryObject::andSelf()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>append</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodappend">phpQueryObject::append()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>appendPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodappendPHP">phpQueryObject::appendPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>appendTo</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodappendTo">phpQueryObject::appendTo()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>attr</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattr">phpQueryObject::attr()</a></dd>
<dt><b>attrAppend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrAppend">phpQueryObject::attrAppend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>attrEvents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrEvents">phpQueryObject::attrEvents()</a></dd>
<dt><b>attrPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrPHP">phpQueryObject::attrPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>attrPrepend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodattrPrepend">phpQueryObject::attrPrepend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="b"></a>
<div>
<h2>b</h2>
<dl>
<dt><b>$bubbles</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$bubbles">DOMEvent::$bubbles</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a boolean indicating whether the event bubbles up through the DOM or not.</dd>
<dt><b>before</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodbefore">phpQueryObject::before()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>beforePHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodbeforePHP">phpQueryObject::beforePHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>bind</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodbind">phpQueryObject::bind()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Binds a handler to one or more events (like click) for each matched element.</dd>
<dt><b>browser</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodbrowser">phpQuery::browser()</a></dd>
<dt><b>browserGet</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodbrowserGet">phpQuery::browserGet()</a></dd>
<dt><b>browserPost</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodbrowserPost">phpQuery::browserPost()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="c"></a>
<div>
<h2>c</h2>
<dl>
<dt><b>$callback</b></dt>
<dd>in file Callback.php, variable <a href="phpQuery/Callback.html#var$callback">Callback::$callback</a></dd>
<dt><b>$cancelable</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$cancelable">DOMEvent::$cancelable</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a boolean indicating whether the event is cancelable.</dd>
<dt><b>$charset</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$charset">DOMDocumentWrapper::$charset</a></dd>
<dt><b>$charset</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$charset">phpQueryObject::$charset</a></dd>
<dt><b>$contentType</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$contentType">DOMDocumentWrapper::$contentType</a></dd>
<dt><b>$current</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$current">phpQueryObject::$current</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Iterator interface helper</dd>
<dt><b>$currentTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$currentTarget">DOMEvent::$currentTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a reference to the currently registered target for the event.</dd>
<dt><b>Callback</b></dt>
<dd>in file Callback.php, class <a href="phpQuery/Callback.html">Callback</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Callback class implementing ParamStructures, pattern similar to Currying.</dd>
<dt><b>Callback.php</b></dt>
<dd>procedural page <a href="phpQuery/_Callback.php.html">Callback.php</a></dd>
<dt><b>CallbackParam</b></dt>
<dd>in file Callback.php, class <a href="phpQuery/CallbackParam.html">CallbackParam</a></dd>
<dt><b>CallbackReference</b></dt>
<dd>in file Callback.php, class <a href="phpQuery/CallbackReference.html">CallbackReference</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Callback class implementing ParamStructures, pattern similar to Currying.</dd>
<dt><b>callbackRun</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodcallbackRun">phpQuery::callbackRun()</a></dd>
<dt><b>change</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodchange">phpQueryObject::change()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>charsetAppendToHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetAppendToHTML">DOMDocumentWrapper::charsetAppendToHTML()</a></dd>
<dt><b>charsetAppendToXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetAppendToXML">DOMDocumentWrapper::charsetAppendToXML()</a></dd>
<dt><b>charsetFromHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetFromHTML">DOMDocumentWrapper::charsetFromHTML()</a></dd>
<dt><b>charsetFromXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcharsetFromXML">DOMDocumentWrapper::charsetFromXML()</a></dd>
<dt><b>children</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodchildren">phpQueryObject::children()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>click</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodclick">phpQueryObject::click()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>contents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcontents">phpQueryObject::contents()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>contentsUnwrap</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcontentsUnwrap">phpQueryObject::contentsUnwrap()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>contentTypeFromHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcontentTypeFromHTML">DOMDocumentWrapper::contentTypeFromHTML()</a></dd>
<dt><b>contentTypeToArray</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodcontentTypeToArray">DOMDocumentWrapper::contentTypeToArray()</a></dd>
<dt><b>count</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcount">phpQueryObject::count()</a></dd>
<dt><b>createDocumentWrapper</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodcreateDocumentWrapper">phpQuery::createDocumentWrapper()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>css</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcss">phpQueryObject::css()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>current</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodcurrent">phpQueryObject::current()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="d"></a>
<div>
<h2>d</h2>
<dl>
<dt><b>$data</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$data">DOMEvent::$data</a></dd>
<dt><b>$debug</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$debug">phpQuery::$debug</a></dd>
<dt><b>$defaultCharset</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$defaultCharset">phpQuery::$defaultCharset</a></dd>
<dt><b>$defaultDoctype</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$defaultDoctype">phpQuery::$defaultDoctype</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Applies only to HTML.</dd>
<dt><b>$defaultDocumentID</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$defaultDocumentID">phpQuery::$defaultDocumentID</a></dd>
<dt><b>$detail</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$detail">DOMEvent::$detail</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns detail about the event, depending on the type of event.</dd>
<dt><b>$document</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$document">DOMDocumentWrapper::$document</a></dd>
<dt><b>$document</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$document">phpQueryObject::$document</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DOMDocument class.</dd>
<dt><b>$documentFragment</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$documentFragment">phpQueryObject::$documentFragment</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Indicated if doument is just a fragment (no &lt;html&gt; tag).</dd>
<dt><b>$documentID</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$documentID">phpQueryObject::$documentID</a></dd>
<dt><b>$documents</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$documents">phpQuery::$documents</a></dd>
<dt><b>$documentWrapper</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$documentWrapper">phpQueryObject::$documentWrapper</a></dd>
<dt><b>$dumpCount</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$dumpCount">phpQuery::$dumpCount</a></dd>
<dt><b>debug</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddebug">DOMDocumentWrapper::debug()</a></dd>
<dt><b>debug</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methoddebug">phpQuery::debug()</a></dd>
<dt><b>debug</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddebug">phpQueryObject::debug()</a></dd>
<dt><b>documentCreate</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddocumentCreate">DOMDocumentWrapper::documentCreate()</a></dd>
<dt><b>documentFragment</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddocumentFragment">phpQueryObject::documentFragment()</a></dd>
<dt><b>documentFragmentCreate</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddocumentFragmentCreate">DOMDocumentWrapper::documentFragmentCreate()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates new document fragment.</dd>
<dt><b>documentFragmentToMarkup</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methoddocumentFragmentToMarkup">DOMDocumentWrapper::documentFragmentToMarkup()</a></dd>
<dt><b>DOMDOCUMENT</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMDOCUMENT">DOMDOCUMENT</a></dd>
<dt><b>DOMDocumentWrapper</b></dt>
<dd>in file DOMDocumentWrapper.php, class <a href="phpQuery/DOMDocumentWrapper.html">DOMDocumentWrapper</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DOMDocumentWrapper class simplifies work with DOMDocument.</dd>
<dt><b>DOMDocumentWrapper.php</b></dt>
<dd>procedural page <a href="phpQuery/_DOMDocumentWrapper.php.html">DOMDocumentWrapper.php</a></dd>
<dt><b>DOMELEMENT</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMELEMENT">DOMELEMENT</a></dd>
<dt><b>DOMEvent</b></dt>
<dd>in file DOMEvent.php, class <a href="phpQuery/DOMEvent.html">DOMEvent</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DOMEvent class.</dd>
<dt><b>DOMEvent.php</b></dt>
<dd>procedural page <a href="phpQuery/_DOMEvent.php.html">DOMEvent.php</a></dd>
<dt><b>DOMNODE</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMNODE">DOMNODE</a></dd>
<dt><b>DOMNODELIST</b></dt>
<dd>in file phpQuery.php, constant <a href="phpQuery/_phpQuery.php.html#defineDOMNODELIST">DOMNODELIST</a></dd>
<dt><b>DOMNodeListToArray</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodDOMNodeListToArray">phpQuery::DOMNodeListToArray()</a></dd>
<dt><b>dump</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddump">phpQueryObject::dump()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Dump htmlOuter and preserve chain. Usefull for debugging.</dd>
<dt><b>dumpDie</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpDie">phpQueryObject::dumpDie()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Dump htmlOuter and stop script execution. Usefull for debugging.</dd>
<dt><b>dumpLength</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpLength">phpQueryObject::dumpLength()</a></dd>
<dt><b>dumpTree</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpTree">phpQueryObject::dumpTree()</a></dd>
<dt><b>dumpWhois</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methoddumpWhois">phpQueryObject::dumpWhois()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="e"></a>
<div>
<h2>e</h2>
<dl>
<dt><b>$elements</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$elements">phpQueryObject::$elements</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Stack of selected elements.</dd>
<dt><b>$elementsBackup</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$elementsBackup">phpQueryObject::$elementsBackup</a></dd>
<dt><b>$elementsInterator</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$elementsInterator">phpQueryObject::$elementsInterator</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Iterator interface helper</dd>
<dt><b>$eventPhase</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$eventPhase">DOMEvent::$eventPhase</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Used to indicate which phase of the event flow is currently being evaluated.</dd>
<dt><b>$events</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$events">DOMDocumentWrapper::$events</a></dd>
<dt><b>$eventsGlobal</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$eventsGlobal">DOMDocumentWrapper::$eventsGlobal</a></dd>
<dt><b>$eventsNodes</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$eventsNodes">DOMDocumentWrapper::$eventsNodes</a></dd>
<dt><b>$explicitOriginalTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$explicitOriginalTarget">DOMEvent::$explicitOriginalTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;The explicit original target of the event (Mozilla-specific).</dd>
<dt><b>each</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodeach">phpQueryObject::each()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>each</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodeach">phpQuery::each()</a></dd>
<dt><b>elementsContainsNode</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodelementsContainsNode">phpQueryObject::elementsContainsNode()</a></dd>
<dt><b>end</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodend">phpQueryObject::end()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>eq</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodeq">phpQueryObject::eq()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>expandEmptyTag</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodexpandEmptyTag">DOMDocumentWrapper::expandEmptyTag()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;expandEmptyTag</dd>
<dt><b>extend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodextend">phpQueryObject::extend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Deprecated, use $pq-&gt;plugin() instead.</dd>
<dt><b>extend</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodextend">phpQuery::extend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Deprecated, use phpQuery::plugin() instead.</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="f"></a>
<div>
<h2>f</h2>
<dl>
<dt><b>$frames</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$frames">DOMDocumentWrapper::$frames</a><br>&nbsp;&nbsp;&nbsp;&nbsp;TODO</dd>
<dt><b>filter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodfilter">phpQueryObject::filter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>filterCallback</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodfilterCallback">phpQueryObject::filterCallback()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>find</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodfind">phpQueryObject::find()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="g"></a>
<div>
<h2>g</h2>
<dl>
<dt><b>get</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodget">phpQuery::get()</a></dd>
<dt><b>get</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodget">phpQueryObject::get()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return matched DOM nodes.</dd>
<dt><b>getDocument</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDocument">phpQueryObject::getDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns object with stack set to document root.</dd>
<dt><b>getDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgetDocument">phpQuery::getDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns document with id $id or last used as phpQueryObject.</dd>
<dt><b>getDocumentID</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDocumentID">phpQueryObject::getDocumentID()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get object's Document ID.</dd>
<dt><b>getDocumentID</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgetDocumentID">phpQuery::getDocumentID()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns source's document ID.</dd>
<dt><b>getDocumentIDRef</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDocumentIDRef">phpQueryObject::getDocumentIDRef()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Saves object's DocumentID to $var by reference.</dd>
<dt><b>getDOMDocument</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetDOMDocument">phpQueryObject::getDOMDocument()</a></dd>
<dt><b>getDOMDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgetDOMDocument">phpQuery::getDOMDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get DOMDocument object related to $source.</dd>
<dt><b>getElementSiblings</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetElementSiblings">phpQueryObject::getElementSiblings()</a></dd>
<dt><b>getNode</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodgetNode">phpQueryEvents::getNode()</a></dd>
<dt><b>getNodeAttrs</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetNodeAttrs">phpQueryObject::getNodeAttrs()</a></dd>
<dt><b>getNodeXpath</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetNodeXpath">phpQueryObject::getNodeXpath()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns node's XPath.</dd>
<dt><b>getString</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetString">phpQueryObject::getString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return matched DOM nodes.</dd>
<dt><b>getStrings</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodgetStrings">phpQueryObject::getStrings()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return matched DOM nodes.</dd>
<dt><b>grep</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodgrep">phpQuery::grep()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="h"></a>
<div>
<h2>h</h2>
<dl>
<dt><b>hasClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhasClass">phpQueryObject::hasClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>hide</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhide">phpQueryObject::hide()</a></dd>
<dt><b>html</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhtml">phpQueryObject::html()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>htmlOuter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodhtmlOuter">phpQueryObject::htmlOuter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="i"></a>
<div>
<h2>i</h2>
<dl>
<dt><b>$id</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$id">DOMDocumentWrapper::$id</a></dd>
<dt><b>$isDocumentFragment</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isDocumentFragment">DOMDocumentWrapper::$isDocumentFragment</a></dd>
<dt><b>$isHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isHTML">DOMDocumentWrapper::$isHTML</a></dd>
<dt><b>$isXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isXHTML">DOMDocumentWrapper::$isXHTML</a></dd>
<dt><b>$isXML</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$isXML">DOMDocumentWrapper::$isXML</a></dd>
<dt><b>import</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodimport">DOMDocumentWrapper::import()</a></dd>
<dt><b>importAttr</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodimportAttr">DOMDocumentWrapper::importAttr()</a></dd>
<dt><b>inArray</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodinArray">phpQuery::inArray()</a></dd>
<dt><b>index</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodindex">phpQueryObject::index()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>insert</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodinsert">phpQueryObject::insert()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Various insert scenarios.</dd>
<dt><b>insertAfter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodinsertAfter">phpQueryObject::insertAfter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>insertBefore</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodinsertBefore">phpQueryObject::insertBefore()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>is</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodis">phpQueryObject::is()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>isChar</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisChar">phpQueryObject::isChar()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Determines if $char is really a char.</dd>
<dt><b>isDocumentFragmentHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentHTML">DOMDocumentWrapper::isDocumentFragmentHTML()</a></dd>
<dt><b>isDocumentFragmentXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentXHTML">DOMDocumentWrapper::isDocumentFragmentXHTML()</a></dd>
<dt><b>isDocumentFragmentXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentXML">DOMDocumentWrapper::isDocumentFragmentXML()</a></dd>
<dt><b>isFunction</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodisFunction">phpQuery::isFunction()</a></dd>
<dt><b>isHTML</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisHTML">phpQueryObject::isHTML()</a></dd>
<dt><b>isMarkup</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodisMarkup">phpQuery::isMarkup()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Checks if $input is HTML string, which has to start with '&lt;'.</dd>
<dt><b>isRegexp</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisRegexp">phpQueryObject::isRegexp()</a></dd>
<dt><b>isRoot</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisRoot">phpQueryObject::isRoot()</a></dd>
<dt><b>issetGlobal</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodissetGlobal">phpQueryEvents::issetGlobal()</a></dd>
<dt><b>isXHTML</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisXHTML">phpQueryObject::isXHTML()</a></dd>
<dt><b>isXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisXHTML">DOMDocumentWrapper::isXHTML()</a></dd>
<dt><b>isXML</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodisXML">phpQueryObject::isXML()</a></dd>
<dt><b>isXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodisXML">DOMDocumentWrapper::isXML()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="k"></a>
<div>
<h2>k</h2>
<dl>
<dt><b>key</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodkey">phpQueryObject::key()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="l"></a>
<div>
<h2>l</h2>
<dl>
<dt><b>$lastModified</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$lastModified">phpQuery::$lastModified</a></dd>
<dt><b>length</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodlength">phpQueryObject::length()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>load</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodload">DOMDocumentWrapper::load()</a></dd>
<dt><b>load</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodload">phpQueryObject::load()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>loadDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodloadDocument">phpQuery::loadDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Reuses existing DOMDocument object.</dd>
<dt><b>loadMarkup</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkup">DOMDocumentWrapper::loadMarkup()</a></dd>
<dt><b>loadMarkupHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkupHTML">DOMDocumentWrapper::loadMarkupHTML()</a></dd>
<dt><b>loadMarkupReset</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkupReset">DOMDocumentWrapper::loadMarkupReset()</a></dd>
<dt><b>loadMarkupXML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodloadMarkupXML">DOMDocumentWrapper::loadMarkupXML()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="m"></a>
<div>
<h2>m</h2>
<dl>
<dt><b>makeArray</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmakeArray">phpQuery::makeArray()</a></dd>
<dt><b>map</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmap">phpQueryObject::map()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>map</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmap">phpQuery::map()</a></dd>
<dt><b>markup</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmarkup">phpQueryObject::markup()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;jQuey difference</dd>
<dt><b>markup</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodmarkup">DOMDocumentWrapper::markup()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return document markup, starting with optional $node as root.</dd>
<dt><b>markupEvents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmarkupEvents">phpQueryObject::markupEvents()</a></dd>
<dt><b>markupFixXHTML</b></dt>
<dd>in file DOMDocumentWrapper.php, method <a href="phpQuery/DOMDocumentWrapper.html#methodmarkupFixXHTML">DOMDocumentWrapper::markupFixXHTML()</a></dd>
<dt><b>markupOuter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmarkupOuter">phpQueryObject::markupOuter()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;jQuey difference</dd>
<dt><b>markupToPHP</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmarkupToPHP">phpQuery::markupToPHP()</a></dd>
<dt><b>matchClasses</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmatchClasses">phpQueryObject::matchClasses()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>merge</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodmerge">phpQueryObject::merge()</a></dd>
<dt><b>merge</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodmerge">phpQuery::merge()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Merge 2 phpQuery objects.</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="n"></a>
<div>
<h2>n</h2>
<dl>
<dt><b>newDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocument">phpQuery::newDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates new document from markup.</dd>
<dt><b>newDocumentFile</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFile">phpQuery::newDocumentFile()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates new document from file $file.</dd>
<dt><b>newDocumentFileHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFileHTML">phpQuery::newDocumentFileHTML()</a></dd>
<dt><b>newDocumentFilePHP</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFilePHP">phpQuery::newDocumentFilePHP()</a></dd>
<dt><b>newDocumentFileXHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFileXHTML">phpQuery::newDocumentFileXHTML()</a></dd>
<dt><b>newDocumentFileXML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentFileXML">phpQuery::newDocumentFileXML()</a></dd>
<dt><b>newDocumentHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentHTML">phpQuery::newDocumentHTML()</a></dd>
<dt><b>newDocumentPHP</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentPHP">phpQuery::newDocumentPHP()</a></dd>
<dt><b>newDocumentXHTML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentXHTML">phpQuery::newDocumentXHTML()</a></dd>
<dt><b>newDocumentXML</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodnewDocumentXML">phpQuery::newDocumentXML()</a></dd>
<dt><b>newInstance</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnewInstance">phpQueryObject::newInstance()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns new instance of actual class.</dd>
<dt><b>next</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnext">phpQueryObject::next()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Double-function method.</dd>
<dt><b>nextAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnextAll">phpQueryObject::nextAll()</a></dd>
<dt><b>not</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodnot">phpQueryObject::not()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="o"></a>
<div>
<h2>o</h2>
<dl>
<dt><b>$originalTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$originalTarget">DOMEvent::$originalTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;The original target of the event, before any retargetings (Mozilla-specific).</dd>
<dt><b>offsetExists</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetExists">phpQueryObject::offsetExists()</a></dd>
<dt><b>offsetGet</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetGet">phpQueryObject::offsetGet()</a></dd>
<dt><b>offsetSet</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetSet">phpQueryObject::offsetSet()</a></dd>
<dt><b>offsetUnset</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodoffsetUnset">phpQueryObject::offsetUnset()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="p"></a>
<div>
<h2>p</h2>
<dl>
<dt><b>$params</b></dt>
<dd>in file Callback.php, variable <a href="phpQuery/Callback.html#var$params">Callback::$params</a></dd>
<dt><b>$plugins</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$plugins">phpQuery::$plugins</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Static namespace for plugins.</dd>
<dt><b>$pluginsLoaded</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$pluginsLoaded">phpQuery::$pluginsLoaded</a><br>&nbsp;&nbsp;&nbsp;&nbsp;List of loaded plugins.</dd>
<dt><b>$pluginsMethods</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$pluginsMethods">phpQuery::$pluginsMethods</a></dd>
<dt><b>$pluginsStaticMethods</b></dt>
<dd>in file phpQuery.php, variable <a href="phpQuery/phpQuery.html#var$pluginsStaticMethods">phpQuery::$pluginsStaticMethods</a></dd>
<dt><b>$previous</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$previous">phpQueryObject::$previous</a></dd>
<dt><b>param</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodparam">phpQuery::param()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>param</b></dt>
<dd>in file Callback.php, method <a href="phpQuery/Callback.html#methodparam">Callback::param()</a></dd>
<dt><b>parent</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodparent">phpQueryObject::parent()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>parents</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodparents">phpQueryObject::parents()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>parseJSON</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodparseJSON">phpQuery::parseJSON()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Parses JSON into proper PHP type.</dd>
<dt><b>parseSelector</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodparseSelector">phpQueryObject::parseSelector()</a></dd>
<dt><b>php</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodphp">phpQuery::php()</a></dd>
<dt><b>php</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodphp">phpQueryObject::php()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Just like html(), but returns markup with VALID (dangerous) PHP tags.</dd>
<dt><b>phpQuery</b></dt>
<dd>in file phpQuery.php, class <a href="phpQuery/phpQuery.html">phpQuery</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Static namespace for phpQuery functions.</dd>
<dt><b>phpQuery.php</b></dt>
<dd>procedural page <a href="phpQuery/_phpQuery.php.html">phpQuery.php</a></dd>
<dt><b>phpQueryEvents</b></dt>
<dd>in file phpQueryEvents.php, class <a href="phpQuery/phpQueryEvents.html">phpQueryEvents</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Event handling class.</dd>
<dt><b>phpQueryEvents.php</b></dt>
<dd>procedural page <a href="phpQuery/_phpQueryEvents.php.html">phpQueryEvents.php</a></dd>
<dt><b>phpQueryObject</b></dt>
<dd>in file phpQueryObject.php, class <a href="phpQuery/phpQueryObject.html">phpQueryObject</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Class representing phpQuery objects.</dd>
<dt><b>phpQueryObject.php</b></dt>
<dd>procedural page <a href="phpQuery/_phpQueryObject.php.html">phpQueryObject.php</a></dd>
<dt><b>phpQueryPlugins</b></dt>
<dd>in file phpQuery.php, class <a href="phpQuery/phpQueryPlugins.html">phpQueryPlugins</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Plugins static namespace class.</dd>
<dt><b>phpToMarkup</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodphpToMarkup">phpQuery::phpToMarkup()</a></dd>
<dt><b>plugin</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodplugin">phpQueryObject::plugin()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>plugin</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodplugin">phpQuery::plugin()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Extend phpQuery with $class from $file.</dd>
<dt><b>post</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodpost">phpQuery::post()</a></dd>
<dt><b>pq</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodpq">phpQuery::pq()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Multi-purpose function.</dd>
<dt><b>pq</b></dt>
<dd>in file phpQuery.php, function <a href="phpQuery/_phpQuery.php.html#functionpq">pq()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Shortcut to phpQuery::pq($arg1, $context) Chainable.</dd>
<dt><b>prepend</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprepend">phpQueryObject::prepend()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prependPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprependPHP">phpQueryObject::prependPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prependTo</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprependTo">phpQueryObject::prependTo()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prev</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprev">phpQueryObject::prev()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>prevAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodprevAll">phpQueryObject::prevAll()</a></dd>
<dt><b>preventDefault</b></dt>
<dd>in file DOMEvent.php, method <a href="phpQuery/DOMEvent.html#methodpreventDefault">DOMEvent::preventDefault()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Cancels the event (if it is cancelable).</dd>
<dt><b>pseudoClasses</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodpseudoClasses">phpQueryObject::pseudoClasses()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="r"></a>
<div>
<h2>r</h2>
<dl>
<dt><b>$relatedTarget</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$relatedTarget">DOMEvent::$relatedTarget</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Identifies a secondary target for the event.</dd>
<dt><b>$root</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$root">DOMDocumentWrapper::$root</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Document root, by default equals to document itself.</dd>
<dt><b>$root</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$root">phpQueryObject::$root</a></dd>
<dt><b>$runDefault</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$runDefault">DOMEvent::$runDefault</a></dd>
<dt><b>remove</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodremove">phpQueryObject::remove()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>remove</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodremove">phpQueryEvents::remove()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>removeAttr</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodremoveAttr">phpQueryObject::removeAttr()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>removeClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodremoveClass">phpQueryObject::removeClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>replaceAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreplaceAll">phpQueryObject::replaceAll()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>replaceWith</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreplaceWith">phpQueryObject::replaceWith()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>replaceWithPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreplaceWithPHP">phpQueryObject::replaceWithPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>reverse</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodreverse">phpQueryObject::reverse()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>rewind</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodrewind">phpQueryObject::rewind()</a></dd>
<dt><b>runQuery</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodrunQuery">phpQueryObject::runQuery()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="s"></a>
<div>
<h2>s</h2>
<dl>
<dt><b>selectDocument</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodselectDocument">phpQuery::selectDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Sets default document to $id. Document has to be loaded prior to using this method.</dd>
<dt><b>serialize</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodserialize">phpQueryObject::serialize()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>serializeArray</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodserializeArray">phpQueryObject::serializeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>setNode</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodsetNode">phpQueryEvents::setNode()</a></dd>
<dt><b>show</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodshow">phpQueryObject::show()</a></dd>
<dt><b>siblings</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodsiblings">phpQueryObject::siblings()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>size</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodsize">phpQueryObject::size()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>slice</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodslice">phpQueryObject::slice()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>stack</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodstack">phpQueryObject::stack()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Attribute method.</dd>
<dt><b>stackIsRoot</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodstackIsRoot">phpQueryObject::stackIsRoot()</a></dd>
<dt><b>stopPropagation</b></dt>
<dd>in file DOMEvent.php, method <a href="phpQuery/DOMEvent.html#methodstopPropagation">DOMEvent::stopPropagation()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Stops the propagation of events further along in the DOM.</dd>
<dt><b>submit</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodsubmit">phpQueryObject::submit()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>switchWith</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodswitchWith">phpQueryObject::switchWith()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="t"></a>
<div>
<h2>t</h2>
<dl>
<dt><b>$target</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$target">DOMEvent::$target</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a reference to the target to which the event was originally dispatched.</dd>
<dt><b>$timeStamp</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$timeStamp">DOMEvent::$timeStamp</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the time that the event was created.</dd>
<dt><b>$type</b></dt>
<dd>in file DOMEvent.php, variable <a href="phpQuery/DOMEvent.html#var$type">DOMEvent::$type</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the event (case-insensitive).</dd>
<dt><b>text</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtext">phpQueryObject::text()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return joined text content.</dd>
<dt><b>toggleClass</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtoggleClass">phpQueryObject::toggleClass()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>toJSON</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodtoJSON">phpQuery::toJSON()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns JSON representation of $data.</dd>
<dt><b>toReference</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtoReference">phpQueryObject::toReference()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Saves actual object to $var by reference.</dd>
<dt><b>toRoot</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtoRoot">phpQueryObject::toRoot()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>trigger</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtrigger">phpQueryObject::trigger()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Trigger a type of event on every matched element.</dd>
<dt><b>trigger</b></dt>
<dd>in file phpQueryEvents.php, method <a href="phpQuery/phpQueryEvents.html#methodtrigger">phpQueryEvents::trigger()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Trigger a type of event on every matched element.</dd>
<dt><b>triggerHandler</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodtriggerHandler">phpQueryObject::triggerHandler()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.</dd>
<dt><b>trim</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodtrim">phpQuery::trim()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="u"></a>
<div>
<h2>u</h2>
<dl>
<dt><b>unbind</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodunbind">phpQueryObject::unbind()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>unique</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodunique">phpQuery::unique()</a></dd>
<dt><b>unloadDocument</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodunloadDocument">phpQueryObject::unloadDocument()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Unloads whole document from memory.</dd>
<dt><b>unloadDocuments</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodunloadDocuments">phpQuery::unloadDocuments()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Unloades all or specified document from memory.</dd>
<dt><b>unQuote</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodunQuote">phpQueryObject::unQuote()</a></dd>
<dt><b>unsafePHPTags</b></dt>
<dd>in file phpQuery.php, method <a href="phpQuery/phpQuery.html#methodunsafePHPTags">phpQuery::unsafePHPTags()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Parses phpQuery object or HTML result against PHP tags and makes them active.</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="v"></a>
<div>
<h2>v</h2>
<dl>
<dt><b>$valid</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$valid">phpQueryObject::$valid</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Iterator interface helper</dd>
<dt><b>val</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodval">phpQueryObject::val()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return form element value.</dd>
<dt><b>valid</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodvalid">phpQueryObject::valid()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="w"></a>
<div>
<h2>w</h2>
<dl>
<dt><b>whois</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwhois">phpQueryObject::whois()</a></dd>
<dt><b>wrap</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrap">phpQueryObject::wrap()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapAll</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapAll">phpQueryObject::wrapAll()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapAllOld</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapAllOld">phpQueryObject::wrapAllOld()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapAllPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapAllPHP">phpQueryObject::wrapAllPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapInner</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapInner">phpQueryObject::wrapInner()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapInnerPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapInnerPHP">phpQueryObject::wrapInnerPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
<dt><b>wrapPHP</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodwrapPHP">phpQueryObject::wrapPHP()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enter description here...</dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<hr />
<a name="x"></a>
<div>
<h2>x</h2>
<dl>
<dt><b>$xpath</b></dt>
<dd>in file DOMDocumentWrapper.php, variable <a href="phpQuery/DOMDocumentWrapper.html#var$xpath">DOMDocumentWrapper::$xpath</a></dd>
<dt><b>$xpath</b></dt>
<dd>in file phpQueryObject.php, variable <a href="phpQuery/phpQueryObject.html#var$xpath">phpQueryObject::$xpath</a><br>&nbsp;&nbsp;&nbsp;&nbsp;XPath interface.</dd>
<dt><b>xml</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodxml">phpQueryObject::xml()</a></dd>
<dt><b>xmlOuter</b></dt>
<dd>in file phpQueryObject.php, method <a href="phpQuery/phpQueryObject.html#methodxmlOuter">phpQueryObject::xmlOuter()</a></dd>
</dl>
</div>
<a href="elementindex_phpQuery.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,89 @@
<html>
<head>
<title>phpDocumentor Parser Errors and Warnings</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 />
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<a href="#Post-parsing">Post-parsing</a><br>
<a href="#DOMDocumentWrapper.php">DOMDocumentWrapper.php</a><br>
<a href="#DOMEvent.php">DOMEvent.php</a><br>
<a href="#phpQuery.php">phpQuery.php</a><br>
<a href="#phpQueryEvents.php">phpQueryEvents.php</a><br>
<a href="#phpQueryObject.php">phpQueryObject.php</a><br>
<a name="Callback.php"></a>
<h1>Callback.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 7</b> - no @package tag was used in a DocBlock for class Callback<br>
<b>Warning on line 26</b> - no @package tag was used in a DocBlock for class CallbackReference<br>
<b>Warning on line 37</b> - File "/home/bob/workspace/phpQuery/phpQuery/Callback.php" has no page-level DocBlock, use @package in the first DocBlock to create one<br>
<b>Warning on line 37</b> - no @package tag was used in a DocBlock for class CallbackParam<br>
<a name="DOMDocumentWrapper.php"></a>
<h1>DOMDocumentWrapper.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 11</b> - DocBlock would be page-level, but precedes class "DOMDocumentWrapper", use another DocBlock to document the file<br>
<a name="DOMEvent.php"></a>
<h1>DOMEvent.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 10</b> - DocBlock would be page-level, but precedes class "DOMEvent", use another DocBlock to document the file<br>
<a name="phpQuery.php"></a>
<h1>phpQuery.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 16</b> - Page-level DocBlock precedes "define DOMDOCUMENT", use another DocBlock to document the source element<br>
<b>Warning on line 897</b> - Unknown tag "@protected" used<br>
<h2>Errors:</h2><br>
<b>Error on line 1013</b> - DocBlock has multiple @package tags, illegal. ignoring additional tag "@package phpQuery"<br>
<a name="phpQueryEvents.php"></a>
<h1>phpQueryEvents.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 8</b> - DocBlock would be page-level, but precedes class "phpQueryEvents", use another DocBlock to document the file<br>
<a name="phpQueryObject.php"></a>
<h1>phpQueryObject.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 13</b> - DocBlock would be page-level, but precedes class "phpQueryObject", use another DocBlock to document the file<br>
<b>Warning on line 1580</b> - Unknown tag "@testme" used<br>
<b>Warning on line 2188</b> - Unknown tag "@testme" used<br>
<h2>Errors:</h2><br>
<b>Error on line 2447</b> - @access was passed neither "public" nor "private." Was passed: "private
todo refactor to stackcontainsnode"<br>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:30 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,81 @@
<html>
<head>
<title>Generated Documentation</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">
<div align="center"><h1>Generated Documentation</h1></div>
<b>Welcome to phpQuery!</b><br />
<br />
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.2</a><br />
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,81 @@
<html>
<head>
<title>Generated Documentation</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">
<div align="center"><h1>Generated Documentation</h1></div>
<b>Welcome to phpQuery!</b><br />
<br />
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.2</a><br />
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

View File

@@ -0,0 +1,195 @@
.php {
padding: 1em;
}
.php-src { font-family: 'Courier New', Courier, monospace; font-weight: normal; }
body
{
color: #000000;
background-color: #ffffff;
background-image: url("background.png");
background-repeat: repeat-y;
font-family: tahoma, verdana, arial, sans-serif;
font-size: 10pt;
margin: 0;
padding: 0;
}
a
{
color: #000099;
background-color: transparent;
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}
a.menu
{
color: #ffffff;
background-color: transparent;
}
td
{
font-size: 10pt;
}
td.header_top
{
color: #ffffff;
background-color: #9999cc;
font-size: 16pt;
font-weight: bold;
text-align: right;
padding: 10px;
}
td.header_line
{
color: #ffffff;
background-color: #333366;
}
td.header_menu
{
color: #ffffff;
background-color: #666699;
font-size: 8pt;
text-align: right;
padding: 2px;
padding-right: 5px;
}
td.menu
{
padding: 2px;
padding-left: 5px;
}
td.code_border
{
color: #000000;
background-color: #c0c0c0;
}
td.code
{
color: #000000;
background-color: #f0f0f0;
}
td.type
{
font-style: italic;
}
div.credit
{
font-size: 8pt;
text-align: center;
}
div.package
{
padding-left: 5px;
}
div.tags
{
padding-left: 15px;
}
div.function
{
padding-left: 15px;
}
div.top
{
font-size: 8pt;
}
div.warning
{
color: #ff0000;
background-color: transparent;
}
div.description
{
padding-left: 15px;
}
hr
{
height: 1px;
border-style: solid;
border-color: #c0c0c0;
margin-top: 10px;
margin-bottom: 10px;
}
span.smalllinenumber
{
font-size: 8pt;
}
ul {
margin-left: 0px;
padding-left: 8px;
}
/* Syntax highlighting */
.src-code { background-color: #f5f5f5; border: 1px solid #ccc9a4; padding: 0 0 0 1em; margin : 0px;
font-family: 'Courier New', Courier, monospace; font-weight: normal; }
.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; }
.src-comm { color: green; }
.src-id { }
.src-inc { color: #0000FF; }
.src-key { color: #0000FF; }
.src-num { color: #CC0000; }
.src-str { color: #66cccc; }
.src-sym { font-weight: bold; }
.src-var { }
.src-php { font-weight: bold; }
.src-doc { color: #009999 }
.src-doc-close-template { color: #0000FF }
.src-doc-coretag { color: #0099FF; font-weight: bold }
.src-doc-inlinetag { color: #0099FF }
.src-doc-internal { color: #6699cc }
.src-doc-tag { color: #0080CC }
.src-doc-template { color: #0000FF }
.src-doc-type { font-style: italic }
.src-doc-var { font-style: italic }
.tute-tag { color: #009999 }
.tute-attribute-name { color: #0000FF }
.tute-attribute-value { color: #0099FF }
.tute-entity { font-weight: bold; }
.tute-comment { font-style: italic }
.tute-inline-tag { color: #636311; font-weight: bold }
/* tutorial */
.authors { }
.author { font-style: italic; font-weight: bold }
.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal }
.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; }
.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; }
.release-info { font-size: 85%; font-style: italic; margin: 1em 0em }
.ref-title-box { }
.ref-title { }
.ref-purpose { font-style: italic; color: #666666 }
.ref-synopsis { }
.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #9999CC }
.cmd-synopsis { margin: 1em 0em }
.cmd-title { font-weight: bold }
.toc { margin-left: 2em; padding-left: 0em }

View File

@@ -0,0 +1,305 @@
<html>
<head>
<title>Docs For Class Callback</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: Callback</h1>
Source Location: /Callback.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">Callback class implementing ParamStructures, pattern similar to Currying.</div><br /><br />
<h4>Author(s):</h4>
<ul>
<li>Tobiasz Cudnik</li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
<li><a href="../phpQuery/Callback.html#var$callback">$callback</a></li>
<li><a href="../phpQuery/Callback.html#var$params">$params</a></li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../phpQuery/Callback.html#method__construct">__construct</a></li>
<li><a href="../phpQuery/Callback.html#methodparam">param</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
<td valign="top">
<h3>Child classes:</h3>
<div class="tags">
<dl>
<dt><a href="../phpQuery/CallbackReference.html">CallbackReference</a></dt>
<dd>Callback class implementing ParamStructures, pattern similar to Currying.</dd>
</dl>
</div>
</td>
</tr></table>
<hr />
<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 8]<br />
Callback class implementing ParamStructures, pattern similar to Currying.<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>link:</b>&nbsp;&nbsp;</td><td><a href="http://code.google.com/p/phpquery/wiki/Callbacks#Param_Structures">http://code.google.com/p/phpquery/wiki/Callbacks#Param_Structures</a></td>
</tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
<a name="var$callback"></a>
<p></p>
<h4>$callback = <span class="value">&nbsp;null</span></h4>
<p>[line 9]</p>
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>mixed</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$params"></a>
<p></p>
<h4>$params = <span class="value">&nbsp;null</span></h4>
<p>[line 10]</p>
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>mixed</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="method__construct"></a>
<h3>constructor __construct <span class="smalllinenumber">[line 11]</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>Callback __construct(
$callback, [
$param1 = null], [
$param2 = null], [
$param3 = null])</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>public</td>
</tr>
</table>
</div>
<br /><br />
<p>Overridden in child classes as:<br />
<dl>
<dt><a href="../phpQuery/CallbackReference.html#method__construct">CallbackReference::__construct()</a></dt>
<dd></dd>
</dl>
</p>
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$callback</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$param1</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$param2</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$param3</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodparam"></a>
<h3>method param <span class="smalllinenumber">[line 22]</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>void param(
)</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>public</td>
</tr>
</table>
</div>
<br /><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:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,122 @@
<html>
<head>
<title>Docs For Class CallbackParam</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: CallbackParam</h1>
Source Location: /Callback.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"></div><br /><br />
</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 38]<br />
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:24 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,234 @@
<html>
<head>
<title>Docs For Class CallbackReference</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: CallbackReference</h1>
Source Location: /Callback.php<br /><br />
<table width="100%" border="0">
<tr><td valign="top">
<h3><a href="#class_details">Class Overview</a></h3>
<pre><a href="../phpQuery/Callback.html">Callback</a>
|
--CallbackReference</pre><br />
<div class="description">Callback class implementing ParamStructures, pattern similar to Currying.</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/CallbackReference.html#method__construct">__construct</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
<td valign="top">
<h3>Inherited Variables</h3>
<div class="tags">
<h4>Class: <a href="../phpQuery/Callback.html">Callback</a></h4>
<dl>
<dt>
<a href="../phpQuery/Callback.html#var$callback">Callback::$callback</a>
</dt>
<dd>
</dd>
<dt>
<a href="../phpQuery/Callback.html#var$params">Callback::$params</a>
</dt>
<dd>
</dd>
</dl>
</div>
</td>
<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../phpQuery/Callback.html">Callback</a></h4>
<dl>
<dt>
<a href="../phpQuery/Callback.html#method__construct">Callback::__construct()</a>
</dt>
<dd>
</dd>
<dt>
<a href="../phpQuery/Callback.html#methodparam">Callback::param()</a>
</dt>
<dd>
</dd>
</dl>
</div>
</td>
</tr></table>
<hr />
<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 27]<br />
Callback class implementing ParamStructures, pattern similar to Currying.<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>
</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="method__construct"></a>
<h3>constructor __construct <span class="smalllinenumber">[line 34]</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>CallbackReference __construct(
$reference
&$reference, [$paramIndex
$name = null])</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>todo:</b>&nbsp;&nbsp;</td><td>implement $paramIndex; param index choose which callback param will be passed to reference</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../phpQuery/Callback.html#method__construct">Callback::__construct()</a> (parent method not documented)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">$reference&nbsp;&nbsp;</td>
<td><b>&$reference</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">$paramIndex&nbsp;&nbsp;</td>
<td><b>$name</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:24 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,582 @@
<html>
<head>
<title>Docs For Class DOMEvent</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: DOMEvent</h1>
Source Location: /DOMEvent.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">DOMEvent class.</div><br /><br />
<h4>Author(s):</h4>
<ul>
<li>Tobiasz Cudnik &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
<li><a href="../phpQuery/DOMEvent.html#var$bubbles">$bubbles</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$cancelable">$cancelable</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$currentTarget">$currentTarget</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$data">$data</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$detail">$detail</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$eventPhase">$eventPhase</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$explicitOriginalTarget">$explicitOriginalTarget</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$originalTarget">$originalTarget</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$relatedTarget">$relatedTarget</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$runDefault">$runDefault</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$target">$target</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$timeStamp">$timeStamp</a></li>
<li><a href="../phpQuery/DOMEvent.html#var$type">$type</a></li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../phpQuery/DOMEvent.html#method__construct">__construct</a></li>
<li><a href="../phpQuery/DOMEvent.html#methodpreventDefault">preventDefault</a></li>
<li><a href="../phpQuery/DOMEvent.html#methodstopPropagation">stopPropagation</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 11]<br />
DOMEvent class.<br /><br /><p>Based on</p><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 &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://developer.mozilla.org/En/DOM:event">http://developer.mozilla.org/En/DOM:event</a></td>
</tr>
<tr>
<td><b>todo:</b>&nbsp;&nbsp;</td><td>implement ArrayAccess ?</td>
</tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
<a name="var$bubbles"></a>
<p></p>
<h4>$bubbles = <span class="value">&nbsp;true</span></h4>
<p>[line 17]</p>
Returns a boolean indicating whether the event bubbles up through the DOM or not.<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$cancelable"></a>
<p></p>
<h4>$cancelable = <span class="value">&nbsp;true</span></h4>
<p>[line 23]</p>
Returns a boolean indicating whether the event is cancelable.<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$currentTarget"></a>
<p></p>
<h4>$currentTarget = <span class="value"></span></h4>
<p>[line 29]</p>
Returns a reference to the currently registered target for the event.<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$data"></a>
<p></p>
<h4>$data = <span class="value">&nbsp;null</span></h4>
<p>[line 85]</p>
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>mixed</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$detail"></a>
<p></p>
<h4>$detail = <span class="value"></span></h4>
<p>[line 36]</p>
Returns detail about the event, depending on the type of event.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://developer.mozilla.org/en/DOM/event.detail">http://developer.mozilla.org/en/DOM/event.detail</a></td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$eventPhase"></a>
<p></p>
<h4>$eventPhase = <span class="value"></span></h4>
<p>[line 45]</p>
Used to indicate which phase of the event flow is currently being evaluated.<br /><br /><p>NOT IMPLEMENTED</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://developer.mozilla.org/en/DOM/event.eventPhase">http://developer.mozilla.org/en/DOM/event.eventPhase</a></td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$explicitOriginalTarget"></a>
<p></p>
<h4>$explicitOriginalTarget = <span class="value"></span></h4>
<p>[line 53]</p>
The explicit original target of the event (Mozilla-specific).<br /><br /><p>NOT IMPLEMENTED</p><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$originalTarget"></a>
<p></p>
<h4>$originalTarget = <span class="value"></span></h4>
<p>[line 61]</p>
The original target of the event, before any retargetings (Mozilla-specific).<br /><br /><p>NOT IMPLEMENTED</p><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$relatedTarget"></a>
<p></p>
<h4>$relatedTarget = <span class="value"></span></h4>
<p>[line 67]</p>
Identifies a secondary target for the event.<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$runDefault"></a>
<p></p>
<h4>$runDefault = <span class="value">&nbsp;true</span></h4>
<p>[line 84]</p>
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>mixed</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$target"></a>
<p></p>
<h4>$target = <span class="value"></span></h4>
<p>[line 73]</p>
Returns a reference to the target to which the event was originally dispatched.<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$timeStamp"></a>
<p></p>
<h4>$timeStamp = <span class="value"></span></h4>
<p>[line 79]</p>
Returns the time that the event was created.<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>unknown_type</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$type"></a>
<p></p>
<h4>$type = <span class="value"></span></h4>
<p>[line 83]</p>
Returns the name of the event (case-insensitive).<br /><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>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b>&nbsp;&nbsp;</td>
<td>mixed</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="method__construct"></a>
<h3>constructor __construct <span class="smalllinenumber">[line 86]</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>DOMEvent __construct(
$data)</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>public</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>$data</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodpreventDefault"></a>
<h3>method preventDefault <span class="smalllinenumber">[line 97]</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>void preventDefault(
)</code>
</td></tr></table>
</td></tr></table><br />
Cancels the event (if it is cancelable).<br /><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>public</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodstopPropagation"></a>
<h3>method stopPropagation <span class="smalllinenumber">[line 104]</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>void stopPropagation(
)</code>
</td></tr></table>
</td></tr></table><br />
Stops the propagation of events further along in the DOM.<br /><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>public</td>
</tr>
</table>
</div>
<br /><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:25 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,99 @@
<html>
<head>
<title>Docs for page Callback.php</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>Procedural File: Callback.php</h1>
Source Location: /Callback.php<br /><br />
<br>
<br>
<div class="contents">
<h2>Classes:</h2>
<dt><a href="../phpQuery/Callback.html">Callback</a></dt>
<dd>Callback class implementing ParamStructures, pattern similar to Currying.</dd>
<dt><a href="../phpQuery/CallbackReference.html">CallbackReference</a></dt>
<dd>Callback class implementing ParamStructures, pattern similar to Currying.</dd>
<dt><a href="../phpQuery/CallbackParam.html">CallbackParam</a></dt>
<dd></dd>
</div><br /><br />
<h2>Page Details:</h2>
<br /><br />
<br /><br />
<br /><br />
<br />
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:23 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,114 @@
<html>
<head>
<title>Docs for page DOMDocumentWrapper.php</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/>
x<br/>
<p class="foo">
dasdasdsa
</p>
<foooo>
<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>
</foooo>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0">
<tr>
<td valign="top">
<h1>Procedural File: DOMDocumentWrapper.php</h1>
Source Location: /DOMDocumentWrapper.php<br/><br/>
<br>
<br>
<div class="contents">
<h2>Classes:</h2>
<dt><a href="../phpQuery/DOMDocumentWrapper.html">DOMDocumentWrapper</a></dt>
<dd>DOMDocumentWrapper class simplifies work with DOMDocument.</dd>
</div>
<br/><br/>
<h2>Page Details:</h2>
<br/><br/>
<br/><br/>
<br/><br/>
<br/>
<div class="credit">
<hr/>
Documentation generated on Tue, 18 Nov 2008 19:39:24 +0100 by <a
href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<html>
<head>
<title>Docs for page DOMEvent.php</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>Procedural File: DOMEvent.php</h1>
Source Location: /DOMEvent.php<br /><br />
<br>
<br>
<div class="contents">
<h2>Classes:</h2>
<dt><a href="../phpQuery/DOMEvent.html">DOMEvent</a></dt>
<dd>DOMEvent class.</dd>
</div><br /><br />
<h2>Page Details:</h2>
<br /><br />
<br /><br />
<br /><br />
<br />
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:25 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,223 @@
<html>
<head>
<title>Docs for page phpQuery.php</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>Procedural File: phpQuery.php</h1>
Source Location: /phpQuery.php<br /><br />
<br>
<br>
<div class="contents">
<h2>Classes:</h2>
<dt><a href="../phpQuery/phpQuery.html">phpQuery</a></dt>
<dd>Static namespace for phpQuery functions.</dd>
<dt><a href="../phpQuery/phpQueryPlugins.html">phpQueryPlugins</a></dt>
<dd>Plugins static namespace class.</dd>
</div><br /><br />
<h2>Page Details:</h2>
phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library.<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 &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</td>
</tr>
<tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>0.9.5 beta3</td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://jquery.com/">http://jquery.com/</a></td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://phpquery-library.blogspot.com/">http://phpquery-library.blogspot.com/</a></td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://code.google.com/p/phpquery/">http://code.google.com/p/phpquery/</a></td>
</tr>
<tr>
<td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Includes:</h4>
<div class="tags">
require_once(dirname(__FILE__).'/phpQueryObject.php') [line 25]<br />
require_once(dirname(__FILE__).'/Callback.php') [line 24]<br />
require_once(dirname(__FILE__).'/DOMEvent.php') [line 21]<br />
require_once(dirname(__FILE__).'/bootstrap.php') [line 1025]<br />
require_once(dirname(__FILE__).'/compat/mbstring.php') [line 26]<br />
require_once(dirname(__FILE__).'/DOMDocumentWrapper.php') [line 22]<br />
require_once(dirname(__FILE__).'/phpQueryEvents.php') [line 23]<br />
</div>
<br /><br />
<br /><br />
<hr />
<a name="defineDOMDOCUMENT"></a>
<h3>DOMDOCUMENT <span class="smalllinenumber">[line 17]</span></h3>
<div class="tags">
<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>DOMDOCUMENT = 'DOMDocument'</code>
</td></tr></table>
</td></tr></table>
<br />
</div>
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
<hr />
<a name="defineDOMELEMENT"></a>
<h3>DOMELEMENT <span class="smalllinenumber">[line 18]</span></h3>
<div class="tags">
<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>DOMELEMENT = 'DOMElement'</code>
</td></tr></table>
</td></tr></table>
<br />
</div>
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
<hr />
<a name="defineDOMNODE"></a>
<h3>DOMNODE <span class="smalllinenumber">[line 20]</span></h3>
<div class="tags">
<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>DOMNODE = 'DOMNode'</code>
</td></tr></table>
</td></tr></table>
<br />
</div>
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
<hr />
<a name="defineDOMNODELIST"></a>
<h3>DOMNODELIST <span class="smalllinenumber">[line 19]</span></h3>
<div class="tags">
<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>DOMNODELIST = 'DOMNodeList'</code>
</td></tr></table>
</td></tr></table>
<br />
</div>
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
<br />
<hr />
<a name="functionpq"></a>
<h3>pq <span class="smalllinenumber">[line 1008]</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><a href="../phpQuery/phpQueryObject.html">phpQueryObject</a>|queryTemplatesFetch|queryTemplatesParse|queryTemplatesPickup pq(
$arg1, [ $context = null])</code>
</td></tr></table>
</td></tr></table><br />
Shortcut to phpQuery::pq($arg1, $context) Chainable.<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 &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</td>
</tr>
<tr>
<td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../phpQuery/phpQuery.html#methodpq">phpQuery::pq()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters</h4>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$arg1</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$context</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
</table>
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
</div>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:25 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<html>
<head>
<title>Docs for page phpQueryEvents.php</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>Procedural File: phpQueryEvents.php</h1>
Source Location: /phpQueryEvents.php<br /><br />
<br>
<br>
<div class="contents">
<h2>Classes:</h2>
<dt><a href="../phpQuery/phpQueryEvents.html">phpQueryEvents</a></dt>
<dd>Event handling class.</dd>
</div><br /><br />
<h2>Page Details:</h2>
<br /><br />
<br /><br />
<br /><br />
<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>

View File

@@ -0,0 +1,95 @@
<html>
<head>
<title>Docs for page phpQueryObject.php</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>Procedural File: phpQueryObject.php</h1>
Source Location: /phpQueryObject.php<br /><br />
<br>
<br>
<div class="contents">
<h2>Classes:</h2>
<dt><a href="../phpQuery/phpQueryObject.html">phpQueryObject</a></dt>
<dd>Class representing phpQuery objects.</dd>
</div><br /><br />
<h2>Page Details:</h2>
<br /><br />
<br /><br />
<br /><br />
<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>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,473 @@
<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>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,192 @@
<html>
<head>
<title>Docs For Class phpQueryPlugins</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: phpQueryPlugins</h1>
Source Location: /phpQuery.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">Plugins static namespace class.</div><br /><br />
<h4>Author(s):</h4>
<ul>
<li>Tobiasz Cudnik &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../phpQuery/phpQueryPlugins.html#method__call">__call</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 983]<br />
Plugins static namespace 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 &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</td>
</tr>
<tr>
<td><b>todo:</b>&nbsp;&nbsp;</td><td>move plugin methods here (as statics)</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="method__call"></a>
<h3>method __call <span class="smalllinenumber">[line 984]</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>void __call(
$method,
$args)</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>public</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>$method</b>&nbsp;&nbsp;</td>
<td></td>
</tr>
<tr>
<td class="type">&nbsp;&nbsp;</td>
<td><b>$args</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>

View File

@@ -0,0 +1,161 @@
<html>
<head>
<title>Todo List</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 />
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<div align="center"><h1>Todo List</h1></div>
<h2>phpQuery</h2>
<h3><a href="phpQuery/DOMDocumentWrapper.html#var$contentType">DOMDocumentWrapper::$contentType</a></h3>
<ul>
<li>Rewrite as method and quess if null.</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodattrAppend">phpQueryObject::attrAppend()</a></h3>
<ul>
<li>use attr() function (encoding issues etc).</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodattrPHP">phpQueryObject::attrPHP()</a></h3>
<ul>
<li>check CDATA ???</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodattrPrepend">phpQueryObject::attrPrepend()</a></h3>
<ul>
<li>use attr() function (encoding issues etc).</li>
</ul>
<h3><a href="phpQuery/phpQuery.html#methodcreateDocumentWrapper">phpQuery::createDocumentWrapper()</a></h3>
<ul>
<li>support passing DOMDocument object from self::loadDocument</li>
<li>support PHP tags in input</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodcss">phpQueryObject::css()</a></h3>
<ul>
<li></li>
</ul>
<h3><a href="phpQuery/DOMDocumentWrapper.html">DOMDocumentWrapper</a></h3>
<ul>
<li>check XML catalogs compatibility</li>
</ul>
<h3><a href="phpQuery/DOMEvent.html">DOMEvent</a></h3>
<ul>
<li>implement ArrayAccess ?</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodend">phpQueryObject::end()</a></h3>
<ul>
<li>$level</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodgetString">phpQueryObject::getString()</a></h3>
<ul>
<li>implement callbacks</li>
<li>maybe other name...</li>
<li>return only arrays ?</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodgetStrings">phpQueryObject::getStrings()</a></h3>
<ul>
<li>implement callbacks</li>
<li>maybe other name...</li>
<li>return only arrays ?</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodhide">phpQueryObject::hide()</a></h3>
<ul>
<li></li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodisChar">phpQueryObject::isChar()</a></h3>
<ul>
<li>rewrite me to charcode range ! ;)</li>
</ul>
<h3><a href="phpQuery/phpQuery.html#methodisMarkup">phpQuery::isMarkup()</a></h3>
<ul>
<li>still used ?</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodload">phpQueryObject::load()</a></h3>
<ul>
<li>Support $selector</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodmap">phpQueryObject::map()</a></h3>
<ul>
<li>add $scope and $args as in each() ???</li>
</ul>
<h3><a href="phpQuery/phpQuery.html#methodmerge">phpQuery::merge()</a></h3>
<ul>
<li>node lists, phpQueryObject</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodnextAll">phpQueryObject::nextAll()</a></h3>
<ul>
<li>FIXME: returns source elements insted of next siblings</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodphp">phpQueryObject::php()</a></h3>
<ul>
<li>support returning markup with PHP tags when called without param</li>
</ul>
<h3><a href="phpQuery/phpQueryPlugins.html">phpQueryPlugins</a></h3>
<ul>
<li>move plugin methods here (as statics)</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodprependPHP">phpQueryObject::prependPHP()</a></h3>
<ul>
<li>accept many arguments, which are joined, arrays maybe also</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodprevAll">phpQueryObject::prevAll()</a></h3>
<ul>
<li></li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodpseudoClasses">phpQueryObject::pseudoClasses()</a></h3>
<ul>
<li>create API for classes with pseudoselectors</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodreplaceAll">phpQueryObject::replaceAll()</a></h3>
<ul>
<li>this works ?</li>
</ul>
<h3><a href="phpQuery/phpQueryObject.html#methodshow">phpQueryObject::show()</a></h3>
<ul>
<li></li>
</ul>
<h3><a href="phpQuery/CallbackReference.html#method__construct">CallbackReference::__construct()</a></h3>
<ul>
<li>implement $paramIndex; param index choose which callback param will be passed to reference</li>
</ul>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Nov 2008 19:39:30 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,68 @@
#!/usr/bin/env php
<?php
if (!isset($argv[1]) || $argv[1] == 'help' || $argv[1] == '--help' || $argv[1] == '-h')
die("Usage:
phpquery URL --method1 arg1 arg2 argN --method2 arg1 arg2 argN ...
Example:
phpquery 'http://localhost' --find 'div > p' --contents
Pipe:
cat index.html | phpquery --find 'div > p' --contents
Docs:
http://code.google.com/p/phpquery/wiki/\n");
/* ALL-IN-ONE-SECTION-START */
set_include_path(get_include_path()
.':'.'/usr/lib/phpquery'
.':'.realpath(dirname(__FILE__).'/../phpQuery')
);
require_once('phpQuery.php');
/* ALL-IN-ONE-SECTION-END */
//phpQuery::$debug = true;
//var_dump($argv);
if (isset($argv[1]) && parse_url($argv[1], PHP_URL_HOST)) {
if (@include_once('Zend/Http/Client.php')) {
// use Ajax if possible
phpQuery::ajaxAllowURL($argv[1]);
// TODO support contentType passing (from response headers)
phpQuery::get($argv[1],
new Callback('phpQueryCli', new CallbackParam, array_slice($argv, 2))
);
} else {
// use file wrapper when no Ajax
phpQueryCli(file_get_contents($argv[1]), array_slice($argv, 2));
}
} else if (feof(STDIN) === false) {
$markup = '';
while(!feof(STDIN))
$markup .= fgets(STDIN, 4096);
phpQueryCli($markup, array_slice($argv, 1));
} else {
phpQueryCli($argv[1], array_slice($argv, 2));
}
function phpQueryCli($markup, $callQueue) {
$pq = phpQuery::newDocument($markup);
$method = null;
$params = array();
foreach($callQueue as $param) {
if (strpos($param, '--') === 0) {
if ($method) {
$pq = call_user_func_array(array($pq, $method), $params);
}
$method = substr($param, 2); // delete --
$params = array();
} else {
$param = str_replace('\n', "\n", $param);
$params[] = strtolower($param) == 'null'
? null
: $param;
}
}
if ($method)
$pq = call_user_func_array(array($pq, $method), $params);
if (is_array($pq))
foreach($pq as $v)
print $v;
else
print $pq."\n";
//var_dump($pq);
}
?>

View File

@@ -0,0 +1,31 @@
{
"name": "electrolinux/phpquery"
,"type": "library"
,"description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library"
,"version": "1.0-rc1"
,"keywords": []
,"homepage": "http://code.google.com/p/phpquery/"
,"license": "MIT"
,"authors": [
{
"name": "didier Belot"
,"role": "Packager, maintainer"
,"homepage": "https://github.com/electrolinux/phpquery"
}
,{
"name": "Tobiasz Cudnik"
,"email": "tobiasz.cudnik@gmail.com"
,"homepage": "https://github.com/TobiaszCudnik"
,"role": "Developer"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"classmap": ["phpQuery/"]
}
}

View File

@@ -0,0 +1,58 @@
<?php
require('phpQuery/phpQuery.php');
// INITIALIZE IT
// phpQuery::newDocumentHTML($markup);
// phpQuery::newDocumentXML();
// phpQuery::newDocumentFileXHTML('test.html');
// phpQuery::newDocumentFilePHP('test.php');
// phpQuery::newDocument('test.xml', 'application/rss+xml');
// this one defaults to text/html in utf8
$doc = phpQuery::newDocument('<div/>');
// FILL IT
// array syntax works like ->find() here
$doc['div']->append('<ul></ul>');
// array set changes inner html
$doc['div ul'] = '<li>1</li> <li>2</li> <li>3</li>';
// MANIPULATE IT
$li = null;
// almost everything can be a chain
$doc['ul > li']
->addClass('my-new-class')
->filter(':last')
->addClass('last-li')
// save it anywhere in the chain
->toReference($li);
// SELECT DOCUMENT
// pq(); is using selected document as default
phpQuery::selectDocument($doc);
// documents are selected when created or by above method
// query all unordered lists in last selected document
$ul = pq('ul')->insertAfter('div');
// ITERATE IT
// all direct LIs from $ul
foreach($ul['> li'] as $li) {
// iteration returns PLAIN dom nodes, NOT phpQuery objects
$tagName = $li->tagName;
$childNodes = $li->childNodes;
// so you NEED to wrap it within phpQuery, using pq();
pq($li)->addClass('my-second-new-class');
}
// PRINT OUTPUT
// 1st way
print phpQuery::getDocument($doc->getDocumentID());
// 2nd way
print phpQuery::getDocument(pq('div')->getDocumentID());
// 3rd way
print pq('div')->getDocument();
// 4th way
print $doc->htmlOuter();
// 5th way
print $doc;
// another...
print $doc['ul'];

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery Server Plugin</title>
<script type="text/javascript" src='jquery.js'></script>
<script type="text/javascript" src='../jQueryServer.js'></script>
<script type="text/javascript">
jQuery.serverConfig.url = '/phpQuery/jQueryServer/jQueryServer.php';
function demo() {
$.server({
url: document.location.toString(),
dataType: 'json'
})
.find('li')
.client(function(response){
$.each(response, function(k, li){
$('ul').append(li);
});
});
}
$(function(){
$('ul').append('<li>above LIs will be downloaded and appended below in 2 seconds...</li>');
setTimeout(demo, 2000);
});
</script>
</head>
<body>
<div>jQuery Server Plugin demo...</div>
<ul>
<li>test1</li>
<li>test2</li>
<li>test3</li>
</ul>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,18 @@
<?php
/**
* Example of jQueryServer config file.
*
* To make it work just delete '.example' suffix.
* @var array
*/
$jQueryServerConfig = array();
// Ajax host authorization
// phpQuery::ajaxAllowHost('somehostname.com');
// phpQuery::ajaxAllowURL('http://fullurl.com/witheverything?foo=bar');
// Restrict access without referer
// $jQueryServerConfig['refererMustMatch'] = true;
// dot '.' means $_SERVER['HTTP_HOST']
// $jQueryServerConfig['allowedRefererHosts'] = array('.', 'my-other-host.com');
?>

View File

@@ -0,0 +1,201 @@
/**
* jQuery Server Plugin
*
* Server-side Ajax requests supporting jQuery manipulations
* before sending content to the browser.
*
* Example:
* $.server({url: ${URL})
* .find('.my-class')
* .client(${CALLBACK});
*
* @version 0.5.1
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
* @link http://code.google.com/p/phpquery/wiki/jQueryServer
* @link http://code.google.com/p/phpquery/
*/
jQuery.extend({
serverConfig: function() {
if (typeof jQueryServerConfig != 'undefined')
return jQueryServerConfig;
return {};
}(),
server: function(options){
// set default url
if (! jQuery.serverConfig.url)
jQuery.serverConfig.url = jQuery('script[src$=jquery.js]')
.attr('src').replace(/jquery\.js$/, '')
+'jQueryServer.php';
// this is cache object
var objectCache = {};
// dump all jQuery methods, but only once
// $.each doesn't work ?
for( var i in jQuery.fn) {
// closure to preserve loop iterator in scope
(function(){
var name = i;
// create dummy method
objectCache[name] = function(){
// create method data object
var data = {
method: name,
arguments: []
};
// collect arguments
$.each(arguments, function(k, v){
data.arguments.push(v);
});
// push data into stack
this.stack.push(data);
// preserve chain
return this;
}
})();
}
/**
* Fetches results from phpQuery.
*
* @param {Function} callback Optional. Turns on async request.
* First parameter for callback is usually an JSON array of mathed elements. Use $(result) to append it to DOM.
* It can also be a boolean value or string, depending on last method called.
*/
objectCache.client = function(success, error){
// console.log(this.stack.toSource());
// success = success || function(){
// return $result;
// };
$.ajax({
type: 'POST',
data: {data: $.toJSON(this.stack)},
async: false,
// jQuery.server.config ???
url: jQuery.serverConfig.url,
// success: function(response){
// var $result = jQuery();
// $.each(response, function(v) {
// $result.add(v);
// })
// success.call(null, $result);
// },
// success: success,
success: function(response){
if (options['dataType'] == 'json')
response = $.parseJSON(response);
success(response);
},
error: error
})
}
// replace orginal method with generated method using cache (lazy-load)
jQuery.server = function(options){
// clone cache object
var myCache = jQuery.extend({}, objectCache);
myCache.stack = [options];
return myCache;
}
// returen result from new method (only done for first call)
return jQuery.server(options);
}
});
// toJSON by Mark Gibson
if (typeof $.toJSON == 'undefined') {
(function ($) {
var m = {
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"' : '\\"',
'\\': '\\\\'
},
s = {
'array': function (x) {
var a = ['['], b, f, i, l = x.length, v;
for (i = 0; i < l; i += 1) {
v = x[i];
f = s[typeof v];
if (f) {
v = f(v);
if (typeof v == 'string') {
if (b) {
a[a.length] = ',';
}
a[a.length] = v;
b = true;
}
}
}
a[a.length] = ']';
return a.join('');
},
'boolean': function (x) {
return String(x);
},
'null': function (x) {
return "null";
},
'number': function (x) {
return isFinite(x) ? String(x) : 'null';
},
'object': function (x) {
if (x) {
if (x instanceof Array) {
return s.array(x);
}
var a = ['{'], b, f, i, v;
for (i in x) {
v = x[i];
f = s[typeof v];
if (f) {
v = f(v);
if (typeof v == 'string') {
if (b) {
a[a.length] = ',';
}
a.push(s.string(i), ':', v);
b = true;
}
}
}
a[a.length] = '}';
return a.join('');
}
return 'null';
},
'string': function (x) {
if (/["\\\x00-\x1f]/.test(x)) {
x = x.replace(/([\x00-\x1f\\"])/g, function(a, b) {
var c = m[b];
if (c) {
return c;
}
c = b.charCodeAt();
return '\\u00' +
Math.floor(c / 16).toString(16) +
(c % 16).toString(16);
});
}
return '"' + x + '"';
}
};
$.toJSON = function(v) {
var f = isNaN(v) ? s[typeof v] : s['number'];
if (f) return f(v);
};
$.parseJSON = function(v, safe) {
if (JSON)
return JSON.parse(v);
if (safe === undefined)
safe = $.parseJSON.safe;
if (safe && !/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v))
return undefined;
return eval('('+v+')');
};
$.parseJSON.safe = false;
})(jQuery);
}

View File

@@ -0,0 +1,107 @@
<?php
/**
* jQuery Server Plugin
*
* Backend class using phpQuery.
*
* @version 0.5.1
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
* @link http://code.google.com/p/phpquery/wiki/jQueryServer
* @link http://code.google.com/p/phpquery/
* @todo local files support (safe...)
* @todo respond with proper HTTP code
* @todo persistant thread support (with timeout...)
* @todo 2.0: JSON RPC - Zend_Json_Server
* @todo 2.0: XML RPC ?
*/
class jQueryServer {
public $config = array(
'allowedRefererHosts' => array('.'),
'refererMustMatch' => true,
);
public $calls = null;
public $options = null;
public $allowedHosts = null;
function __construct($data) {
$pq = null;
include_once(dirname(__FILE__).'/../phpQuery/phpQuery.php');
if (file_exists(dirname(__FILE__).'/jQueryServer.config.php')) {
include_once(dirname(__FILE__).'/jQueryServer.config.php');
if ($jQueryServerConfig)
$this->config = array_merge_recursive($this->config, $jQueryServerConfig);
}
if ($this->config['refererMustMatch']) {
foreach($this->config['allowedRefererHosts'] as $i => $host)
if ($host == '.')
$this->config['allowedRefererHosts'][$i] = $_SERVER['HTTP_HOST'];
$referer = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
$authorized = $referer
&& in_array($referer, $this->config['allowedRefererHosts']);
if (! $authorized) {
throw new Exception("Host '{$_SERVER['HTTP_REFERER']}' not authorized to make requests.");
return;
}
}
// phpQueryClass::$debug = true;
// if (! function_exists('json_decode')) {
// include_once(dirname(__FILE__).'/JSON.php');
// $this->json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
// }
// $data = $this->jsonDecode($data);
$data = phpQuery::parseJSON($data);
// load document (required for first $data element)
if (is_array($data[0]) && isset($data[0]['url'])) {
$this->options = $data[0];
$ajax = $this->options;
$this->calls = array_slice($data, 1);
$ajax['success'] = array($this, 'success');
phpQuery::ajax($ajax);
} else {
throw new Exception("URL needed to download content");
}
}
public function success($response) {
$pq = phpQuery::newDocument($response);
foreach($this->calls as $k => $r) {
// check if method exists
if (! method_exists(get_class($pq), $r['method'])) {
throw new Exception("Method '{$r['method']}' not implemented in phpQuery, sorry...");
// execute method
} else {
$pq = call_user_func_array(
array($pq, $r['method']),
$r['arguments']
);
}
}
if (! isset($this->options['dataType']))
$this->options['dataType'] = '';
switch(strtolower($this->options['dataType'])) {
case 'json':
if ( $pq instanceof PHPQUERYOBJECT ) {
$results = array();
foreach($pq as $node)
$results[] = pq($node)->htmlOuter();
print phpQuery::toJSON($results);
} else {
print phpQuery::toJSON($pq);
}
break;
default:
print $pq;
}
// output results
}
// public function jsonEncode($data) {
// return function_exists('json_encode')
// ? json_encode($data)
// : $this->json->encode($data);
// }
// public function jsonDecode($data) {
// return function_exists('json_decode')
// ? json_decode($data, true)
// : $this->json->decode($data);
// }
}
new jQueryServer($_POST['data']);
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,152 @@
<?php
interface ICallbackNamed {
function hasName();
function getName();
}
/**
* Callback class introduces currying-like pattern.
*
* Example:
* function foo($param1, $param2, $param3) {
* var_dump($param1, $param2, $param3);
* }
* $fooCurried = new Callback('foo',
* 'param1 is now statically set',
* new CallbackParam, new CallbackParam
* );
* phpQuery::callbackRun($fooCurried,
* array('param2 value', 'param3 value'
* );
*
* Callback class is supported in all phpQuery methods which accepts callbacks.
*
* @link http://code.google.com/p/phpquery/wiki/Callbacks#Param_Structures
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*
* @TODO??? return fake forwarding function created via create_function
* @TODO honor paramStructure
*/
class Callback
implements ICallbackNamed {
public $callback = null;
public $params = null;
protected $name;
public function __construct($callback, $param1 = null, $param2 = null,
$param3 = null) {
$params = func_get_args();
$params = array_slice($params, 1);
if ($callback instanceof Callback) {
// TODO implement recurention
} else {
$this->callback = $callback;
$this->params = $params;
}
}
public function getName() {
return 'Callback: '.$this->name;
}
public function hasName() {
return isset($this->name) && $this->name;
}
public function setName($name) {
$this->name = $name;
return $this;
}
// TODO test me
// public function addParams() {
// $params = func_get_args();
// return new Callback($this->callback, $this->params+$params);
// }
}
/**
* Shorthand for new Callback(create_function(...), ...);
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackBody extends Callback {
public function __construct($paramList, $code, $param1 = null, $param2 = null,
$param3 = null) {
$params = func_get_args();
$params = array_slice($params, 2);
$this->callback = create_function($paramList, $code);
$this->params = $params;
}
}
/**
* Callback type which on execution returns reference passed during creation.
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackReturnReference extends Callback
implements ICallbackNamed {
protected $reference;
public function __construct(&$reference, $name = null){
$this->reference =& $reference;
$this->callback = array($this, 'callback');
}
public function callback() {
return $this->reference;
}
public function getName() {
return 'Callback: '.$this->name;
}
public function hasName() {
return isset($this->name) && $this->name;
}
}
/**
* Callback type which on execution returns value passed during creation.
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackReturnValue extends Callback
implements ICallbackNamed {
protected $value;
protected $name;
public function __construct($value, $name = null){
$this->value =& $value;
$this->name = $name;
$this->callback = array($this, 'callback');
}
public function callback() {
return $this->value;
}
public function __toString() {
return $this->getName();
}
public function getName() {
return 'Callback: '.$this->name;
}
public function hasName() {
return isset($this->name) && $this->name;
}
}
/**
* CallbackParameterToReference can be used when we don't really want a callback,
* only parameter passed to it. CallbackParameterToReference takes first
* parameter's value and passes it to reference.
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackParameterToReference extends Callback {
/**
* @param $reference
* @TODO implement $paramIndex;
* param index choose which callback param will be passed to reference
*/
public function __construct(&$reference){
$this->callback =& $reference;
}
}
//class CallbackReference extends Callback {
// /**
// *
// * @param $reference
// * @param $paramIndex
// * @todo implement $paramIndex; param index choose which callback param will be passed to reference
// */
// public function __construct(&$reference, $name = null){
// $this->callback =& $reference;
// }
//}
class CallbackParam {}

View File

@@ -0,0 +1,679 @@
<?php
/**
* DOMDocumentWrapper class simplifies work with DOMDocument.
*
* Know bug:
* - in XHTML fragments, <br /> changes to <br clear="none" />
*
* @todo check XML catalogs compatibility
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
* @package phpQuery
*/
class DOMDocumentWrapper {
/**
* @var DOMDocument
*/
public $document;
public $id;
/**
* @todo Rewrite as method and quess if null.
* @var unknown_type
*/
public $contentType = '';
public $xpath;
public $uuid = 0;
public $data = array();
public $dataNodes = array();
public $events = array();
public $eventsNodes = array();
public $eventsGlobal = array();
/**
* @TODO iframes support http://code.google.com/p/phpquery/issues/detail?id=28
* @var unknown_type
*/
public $frames = array();
/**
* Document root, by default equals to document itself.
* Used by documentFragments.
*
* @var DOMNode
*/
public $root;
public $isDocumentFragment;
public $isXML = false;
public $isXHTML = false;
public $isHTML = false;
public $charset;
public function __construct($markup = null, $contentType = null, $newDocumentID = null) {
if (isset($markup))
$this->load($markup, $contentType, $newDocumentID);
$this->id = $newDocumentID
? $newDocumentID
: md5(microtime());
}
public function load($markup, $contentType = null, $newDocumentID = null) {
// phpQuery::$documents[$id] = $this;
$this->contentType = strtolower($contentType);
if ($markup instanceof DOMDOCUMENT) {
$this->document = $markup;
$this->root = $this->document;
$this->charset = $this->document->encoding;
// TODO isDocumentFragment
$loaded = true;
} else {
$loaded = $this->loadMarkup($markup);
}
if ($loaded) {
// $this->document->formatOutput = true;
$this->document->preserveWhiteSpace = true;
$this->xpath = new DOMXPath($this->document);
$this->afterMarkupLoad();
return true;
// remember last loaded document
// return phpQuery::selectDocument($id);
}
return false;
}
protected function afterMarkupLoad() {
if ($this->isXHTML) {
$this->xpath->registerNamespace("html", "http://www.w3.org/1999/xhtml");
}
}
protected function loadMarkup($markup) {
$loaded = false;
if ($this->contentType) {
self::debug("Load markup for content type {$this->contentType}");
// content determined by contentType
list($contentType, $charset) = $this->contentTypeToArray($this->contentType);
switch($contentType) {
case 'text/html':
phpQuery::debug("Loading HTML, content type '{$this->contentType}'");
$loaded = $this->loadMarkupHTML($markup, $charset);
break;
case 'text/xml':
case 'application/xhtml+xml':
phpQuery::debug("Loading XML, content type '{$this->contentType}'");
$loaded = $this->loadMarkupXML($markup, $charset);
break;
default:
// for feeds or anything that sometimes doesn't use text/xml
if (strpos('xml', $this->contentType) !== false) {
phpQuery::debug("Loading XML, content type '{$this->contentType}'");
$loaded = $this->loadMarkupXML($markup, $charset);
} else
phpQuery::debug("Could not determine document type from content type '{$this->contentType}'");
}
} else {
// content type autodetection
if ($this->isXML($markup)) {
phpQuery::debug("Loading XML, isXML() == true");
$loaded = $this->loadMarkupXML($markup);
if (! $loaded && $this->isXHTML) {
phpQuery::debug('Loading as XML failed, trying to load as HTML, isXHTML == true');
$loaded = $this->loadMarkupHTML($markup);
}
} else {
phpQuery::debug("Loading HTML, isXML() == false");
$loaded = $this->loadMarkupHTML($markup);
}
}
return $loaded;
}
protected function loadMarkupReset() {
$this->isXML = $this->isXHTML = $this->isHTML = false;
}
protected function documentCreate($charset, $version = '1.0') {
if (! $version)
$version = '1.0';
$this->document = new DOMDocument($version, $charset);
$this->charset = $this->document->encoding;
// $this->document->encoding = $charset;
$this->document->formatOutput = true;
$this->document->preserveWhiteSpace = true;
}
protected function loadMarkupHTML($markup, $requestedCharset = null) {
if (phpQuery::$debug)
phpQuery::debug('Full markup load (HTML): '.substr($markup, 0, 250));
$this->loadMarkupReset();
$this->isHTML = true;
if (!isset($this->isDocumentFragment))
$this->isDocumentFragment = self::isDocumentFragmentHTML($markup);
$charset = null;
$documentCharset = $this->charsetFromHTML($markup);
$addDocumentCharset = false;
if ($documentCharset) {
$charset = $documentCharset;
$markup = $this->charsetFixHTML($markup);
} else if ($requestedCharset) {
$charset = $requestedCharset;
}
if (! $charset)
$charset = phpQuery::$defaultCharset;
// HTTP 1.1 says that the default charset is ISO-8859-1
// @see http://www.w3.org/International/O-HTTP-charset
if (! $documentCharset) {
$documentCharset = 'ISO-8859-1';
$addDocumentCharset = true;
}
// Should be careful here, still need 'magic encoding detection' since lots of pages have other 'default encoding'
// Worse, some pages can have mixed encodings... we'll try not to worry about that
$requestedCharset = strtoupper($requestedCharset);
$documentCharset = strtoupper($documentCharset);
phpQuery::debug("DOC: $documentCharset REQ: $requestedCharset");
if ($requestedCharset && $documentCharset && $requestedCharset !== $documentCharset) {
phpQuery::debug("CHARSET CONVERT");
// Document Encoding Conversion
// http://code.google.com/p/phpquery/issues/detail?id=86
if (function_exists('mb_detect_encoding')) {
$possibleCharsets = array($documentCharset, $requestedCharset, 'AUTO');
$docEncoding = mb_detect_encoding($markup, implode(', ', $possibleCharsets));
if (! $docEncoding)
$docEncoding = $documentCharset; // ok trust the document
phpQuery::debug("DETECTED '$docEncoding'");
// Detected does not match what document says...
if ($docEncoding !== $documentCharset) {
// Tricky..
}
if ($docEncoding !== $requestedCharset) {
phpQuery::debug("CONVERT $docEncoding => $requestedCharset");
$markup = mb_convert_encoding($markup, $requestedCharset, $docEncoding);
$markup = $this->charsetAppendToHTML($markup, $requestedCharset);
$charset = $requestedCharset;
}
} else {
phpQuery::debug("TODO: charset conversion without mbstring...");
}
}
$return = false;
if ($this->isDocumentFragment) {
phpQuery::debug("Full markup load (HTML), DocumentFragment detected, using charset '$charset'");
$return = $this->documentFragmentLoadMarkup($this, $charset, $markup);
} else {
if ($addDocumentCharset) {
phpQuery::debug("Full markup load (HTML), appending charset: '$charset'");
$markup = $this->charsetAppendToHTML($markup, $charset);
}
phpQuery::debug("Full markup load (HTML), documentCreate('$charset')");
$this->documentCreate($charset);
\libxml_use_internal_errors(true); // This is importan because of HTML5
$return = $this->document->loadHTML($markup);
\libxml_use_internal_errors(false); // This is importan because of HTML5
if ($return)
$this->root = $this->document;
}
if ($return && ! $this->contentType)
$this->contentType = 'text/html';
return $return;
}
protected function loadMarkupXML($markup, $requestedCharset = null) {
if (phpQuery::$debug)
phpQuery::debug('Full markup load (XML): '.substr($markup, 0, 250));
$this->loadMarkupReset();
$this->isXML = true;
// check agains XHTML in contentType or markup
$isContentTypeXHTML = $this->isXHTML();
$isMarkupXHTML = $this->isXHTML($markup);
if ($isContentTypeXHTML || $isMarkupXHTML) {
self::debug('Full markup load (XML), XHTML detected');
$this->isXHTML = true;
}
// determine document fragment
if (! isset($this->isDocumentFragment))
$this->isDocumentFragment = $this->isXHTML
? self::isDocumentFragmentXHTML($markup)
: self::isDocumentFragmentXML($markup);
// this charset will be used
$charset = null;
// charset from XML declaration @var string
$documentCharset = $this->charsetFromXML($markup);
if (! $documentCharset) {
if ($this->isXHTML) {
// this is XHTML, try to get charset from content-type meta header
$documentCharset = $this->charsetFromHTML($markup);
if ($documentCharset) {
phpQuery::debug("Full markup load (XML), appending XHTML charset '$documentCharset'");
$this->charsetAppendToXML($markup, $documentCharset);
$charset = $documentCharset;
}
}
if (! $documentCharset) {
// if still no document charset...
$charset = $requestedCharset;
}
} else if ($requestedCharset) {
$charset = $requestedCharset;
}
if (! $charset) {
$charset = phpQuery::$defaultCharset;
}
if ($requestedCharset && $documentCharset && $requestedCharset != $documentCharset) {
// TODO place for charset conversion
// $charset = $requestedCharset;
}
$return = false;
if ($this->isDocumentFragment) {
phpQuery::debug("Full markup load (XML), DocumentFragment detected, using charset '$charset'");
$return = $this->documentFragmentLoadMarkup($this, $charset, $markup);
} else {
// FIXME ???
if ($isContentTypeXHTML && ! $isMarkupXHTML)
if (! $documentCharset) {
phpQuery::debug("Full markup load (XML), appending charset '$charset'");
$markup = $this->charsetAppendToXML($markup, $charset);
}
// see http://pl2.php.net/manual/en/book.dom.php#78929
// LIBXML_DTDLOAD (>= PHP 5.1)
// does XML ctalogues works with LIBXML_NONET
// $this->document->resolveExternals = true;
// TODO test LIBXML_COMPACT for performance improvement
// create document
$this->documentCreate($charset);
if (phpversion() < 5.1) {
$this->document->resolveExternals = true;
$return = phpQuery::$debug === 2
? $this->document->loadXML($markup)
: @$this->document->loadXML($markup);
} else {
/** @link http://pl2.php.net/manual/en/libxml.constants.php */
$libxmlStatic = phpQuery::$debug === 2
? LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NONET
: LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NONET|LIBXML_NOWARNING|LIBXML_NOERROR;
$return = $this->document->loadXML($markup, $libxmlStatic);
// if (! $return)
// $return = $this->document->loadHTML($markup);
}
if ($return)
$this->root = $this->document;
}
if ($return) {
if (! $this->contentType) {
if ($this->isXHTML)
$this->contentType = 'application/xhtml+xml';
else
$this->contentType = 'text/xml';
}
return $return;
} else {
throw new Exception("Error loading XML markup");
}
}
protected function isXHTML($markup = null) {
if (! isset($markup)) {
return strpos($this->contentType, 'xhtml') !== false;
}
// XXX ok ?
return strpos($markup, "<!DOCTYPE html") !== false;
// return stripos($doctype, 'xhtml') !== false;
// $doctype = isset($dom->doctype) && is_object($dom->doctype)
// ? $dom->doctype->publicId
// : self::$defaultDoctype;
}
protected function isXML($markup) {
// return strpos($markup, '<?xml') !== false && stripos($markup, 'xhtml') === false;
return strpos(substr($markup, 0, 100), '<'.'?xml') !== false;
}
protected function contentTypeToArray($contentType) {
$matches = explode(';', trim(strtolower($contentType)));
if (isset($matches[1])) {
$matches[1] = explode('=', $matches[1]);
// strip 'charset='
$matches[1] = isset($matches[1][1]) && trim($matches[1][1])
? $matches[1][1]
: $matches[1][0];
} else
$matches[1] = null;
return $matches;
}
/**
*
* @param $markup
* @return array contentType, charset
*/
protected function contentTypeFromHTML($markup) {
$matches = array();
// find meta tag
preg_match('@<meta[^>]+http-equiv\\s*=\\s*(["|\'])Content-Type\\1([^>]+?)>@i',
$markup, $matches
);
if (! isset($matches[0]))
return array(null, null);
// get attr 'content'
preg_match('@content\\s*=\\s*(["|\'])(.+?)\\1@', $matches[0], $matches);
if (! isset($matches[0]))
return array(null, null);
return $this->contentTypeToArray($matches[2]);
}
protected function charsetFromHTML($markup) {
$contentType = $this->contentTypeFromHTML($markup);
return $contentType[1];
}
protected function charsetFromXML($markup) {
$matches = array();
// find declaration
preg_match('@<'.'?xml[^>]+encoding\\s*=\\s*(["|\'])(.*?)\\1@i',
$markup, $matches
);
return isset($matches[2])
? strtolower($matches[2])
: null;
}
/**
* Repositions meta[type=charset] at the start of head. Bypasses DOMDocument bug.
*
* @link http://code.google.com/p/phpquery/issues/detail?id=80
* @param $html
*/
protected function charsetFixHTML($markup) {
$matches = array();
// find meta tag
preg_match('@\s*<meta[^>]+http-equiv\\s*=\\s*(["|\'])Content-Type\\1([^>]+?)>@i',
$markup, $matches, PREG_OFFSET_CAPTURE
);
if (! isset($matches[0]))
return;
$metaContentType = $matches[0][0];
$markup = substr($markup, 0, $matches[0][1])
.substr($markup, $matches[0][1]+strlen($metaContentType));
$headStart = stripos($markup, '<head>');
$markup = substr($markup, 0, $headStart+6).$metaContentType
.substr($markup, $headStart+6);
return $markup;
}
protected function charsetAppendToHTML($html, $charset, $xhtml = false) {
// remove existing meta[type=content-type]
$html = preg_replace('@\s*<meta[^>]+http-equiv\\s*=\\s*(["|\'])Content-Type\\1([^>]+?)>@i', '', $html);
$meta = '<meta http-equiv="Content-Type" content="text/html;charset='
.$charset.'" '
.($xhtml ? '/' : '')
.'>';
if (strpos($html, '<head') === false) {
if (strpos($html, '<html') === false) {
return $meta.$html;
} else {
return preg_replace(
'@<html(.*?)(?(?<!\?)>)@s',
"<html\\1><head>{$meta}</head>",
$html
);
}
} else {
return preg_replace(
'@<head(.*?)(?(?<!\?)>)@s',
'<head\\1>'.$meta,
$html
);
}
}
protected function charsetAppendToXML($markup, $charset) {
$declaration = '<'.'?xml version="1.0" encoding="'.$charset.'"?'.'>';
return $declaration.$markup;
}
public static function isDocumentFragmentHTML($markup) {
return stripos($markup, '<html') === false && stripos($markup, '<!doctype') === false;
}
public static function isDocumentFragmentXML($markup) {
return stripos($markup, '<'.'?xml') === false;
}
public static function isDocumentFragmentXHTML($markup) {
return self::isDocumentFragmentHTML($markup);
}
public function importAttr($value) {
// TODO
}
/**
*
* @param $source
* @param $target
* @param $sourceCharset
* @return array Array of imported nodes.
*/
public function import($source, $sourceCharset = null) {
// TODO charset conversions
$return = array();
if ($source instanceof DOMNODE && !($source instanceof DOMNODELIST))
$source = array($source);
// if (is_array($source)) {
// foreach($source as $node) {
// if (is_string($node)) {
// // string markup
// $fake = $this->documentFragmentCreate($node, $sourceCharset);
// if ($fake === false)
// throw new Exception("Error loading documentFragment markup");
// else
// $return = array_merge($return,
// $this->import($fake->root->childNodes)
// );
// } else {
// $return[] = $this->document->importNode($node, true);
// }
// }
// return $return;
// } else {
// // string markup
// $fake = $this->documentFragmentCreate($source, $sourceCharset);
// if ($fake === false)
// throw new Exception("Error loading documentFragment markup");
// else
// return $this->import($fake->root->childNodes);
// }
if (is_array($source) || $source instanceof DOMNODELIST) {
// dom nodes
self::debug('Importing nodes to document');
foreach($source as $node)
$return[] = $this->document->importNode($node, true);
} else {
// string markup
$fake = $this->documentFragmentCreate($source, $sourceCharset);
if ($fake === false)
throw new Exception("Error loading documentFragment markup");
else
return $this->import($fake->root->childNodes);
}
return $return;
}
/**
* Creates new document fragment.
*
* @param $source
* @return DOMDocumentWrapper
*/
protected function documentFragmentCreate($source, $charset = null) {
$fake = new DOMDocumentWrapper();
$fake->contentType = $this->contentType;
$fake->isXML = $this->isXML;
$fake->isHTML = $this->isHTML;
$fake->isXHTML = $this->isXHTML;
$fake->root = $fake->document;
if (! $charset)
$charset = $this->charset;
// $fake->documentCreate($this->charset);
if ($source instanceof DOMNODE && !($source instanceof DOMNODELIST))
$source = array($source);
if (is_array($source) || $source instanceof DOMNODELIST) {
// dom nodes
// load fake document
if (! $this->documentFragmentLoadMarkup($fake, $charset))
return false;
$nodes = $fake->import($source);
foreach($nodes as $node)
$fake->root->appendChild($node);
} else {
// string markup
$this->documentFragmentLoadMarkup($fake, $charset, $source);
}
return $fake;
}
/**
*
* @param $document DOMDocumentWrapper
* @param $markup
* @return $document
*/
private function documentFragmentLoadMarkup($fragment, $charset, $markup = null) {
// TODO error handling
// TODO copy doctype
// tempolary turn off
$fragment->isDocumentFragment = false;
if ($fragment->isXML) {
if ($fragment->isXHTML) {
// add FAKE element to set default namespace
$fragment->loadMarkupXML('<?xml version="1.0" encoding="'.$charset.'"?>'
.'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" '
.'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
.'<fake xmlns="http://www.w3.org/1999/xhtml">'.$markup.'</fake>');
$fragment->root = $fragment->document->firstChild->nextSibling;
} else {
$fragment->loadMarkupXML('<?xml version="1.0" encoding="'.$charset.'"?><fake>'.$markup.'</fake>');
$fragment->root = $fragment->document->firstChild;
}
} else {
$markup2 = phpQuery::$defaultDoctype.'<html><head><meta http-equiv="Content-Type" content="text/html;charset='
.$charset.'"></head>';
$noBody = strpos($markup, '<body') === false;
if ($noBody)
$markup2 .= '<body>';
$markup2 .= $markup;
if ($noBody)
$markup2 .= '</body>';
$markup2 .= '</html>';
$fragment->loadMarkupHTML($markup2);
// TODO resolv body tag merging issue
$fragment->root = $noBody
? $fragment->document->firstChild->nextSibling->firstChild->nextSibling
: $fragment->document->firstChild->nextSibling->firstChild->nextSibling;
}
if (! $fragment->root)
return false;
$fragment->isDocumentFragment = true;
return true;
}
protected function documentFragmentToMarkup($fragment) {
phpQuery::debug('documentFragmentToMarkup');
$tmp = $fragment->isDocumentFragment;
$fragment->isDocumentFragment = false;
$markup = $fragment->markup();
if ($fragment->isXML) {
$markup = substr($markup, 0, strrpos($markup, '</fake>'));
if ($fragment->isXHTML) {
$markup = substr($markup, strpos($markup, '<fake')+43);
} else {
$markup = substr($markup, strpos($markup, '<fake>')+6);
}
} else {
$markup = substr($markup, strpos($markup, '<body>')+6);
$markup = substr($markup, 0, strrpos($markup, '</body>'));
}
$fragment->isDocumentFragment = $tmp;
if (phpQuery::$debug)
phpQuery::debug('documentFragmentToMarkup: '.substr($markup, 0, 150));
return $markup;
}
/**
* Return document markup, starting with optional $nodes as root.
*
* @param $nodes DOMNode|DOMNodeList
* @return string
*/
public function markup($nodes = null, $innerMarkup = false) {
if (isset($nodes) && count($nodes) == 1 && $nodes[0] instanceof DOMDOCUMENT)
$nodes = null;
if (isset($nodes)) {
$markup = '';
if (!is_array($nodes) && !($nodes instanceof DOMNODELIST) )
$nodes = array($nodes);
if ($this->isDocumentFragment && ! $innerMarkup)
foreach($nodes as $i => $node)
if ($node->isSameNode($this->root)) {
// var_dump($node);
$nodes = array_slice($nodes, 0, $i)
+ phpQuery::DOMNodeListToArray($node->childNodes)
+ array_slice($nodes, $i+1);
}
if ($this->isXML && ! $innerMarkup) {
self::debug("Getting outerXML with charset '{$this->charset}'");
// we need outerXML, so we can benefit from
// $node param support in saveXML()
foreach($nodes as $node)
$markup .= $this->document->saveXML($node);
} else {
$loop = array();
if ($innerMarkup)
foreach($nodes as $node) {
if ($node->childNodes)
foreach($node->childNodes as $child)
$loop[] = $child;
else
$loop[] = $node;
}
else
$loop = $nodes;
self::debug("Getting markup, moving selected nodes (".count($loop).") to new DocumentFragment");
$fake = $this->documentFragmentCreate($loop);
$markup = $this->documentFragmentToMarkup($fake);
}
if ($this->isXHTML) {
self::debug("Fixing XHTML");
$markup = self::markupFixXHTML($markup);
}
self::debug("Markup: ".substr($markup, 0, 250));
return $markup;
} else {
if ($this->isDocumentFragment) {
// documentFragment, html only...
self::debug("Getting markup, DocumentFragment detected");
// return $this->markup(
//// $this->document->getElementsByTagName('body')->item(0)
// $this->document->root, true
// );
$markup = $this->documentFragmentToMarkup($this);
// no need for markupFixXHTML, as it's done thought markup($nodes) method
return $markup;
} else {
self::debug("Getting markup (".($this->isXML?'XML':'HTML')."), final with charset '{$this->charset}'");
$markup = $this->isXML
? $this->document->saveXML()
: $this->document->saveHTML();
if ($this->isXHTML) {
self::debug("Fixing XHTML");
$markup = self::markupFixXHTML($markup);
}
self::debug("Markup: ".substr($markup, 0, 250));
return $markup;
}
}
}
protected static function markupFixXHTML($markup) {
$markup = self::expandEmptyTag('script', $markup);
$markup = self::expandEmptyTag('select', $markup);
$markup = self::expandEmptyTag('textarea', $markup);
return $markup;
}
public static function debug($text) {
phpQuery::debug($text);
}
/**
* expandEmptyTag
*
* @param $tag
* @param $xml
* @return string
* @author mjaque at ilkebenson dot com
* @link http://php.net/manual/en/domdocument.savehtml.php#81256
*/
public static function expandEmptyTag($tag, $xml){
$indice = 0;
while ($indice< strlen($xml)){
$pos = strpos($xml, "<$tag ", $indice);
if ($pos){
$posCierre = strpos($xml, ">", $pos);
if ($xml[$posCierre-1] == "/"){
$xml = substr_replace($xml, "></$tag>", $posCierre-1, 2);
}
$indice = $posCierre;
}
else break;
}
return $xml;
}
}

View File

@@ -0,0 +1,107 @@
<?php
/**
* DOMEvent class.
*
* Based on
* @link http://developer.mozilla.org/En/DOM:event
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
* @package phpQuery
* @todo implement ArrayAccess ?
*/
class DOMEvent {
/**
* Returns a boolean indicating whether the event bubbles up through the DOM or not.
*
* @var unknown_type
*/
public $bubbles = true;
/**
* Returns a boolean indicating whether the event is cancelable.
*
* @var unknown_type
*/
public $cancelable = true;
/**
* Returns a reference to the currently registered target for the event.
*
* @var unknown_type
*/
public $currentTarget;
/**
* Returns detail about the event, depending on the type of event.
*
* @var unknown_type
* @link http://developer.mozilla.org/en/DOM/event.detail
*/
public $detail; // ???
/**
* Used to indicate which phase of the event flow is currently being evaluated.
*
* NOT IMPLEMENTED
*
* @var unknown_type
* @link http://developer.mozilla.org/en/DOM/event.eventPhase
*/
public $eventPhase; // ???
/**
* The explicit original target of the event (Mozilla-specific).
*
* NOT IMPLEMENTED
*
* @var unknown_type
*/
public $explicitOriginalTarget; // moz only
/**
* The original target of the event, before any retargetings (Mozilla-specific).
*
* NOT IMPLEMENTED
*
* @var unknown_type
*/
public $originalTarget; // moz only
/**
* Identifies a secondary target for the event.
*
* @var unknown_type
*/
public $relatedTarget;
/**
* Returns a reference to the target to which the event was originally dispatched.
*
* @var unknown_type
*/
public $target;
/**
* Returns the time that the event was created.
*
* @var unknown_type
*/
public $timeStamp;
/**
* Returns the name of the event (case-insensitive).
*/
public $type;
public $runDefault = true;
public $data = null;
public function __construct($data) {
foreach($data as $k => $v) {
$this->$k = $v;
}
if (! $this->timeStamp)
$this->timeStamp = time();
}
/**
* Cancels the event (if it is cancelable).
*
*/
public function preventDefault() {
$this->runDefault = false;
}
/**
* Stops the propagation of events further along in the DOM.
*
*/
public function stopPropagation() {
$this->bubbles = false;
}
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* Example of phpQuery bootstrap file.
*
* This file is executed everytime phpQuery is included. Use it to set all
* your personal needs in the library.
*
* To activate this file, delete '.example' from filename.
*/
// probably you want to use one of those functions here
//phpQuery::ajaxAllowHost();
//phpQuery::ajaxAllowURL();
//phpQuery::plugin();
?>

View File

@@ -0,0 +1,88 @@
<?php
// -- Multibyte Compatibility functions ---------------------------------------
// http://svn.iphonewebdev.com/lace/lib/mb_compat.php
/**
* mb_internal_encoding()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_internal_encoding'))
{
function mb_internal_encoding($enc) {return true; }
}
/**
* mb_regex_encoding()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_regex_encoding'))
{
function mb_regex_encoding($enc) {return true; }
}
/**
* mb_strlen()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_strlen'))
{
function mb_strlen($str)
{
return strlen($str);
}
}
/**
* mb_strpos()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_strpos'))
{
function mb_strpos($haystack, $needle, $offset=0)
{
return strpos($haystack, $needle, $offset);
}
}
/**
* mb_stripos()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_stripos'))
{
function mb_stripos($haystack, $needle, $offset=0)
{
return stripos($haystack, $needle, $offset);
}
}
/**
* mb_substr()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_substr'))
{
function mb_substr($str, $start, $length=0)
{
return substr($str, $start, $length);
}
}
/**
* mb_substr_count()
*
* Included for mbstring pseudo-compatability.
*/
if (!function_exists('mb_substr_count'))
{
function mb_substr_count($haystack, $needle)
{
return substr_count($haystack, $needle);
}
}

View File

@@ -0,0 +1,158 @@
<?php
/**
* Event handling class.
*
* @author Tobiasz Cudnik
* @package phpQuery
* @static
*/
abstract class phpQueryEvents {
/**
* Trigger a type of event on every matched element.
*
* @param DOMNode|phpQueryObject|string $document
* @param unknown_type $type
* @param unknown_type $data
*
* @TODO exclusive events (with !)
* @TODO global events (test)
* @TODO support more than event in $type (space-separated)
*/
public static function trigger($document, $type, $data = array(), $node = null) {
// trigger: function(type, data, elem, donative, extra) {
$documentID = phpQuery::getDocumentID($document);
$namespace = null;
if (strpos($type, '.') !== false)
list($name, $namespace) = explode('.', $type);
else
$name = $type;
if (! $node) {
if (self::issetGlobal($documentID, $type)) {
$pq = phpQuery::getDocument($documentID);
// TODO check add($pq->document)
$pq->find('*')->add($pq->document)
->trigger($type, $data);
}
} else {
if (isset($data[0]) && $data[0] instanceof DOMEvent) {
$event = $data[0];
$event->relatedTarget = $event->target;
$event->target = $node;
$data = array_slice($data, 1);
} else {
$event = new DOMEvent(array(
'type' => $type,
'target' => $node,
'timeStamp' => time(),
));
}
$i = 0;
while($node) {
// TODO whois
phpQuery::debug("Triggering ".($i?"bubbled ":'')."event '{$type}' on "
."node \n");//.phpQueryObject::whois($node)."\n");
$event->currentTarget = $node;
$eventNode = self::getNode($documentID, $node);
if (isset($eventNode->eventHandlers)) {
foreach($eventNode->eventHandlers as $eventType => $handlers) {
$eventNamespace = null;
if (strpos($type, '.') !== false)
list($eventName, $eventNamespace) = explode('.', $eventType);
else
$eventName = $eventType;
if ($name != $eventName)
continue;
if ($namespace && $eventNamespace && $namespace != $eventNamespace)
continue;
foreach($handlers as $handler) {
phpQuery::debug("Calling event handler\n");
$event->data = $handler['data']
? $handler['data']
: null;
$params = array_merge(array($event), $data);
$return = phpQuery::callbackRun($handler['callback'], $params);
if ($return === false) {
$event->bubbles = false;
}
}
}
}
// to bubble or not to bubble...
if (! $event->bubbles)
break;
$node = $node->parentNode;
$i++;
}
}
}
/**
* Binds a handler to one or more events (like click) for each matched element.
* Can also bind custom events.
*
* @param DOMNode|phpQueryObject|string $document
* @param unknown_type $type
* @param unknown_type $data Optional
* @param unknown_type $callback
*
* @TODO support '!' (exclusive) events
* @TODO support more than event in $type (space-separated)
* @TODO support binding to global events
*/
public static function add($document, $node, $type, $data, $callback = null) {
phpQuery::debug("Binding '$type' event");
$documentID = phpQuery::getDocumentID($document);
// if (is_null($callback) && is_callable($data)) {
// $callback = $data;
// $data = null;
// }
$eventNode = self::getNode($documentID, $node);
if (! $eventNode)
$eventNode = self::setNode($documentID, $node);
if (!isset($eventNode->eventHandlers[$type]))
$eventNode->eventHandlers[$type] = array();
$eventNode->eventHandlers[$type][] = array(
'callback' => $callback,
'data' => $data,
);
}
/**
* Enter description here...
*
* @param DOMNode|phpQueryObject|string $document
* @param unknown_type $type
* @param unknown_type $callback
*
* @TODO namespace events
* @TODO support more than event in $type (space-separated)
*/
public static function remove($document, $node, $type = null, $callback = null) {
$documentID = phpQuery::getDocumentID($document);
$eventNode = self::getNode($documentID, $node);
if (is_object($eventNode) && isset($eventNode->eventHandlers[$type])) {
if ($callback) {
foreach($eventNode->eventHandlers[$type] as $k => $handler)
if ($handler['callback'] == $callback)
unset($eventNode->eventHandlers[$type][$k]);
} else {
unset($eventNode->eventHandlers[$type]);
}
}
}
protected static function getNode($documentID, $node) {
foreach(phpQuery::$documents[$documentID]->eventsNodes as $eventNode) {
if ($node->isSameNode($eventNode))
return $eventNode;
}
}
protected static function setNode($documentID, $node) {
phpQuery::$documents[$documentID]->eventsNodes[] = $node;
return phpQuery::$documents[$documentID]->eventsNodes[
count(phpQuery::$documents[$documentID]->eventsNodes)-1
];
}
protected static function issetGlobal($documentID, $type) {
return isset(phpQuery::$documents[$documentID])
? in_array($type, phpQuery::$documents[$documentID]->eventsGlobal)
: false;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
<?php
/**
* phpQuery plugin class extending phpQuery object.
* Methods from this class are callable on every phpQuery object.
*
* Class name prefix 'phpQueryObjectPlugin_' must be preserved.
*/
abstract class phpQueryObjectPlugin_Scripts {
/**
* Limit binded methods.
*
* null means all public.
* array means only specified ones.
*
* @var array|null
*/
public static $phpQueryMethods = null;
public static $config = array();
/**
* Enter description here...
*
* @param phpQueryObject $self
*/
public static function script($self, $arg1) {
$params = func_get_args();
$params = array_slice($params, 2);
$return = null;
$config = self::$config;
if (phpQueryPlugin_Scripts::$scriptMethods[$arg1]) {
phpQuery::callbackRun(
phpQueryPlugin_Scripts::$scriptMethods[$arg1],
array($self, $params, &$return, $config)
);
} else if ($arg1 != '__config' && file_exists(dirname(__FILE__)."/Scripts/$arg1.php")) {
phpQuery::debug("Loading script '$arg1'");
require dirname(__FILE__)."/Scripts/$arg1.php";
} else {
phpQuery::debug("Requested script '$arg1' doesn't exist");
}
return $return
? $return
: $self;
}
}
abstract class phpQueryPlugin_Scripts {
public static $scriptMethods = array();
public static function __initialize() {
if (file_exists(dirname(__FILE__)."/Scripts/__config.php")) {
include dirname(__FILE__)."/Scripts/__config.php";
phpQueryObjectPlugin_Scripts::$config = $config;
}
}
/**
* Extend scripts' namespace with $name related with $callback.
*
* Callback parameter order looks like this:
* - $this
* - $params
* - &$return
* - $config
*
* @param $name
* @param $callback
* @return bool
*/
public static function script($name, $callback) {
if (phpQueryPlugin_Scripts::$scriptMethods[$name])
throw new Exception("Script name conflict - '$name'");
phpQueryPlugin_Scripts::$scriptMethods[$name] = $callback;
}
}
?>

View File

@@ -0,0 +1,10 @@
<?php
/**
* This file hosts config for Scripts plugin.
*
* To active this file, selete '.example' from filename.
*/
$config = array(
'google_login' => array('login@mail', 'password'),
);
?>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Example script for phpQuery Script plugin
*
* Avaible are 4 variables:
* - $self Represents $this
* - $params Represents parameters passed to script() method (without script name)
* - $return If not null, will be used as method result
* - $config Content of __config.php file
*
* By default each script returns $self aka $this.
*/
$return = $self->find($params[0]);
?>

View File

@@ -0,0 +1,16 @@
<?php
$selector = 'img[src], link[href], script[src]';
$filter = ':not([href^=<?php])'
.':not([src^=<?php])'
.':not([href^=http://])'
.':not([src^=http://])'
.':not([src^=/])';
foreach($self[$selector]->filter($filter) as $el) {
$el = pq($el, $self->getDocumentID());
// imgs and scripts
if ( $el->is('img') || $el->is('script') )
$el->attr('src', $params[0].$el->attr('src'));
// css
if ( $el->is('link') )
$el->attr('href', $params[0].$el->attr('href'));
}

View File

@@ -0,0 +1,47 @@
<?php
/**
* Automated google account login.
* Uses __config.php to keep login data.
*
* @package phpQuery.Plugins.Scripts
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
phpQuery::ajaxAllowHost(
'code.google.com',
'google.com', 'www.google.com',
'mail.google.com',
'docs.google.com',
'reader.google.com'
);
if (! function_exists('ndfasui8923')) {
function ndfasui8923($browser, $scope) {
extract($scope);
$browser
->WebBrowser()
->find('#Email')
->val($config['google_login'][0])->end()
->find('#Passwd')
->val($config['google_login'][1])
->parents('form')
->submit();
}
$ndfasui8923 = new Callback('ndfasui8923', new CallbackParam, compact(
'config', 'self', 'return', 'params'
));
}
phpQuery::plugin('WebBrowser');
$self->document->xhr = phpQuery::$plugins->browserGet(
'https://www.google.com/accounts/Login',
$ndfasui8923
);
//$self->document->xhr = phpQuery::$plugins->browserGet('https://www.google.com/accounts/Login', create_function('$browser', "
// \$browser
// ->WebBrowser()
// ->find('#Email')
// ->val('{$config['google_login'][0]}')->end()
// ->find('#Passwd')
// ->val('".str_replace("'", "\\'", $config['google_login'][1])."')
// ->parents('form')
// ->submit();"
//));
?>

View File

@@ -0,0 +1,9 @@
<?php
/**
* Script outputs document markup and changes HTML special chars to entities.
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
/** @var phpQueryObject */
$self = $self;
$return = htmlspecialchars($self);

View File

@@ -0,0 +1,13 @@
<?php
/**
* Script makes content safe for printing as web page and not redirecting client.
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
/** @var phpQueryObject */
$self = $self;
$self
->find('script')
->add('meta[http-equiv=refresh]')
->add('meta[http-equiv=Refresh]')
->remove();

View File

@@ -0,0 +1,436 @@
<?php
/**
* WebBrowser plugin.
*
*/
class phpQueryObjectPlugin_WebBrowser {
/**
* Limit binded methods to specified ones.
*
* @var array
*/
public static $phpQueryMethods = null;
/**
* Enter description here...
*
* @param phpQueryObject $self
* @todo support 'reset' event
*/
public static function WebBrowser($self, $callback = null, $location = null) {
$self = $self->_clone()->toRoot();
$location = $location
? $location
// TODO use document.location
: $self->document->xhr->getUri(true);
// FIXME tmp
$self->document->WebBrowserCallback = $callback;
if (! $location)
throw new Exception('Location needed to activate WebBrowser plugin !');
else {
$self->bind('click', array($location, $callback), array('phpQueryPlugin_WebBrowser', 'hadleClick'));
$self->bind('submit', array($location, $callback), array('phpQueryPlugin_WebBrowser', 'handleSubmit'));
}
}
public static function browser($self, $callback = null, $location = null) {
return $self->WebBrowser($callback, $location);
}
public static function downloadTo($self, $dir = null, $filename = null) {
$url = null;
if ($self->is('a[href]'))
$url = $self->attr('href');
else if ($self->find('a')->length)
$url = $self->find('a')->attr('href');
if ($url) {
$url = resolve_url($self->document->location, $url);
if (! $dir)
$dir = getcwd();
// TODO resolv name from response headers
if (! $filename) {
$matches = null;
preg_match('@/([^/]+)$@', $url, $matches);
$filename = $matches[1];
}
//print $url;
$path = rtrim($dir, '/').'/'.$filename;
phpQuery::debug("Requesting download of $url\n");
// TODO use AJAX instead of file_get_contents
file_put_contents($path, file_get_contents($url));
}
return $self;
}
/**
* Method changing browser location.
* Fires callback registered with WebBrowser(), if any.
* @param $self
* @param $url
* @return unknown_type
*/
public static function location($self, $url = null) {
// TODO if ! $url return actual location ???
$xhr = isset($self->document->xhr)
? $self->document->xhr
: null;
$xhr = phpQuery::ajax(array(
'url' => $url,
), $xhr);
$return = false;
if ($xhr->getLastResponse()->isSuccessful()) {
$return = phpQueryPlugin_WebBrowser::browserReceive($xhr);
if (isset($self->document->WebBrowserCallback))
phpQuery::callbackRun(
$self->document->WebBrowserCallback,
array($return)
);
}
return $return;
}
public static function download($self, $url = null) {
$xhr = isset($self->document->xhr)
? $self->document->xhr
: null;
$xhr = phpQuery::ajax(array(
'url' => $url,
), $xhr);
$return = false;
if ($xhr->getLastResponse()->isSuccessful()) {
$return = phpQueryPlugin_WebBrowser::browserDownload($xhr);
if (isset($self->document->WebBrowserCallback))
phpQuery::callbackRun(
$self->document->WebBrowserCallback,
array($return)
);
}
return $return;
}
}
class phpQueryPlugin_WebBrowser {
/**
*
* @param $url
* @param $callback
* @param $param1
* @param $param2
* @param $param3
* @return Zend_Http_Client
*/
public static function browserGet($url, $callback,
$param1 = null, $param2 = null, $param3 = null) {
phpQuery::debug("[WebBrowser] GET: $url");
self::authorizeHost($url);
$xhr = phpQuery::ajax(array(
'type' => 'GET',
'url' => $url,
'dataType' => 'html',
));
$paramStructure = null;
if (func_num_args() > 2) {
$paramStructure = func_get_args();
$paramStructure = array_slice($paramStructure, 2);
}
if ($xhr->getLastResponse()->isSuccessful()) {
phpQuery::callbackRun($callback,
array(self::browserReceive($xhr)->WebBrowser()),
$paramStructure
);
// phpQuery::callbackRun($callback, array(
// self::browserReceive($xhr)//->WebBrowser($callback)
// ));
return $xhr;
} else {
throw new Exception("[WebBrowser] GET request failed; url: $url");
return false;
}
}
/**
*
* @param $url
* @param $data
* @param $callback
* @param $param1
* @param $param2
* @param $param3
* @return Zend_Http_Client
*/
public static function browserPost($url, $data, $callback,
$param1 = null, $param2 = null, $param3 = null) {
self::authorizeHost($url);
$xhr = phpQuery::ajax(array(
'type' => 'POST',
'url' => $url,
'dataType' => 'html',
'data' => $data,
));
$paramStructure = null;
if (func_num_args() > 3) {
$paramStructure = func_get_args();
$paramStructure = array_slice($paramStructure, 3);
}
if ($xhr->getLastResponse()->isSuccessful()) {
phpQuery::callbackRun($callback,
array(self::browserReceive($xhr)->WebBrowser()),
$paramStructure
);
// phpQuery::callbackRun($callback, array(
// self::browserReceive($xhr)//->WebBrowser($callback)
// ));
return $xhr;
} else
return false;
}
/**
*
* @param $ajaxSettings
* @param $callback
* @param $param1
* @param $param2
* @param $param3
* @return Zend_Http_Client
*/
public static function browser($ajaxSettings, $callback,
$param1 = null, $param2 = null, $param3 = null) {
self::authorizeHost($ajaxSettings['url']);
$xhr = phpQuery::ajax(
self::ajaxSettingsPrepare($ajaxSettings)
);
$paramStructure = null;
if (func_num_args() > 2) {
$paramStructure = func_get_args();
$paramStructure = array_slice($paramStructure, 2);
}
if ($xhr->getLastResponse()->isSuccessful()) {
phpQuery::callbackRun($callback,
array(self::browserReceive($xhr)->WebBrowser()),
$paramStructure
);
// phpQuery::callbackRun($callback, array(
// self::browserReceive($xhr)//->WebBrowser($callback)
// ));
return $xhr;
} else
return false;
}
protected static function authorizeHost($url) {
$host = parse_url($url, PHP_URL_HOST);
if ($host)
phpQuery::ajaxAllowHost($host);
}
protected static function ajaxSettingsPrepare($settings) {
unset($settings['success']);
unset($settings['error']);
return $settings;
}
/**
* @param Zend_Http_Client $xhr
*/
public static function browserReceive($xhr) {
phpQuery::debug("[WebBrowser] Received from ".$xhr->getUri(true));
// TODO handle meta redirects
$body = $xhr->getLastResponse()->getBody();
// XXX error ???
if (strpos($body, '<!doctype html>') !== false) {
$body = '<html>'
.str_replace('<!doctype html>', '', $body)
.'</html>';
}
$pq = phpQuery::newDocument($body);
$pq->document->xhr = $xhr;
$pq->document->location = $xhr->getUri(true);
$refresh = $pq->find('meta[http-equiv=refresh]')
->add('meta[http-equiv=Refresh]');
if ($refresh->size()) {
// print htmlspecialchars(var_export($xhr->getCookieJar()->getAllCookies(), true));
// print htmlspecialchars(var_export($xhr->getLastResponse()->getHeader('Set-Cookie'), true));
phpQuery::debug("Meta redirect... '{$refresh->attr('content')}'\n");
// there is a refresh, so get the new url
$content = $refresh->attr('content');
$urlRefresh = substr($content, strpos($content, '=')+1);
$urlRefresh = trim($urlRefresh, '\'"');
// XXX not secure ?!
phpQuery::ajaxAllowURL($urlRefresh);
// $urlRefresh = urldecode($urlRefresh);
// make ajax call, passing last $xhr object to preserve important stuff
$xhr = phpQuery::ajax(array(
'type' => 'GET',
'url' => $urlRefresh,
'dataType' => 'html',
), $xhr);
if ($xhr->getLastResponse()->isSuccessful()) {
// if all is ok, repeat this method...
return call_user_func_array(
array('phpQueryPlugin_WebBrowser', 'browserReceive'), array($xhr)
);
}
} else
return $pq;
}
/**
* @param Zend_Http_Client $xhr
*/
public static function browserDownload($xhr) {
phpQuery::debug("[WebBrowser] Received from ".$xhr->getUri(true));
// TODO handle meta redirects
$body = $xhr->getLastResponse()->getBody();
return $body;
}
/**
*
* @param $e
* @param $callback
* @return unknown_type
*/
public static function hadleClick($e, $callback = null) {
$node = phpQuery::pq($e->target);
$type = null;
if ($node->is('a[href]')) {
// TODO document.location
$xhr = isset($node->document->xhr)
? $node->document->xhr
: null;
$xhr = phpQuery::ajax(array(
'url' => resolve_url($e->data[0], $node->attr('href')),
'referer' => $node->document->location,
), $xhr);
if ((! $callback || !($callback instanceof Callback)) && $e->data[1])
$callback = $e->data[1];
if ($xhr->getLastResponse()->isSuccessful() && $callback)
phpQuery::callbackRun($callback, array(
self::browserReceive($xhr)
));
} else if ($node->is(':submit') && $node->parents('form')->size())
$node->parents('form')->trigger('submit', array($e));
}
/**
* Enter description here...
*
* @param unknown_type $e
* @TODO trigger submit for form after form's submit button has a click event
*/
public static function handleSubmit($e, $callback = null) {
$node = phpQuery::pq($e->target);
if (!$node->is('form') || !$node->is('[action]'))
return;
// TODO document.location
$xhr = isset($node->document->xhr)
? $node->document->xhr
: null;
$submit = pq($e->relatedTarget)->is(':submit')
? $e->relatedTarget
// will this work ?
// : $node->find(':submit:first')->get(0);
: $node->find('*:submit:first')->get(0);
$data = array();
foreach($node->serializeArray($submit) as $r)
// XXXt.c maybe $node->not(':submit')->add($sumit) would be better ?
// foreach($node->serializeArray($submit) as $r)
$data[ $r['name'] ] = $r['value'];
$options = array(
'type' => $node->attr('method')
? $node->attr('method')
: 'GET',
'url' => resolve_url($e->data[0], $node->attr('action')),
'data' => $data,
'referer' => $node->document->location,
// 'success' => $e->data[1],
);
if ($node->attr('enctype'))
$options['contentType'] = $node->attr('enctype');
$xhr = phpQuery::ajax($options, $xhr);
if ((! $callback || !($callback instanceof Callback)) && $e->data[1])
$callback = $e->data[1];
if ($xhr->getLastResponse()->isSuccessful() && $callback)
phpQuery::callbackRun($callback, array(
self::browserReceive($xhr)
));
}
}
/**
*
* @param unknown_type $parsed
* @return unknown
* @link http://www.php.net/manual/en/function.parse-url.php
* @author stevenlewis at hotmail dot com
*/
function glue_url($parsed)
{
if (! is_array($parsed)) return false;
$uri = isset($parsed['scheme']) ? $parsed['scheme'].':'.((strtolower($parsed['scheme']) == 'mailto') ? '':'//'): '';
$uri .= isset($parsed['user']) ? $parsed['user'].($parsed['pass']? ':'.$parsed['pass']:'').'@':'';
$uri .= isset($parsed['host']) ? $parsed['host'] : '';
$uri .= isset($parsed['port']) ? ':'.$parsed['port'] : '';
if(isset($parsed['path']))
{
$uri .= (substr($parsed['path'],0,1) == '/')?$parsed['path']:'/'.$parsed['path'];
}
$uri .= isset($parsed['query']) ? '?'.$parsed['query'] : '';
$uri .= isset($parsed['fragment']) ? '#'.$parsed['fragment'] : '';
return $uri;
}
/**
* Enter description here...
*
* @param unknown_type $base
* @param unknown_type $url
* @return unknown
* @author adrian-php at sixfingeredman dot net
*/
function resolve_url($base, $url) {
if (!strlen($base)) return $url;
// Step 2
if (!strlen($url)) return $base;
// Step 3
if (preg_match('!^[a-z]+:!i', $url)) return $url;
$base = parse_url($base);
if ($url{0} == "#") {
// Step 2 (fragment)
$base['fragment'] = substr($url, 1);
return unparse_url($base);
}
unset($base['fragment']);
unset($base['query']);
if (substr($url, 0, 2) == "//") {
// Step 4
return unparse_url(array(
'scheme'=>$base['scheme'],
'path'=>substr($url,2),
));
} else if ($url{0} == "/") {
// Step 5
$base['path'] = $url;
} else {
// Step 6
$path = explode('/', $base['path']);
$url_path = explode('/', $url);
// Step 6a: drop file from base
array_pop($path);
// Step 6b, 6c, 6e: append url while removing "." and ".." from
// the directory portion
$end = array_pop($url_path);
foreach ($url_path as $segment) {
if ($segment == '.') {
// skip
} else if ($segment == '..' && $path && $path[sizeof($path)-1] != '..') {
array_pop($path);
} else {
$path[] = $segment;
}
}
// Step 6d, 6f: remove "." and ".." from file portion
if ($end == '.') {
$path[] = '';
} else if ($end == '..' && $path && $path[sizeof($path)-1] != '..') {
$path[sizeof($path)-1] = '';
} else {
$path[] = $end;
}
// Step 6h
$base['path'] = join('/', $path);
}
// Step 7
return glue_url($base);
}

View File

@@ -0,0 +1,75 @@
<?php
/**
* Example of phpQuery plugin.
*
* Load it like this:
* phpQuery::plugin('example')
* phpQuery::plugin('example', 'example.php')
* pq('ul')->plugin('example')
* pq('ul')->plugin('example', 'example.php')
*
* Plugin classes are never intialized, just method calls are forwarded
* in static way from phpQuery.
*
* Have fun writing plugins :)
*/
/**
* phpQuery plugin class extending phpQuery object.
* Methods from this class are callable on every phpQuery object.
*
* Class name prefix 'phpQueryObjectPlugin_' must be preserved.
*/
abstract class phpQueryObjectPlugin_example {
/**
* Limit binded methods.
*
* null means all public.
* array means only specified ones.
*
* @var array|null
*/
public static $phpQueryMethods = null;
/**
* Enter description here...
*
* @param phpQueryObject $self
*/
public static function example($self, $arg1) {
// this method can be called on any phpQuery object, like this:
// pq('div')->example('$arg1 Value')
// do something
$self->append('Im just an example !');
// change stack of result object
return $self->find('div');
}
protected static function helperFunction() {
// this method WONT be avaible as phpQuery method,
// because it isn't publicly callable
}
}
/**
* phpQuery plugin class extending phpQuery static namespace.
* Methods from this class are callable as follows:
* phpQuery::$plugins->staticMethod()
*
* Class name prefix 'phpQueryPlugin_' must be preserved.
*/
abstract class phpQueryPlugin_example {
/**
* Limit binded methods.
*
* null means all public.
* array means only specified ones.
*
* @var array|null
*/
public static $phpQueryMethods = null;
public static function staticMethod() {
// this method can be called within phpQuery class namespace, like this:
// phpQuery::$plugins->staticMethod()
}
}
?>

View File

@@ -0,0 +1,70 @@
## Example
```
pq('#element')->load('http://somesite.com/page .inline-selector')->...
```
# Table of Contents
* [Server Side Ajax](#Server_Side_Ajax.md)
* [Cross Domain Ajax](#Cross_Domain_Ajax.md)
* [Ajax Requests](#Ajax_Requests.md)
* [Ajax Events](#Ajax_Events.md)
* [Misc](#Misc.md)
## Server Side Ajax
Ajax, standing for _Asynchronous JavaScript and XML_ is combination of HTTP Client and XML parser which doesn't lock program's thread (doing request in asynchronous way).
**phpQuery** also offers such functionality, making use of solid quality [Zend\_Http\_Client](http://framework.zend.com/manual/en/zend.http.html). Unfortunately requests aren't asynchronous, but nothing is impossible. For today, instead of [XMLHttpRequest](http://en.wikipedia.org/wiki/XMLHttpRequest) you always get Zend\_Http\_Client instance. API unification is [planned](http://code.google.com/p/phpquery/issues/detail?id=44).
## Cross Domain Ajax
For security reasons, by default **phpQuery** doesn't allow connections to hosts other than actual `$_SERVER['HTTP_HOST']`. Developer needs to grant rights to other hosts before making an [Ajax](Ajax.md) request.
There are 2 methods for allowing other hosts
* phpQuery::**ajaxAllowURL**($url)
* phpQuery::**ajaxAllowHost**($host)
```
// connect to google.com
phpQuery::ajaxAllowHost('google.com');
phpQuery::get('http://google.com/ig');
// or using same string
$url = 'http://google.com/ig';
phpQuery::ajaxAllowURL($url);
phpQuery::get($url);
```
## Ajax Requests
* **[phpQuery::ajax](http://docs.jquery.com/Ajax/jQuery.ajax)**[($options)](http://docs.jquery.com/Ajax/jQuery.ajax) Load a remote page using an HTTP request.
* **[load](http://docs.jquery.com/Ajax/load)**[($url, $data, $callback)](http://docs.jquery.com/Ajax/load) Load HTML from a remote file and inject it into the DOM.
* **[phpQuery::get](http://docs.jquery.com/Ajax/jQuery.get)**[($url, $data, $callback)](http://docs.jquery.com/Ajax/jQuery.get) Load a remote page using an HTTP GET request.
* **[phpQuery::getJSON](http://docs.jquery.com/Ajax/jQuery.getJSON)**[($url, $data, $callback)](http://docs.jquery.com/Ajax/jQuery.getJSON) Load JSON data using an HTTP GET request.
* **[phpQuery::getScript](http://docs.jquery.com/Ajax/jQuery.getScript)**[($url, $callback)](http://docs.jquery.com/Ajax/jQuery.getScript) Loads, and executes, a local JavaScript file using an HTTP GET request.
* **[phpQuery::post](http://docs.jquery.com/Ajax/jQuery.post)**[($url, $data, $callback, $type)](http://docs.jquery.com/Ajax/jQuery.post) Load a remote page using an HTTP POST request.
## Ajax Events
* **[ajaxComplete](http://docs.jquery.com/Ajax/ajaxComplete)**[($callback)](http://docs.jquery.com/Ajax/ajaxComplete) Attach a function to be executed whenever an AJAX request completes. This is an Ajax Event.
* **[ajaxError](http://docs.jquery.com/Ajax/ajaxError)**[($callback)](http://docs.jquery.com/Ajax/ajaxError) Attach a function to be executed whenever an AJAX request fails. This is an Ajax Event.
* **[ajaxSend](http://docs.jquery.com/Ajax/ajaxSend)**[($callback)](http://docs.jquery.com/Ajax/ajaxSend) Attach a function to be executed before an AJAX request is sent. This is an Ajax Event.
* **[ajaxStart](http://docs.jquery.com/Ajax/ajaxStart)**[($callback)](http://docs.jquery.com/Ajax/ajaxStart) Attach a function to be executed whenever an AJAX request begins and there is none already active. This is an Ajax Event.
* **[ajaxStop](http://docs.jquery.com/Ajax/ajaxStop)**[($callback)](http://docs.jquery.com/Ajax/ajaxStop) Attach a function to be executed whenever all AJAX requests have ended. This is an Ajax Event.
* **[ajaxSuccess](http://docs.jquery.com/Ajax/ajaxSuccess)**[($callback)](http://docs.jquery.com/Ajax/ajaxSuccess) Attach a function to be executed whenever an AJAX request completes successfully. This is an Ajax Event.
## Misc
* **[phpQuery::ajaxSetup](http://docs.jquery.com/Ajax/jQuery.ajaxSetup)**[($options)](http://docs.jquery.com/Ajax/jQuery.ajaxSetup) Setup global settings for AJAX requests.
* **[serialize](http://docs.jquery.com/Ajax/serialize)**[()](http://docs.jquery.com/Ajax/serialize) Serializes a set of input elements into a string of data. This will serialize all given elements.
* **[serializeArray](http://docs.jquery.com/Ajax/serializeArray)**[()](http://docs.jquery.com/Ajax/serializeArray) Serializes all forms and form elements (like the .serialize() method) but returns a JSON data structure for you to work with.
## Options
Detailed options description in available at [jQuery Documentation Site](http://docs.jquery.com/Ajax/jQuery.ajax#toptions).
* **`async`** `Boolean`
* **`beforeSend`** `Function`
* **`cache`** `Boolean`
* **`complete`** `Function`
* **`contentType`** `String`
* **`data`** `Object, String`
* **`dataType`** `String`
* **`error`** `Function`
* **`global`** `Boolean`
* **`ifModified`** `Boolean`
* **`jsonp`** `String`
* **`password`** `String`
* **`processData`** `Boolean`
* **`success`** `Function`
* **`timeout`** `Number`
* **`type`** `String`
* **`url`** `String`
* **`username`** `String`
Read more at [Ajax](http://docs.jquery.com/Ajax) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1,33 @@
## Example
```
pq('a')->attr('href', 'newVal')->removeClass('className')->html('newHtml')->...
```
# Table of Contents
* [Attr](#Attr.md)
* [Class](#Class.md)
* [HTML](#HTML.md)
* [Text](#Text.md)
* [Value](#Value.md)
## Attr
* **[attr](http://docs.jquery.com/Attributes/attr)**[($name)](http://docs.jquery.com/Attributes/attr) Access a property on the first matched element. This method makes it easy to retrieve a property value from the first matched element. If the element does not have an attribute with such a name, undefined is returned.
* **[attr](http://docs.jquery.com/Attributes/attr)**[($properties)](http://docs.jquery.com/Attributes/attr) Set a key/value object as properties to all matched elements.
* **[attr](http://docs.jquery.com/Attributes/attr)**[($key, $value)](http://docs.jquery.com/Attributes/attr) Set a single property to a value, on all matched elements.
* **[attr](http://docs.jquery.com/Attributes/attr)**[($key, $fn)](http://docs.jquery.com/Attributes/attr) Set a single property to a computed value, on all matched elements.
* **[removeAttr](http://docs.jquery.com/Attributes/removeAttr)**[($name)](http://docs.jquery.com/Attributes/removeAttr) Remove an attribute from each of the matched elements.
## Class
* **[addClass](http://docs.jquery.com/Attributes/addClass)**[($class)](http://docs.jquery.com/Attributes/addClass) Adds the specified class(es) to each of the set of matched elements.
* **[hasClass](http://docs.jquery.com/Attributes/hasClass)**[($class)](http://docs.jquery.com/Attributes/hasClass) Returns true if the specified class is present on at least one of the set of matched elements.
* **[removeClass](http://docs.jquery.com/Attributes/removeClass)**[($class)](http://docs.jquery.com/Attributes/removeClass) Removes all or the specified class(es) from the set of matched elements.
* **[toggleClass](http://docs.jquery.com/Attributes/toggleClass)**[($class)](http://docs.jquery.com/Attributes/toggleClass) Adds the specified class if it is not present, removes the specified class if it is present.
## HTML
* **[html](http://docs.jquery.com/Attributes/html)**[()](http://docs.jquery.com/Attributes/html) Get the html contents (innerHTML) of the first matched element. This property is not available on XML documents (although it will work for XHTML documents).
* **[html](http://docs.jquery.com/Attributes/html)**[($val)](http://docs.jquery.com/Attributes/html) Set the html contents of every matched element. This property is not available on XML documents (although it will work for XHTML documents).
## Text
* **[text](http://docs.jquery.com/Attributes/text)**[()](http://docs.jquery.com/Attributes/text) Get the combined text contents of all matched elements.
* **[text](http://docs.jquery.com/Attributes/text)**[($val)](http://docs.jquery.com/Attributes/text) Set the text contents of all matched elements.
## Value
* **[val](http://docs.jquery.com/Attributes/val)**[()](http://docs.jquery.com/Attributes/val) Get the content of the value attribute of the first matched element.
* **[val](http://docs.jquery.com/Attributes/val)**[($val)](http://docs.jquery.com/Attributes/val) Set the value attribute of every matched element.
* **[val](http://docs.jquery.com/Attributes/val)**[($val)](http://docs.jquery.com/Attributes/val) Checks, or selects, all the radio buttons, checkboxes, and select options that match the set of values.
Read more at [Attributes](http://docs.jquery.com/Attributes) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1,54 @@
## Example
```
phpQuery::newDocumentFileXHTML('my-xhtml.html')->find('p');
$ul = pq('ul');
```
# Table of Contents
* [Loading documents](#Loading_documents.md)
* [pq() function](#pq_function.md)
## Loading documents
* phpQuery::**newDocument**($html, $contentType = null) Creates new document from markup. If no $contentType, autodetection is made (based on markup). If it fails, text/html in utf-8 is used.
* phpQuery::**newDocumentFile**($file, $contentType = null) Creates new document from file. Works like newDocument()
* phpQuery::**newDocumentHTML**($html, $charset = 'utf-8')
* phpQuery::**newDocumentXHTML**($html, $charset = 'utf-8')
* phpQuery::**newDocumentXML**($html, $charset = 'utf-8')
* phpQuery::**newDocumentPHP**($html, $contentType = null) Read more about it on [PHPSupport page](PHPSupport.md)
* phpQuery::**newDocumentFileHTML**($file, $charset = 'utf-8')
* phpQuery::**newDocumentFileXHTML**($file, $charset = 'utf-8')
* phpQuery::**newDocumentFileXML**($file, $charset = 'utf-8')
* phpQuery::**newDocumentFilePHP**($file, $contentType) Read more about it on [PHPSupport page](PHPSupport.md)
## pq function
**`pq($param, $context = null);`**
**pq();** function is equivalent of jQuery's **$();**. It's used for 3 type of things:
1. Importing markup
```
// Import into selected document:
// doesn't accept text nodes at beginning of input string
pq('<div/>')
// Import into document with ID from $pq->getDocumentID():
pq('<div/>', $pq->getDocumentID())
// Import into same document as DOMNode belongs to:
pq('<div/>', DOMNode)
// Import into document from phpQuery object:
pq('<div/>', $pq)
```
1. Running queries
```
// Run query on last selected document:
pq('div.myClass')
// Run query on document with ID from $pq->getDocumentID():
pq('div.myClass', $pq->getDocumentID())
// Run query on same document as DOMNode belongs to and use node(s)as root for query:
pq('div.myClass', DOMNode)
// Run query on document from phpQuery object
// and use object's stack as root node(s) for query:
pq('div.myClass', $pq)
```
1. Wrapping DOMNodes with phpQuery objects
```
foreach(pq('li') as $li)
// $li is pure DOMNode, change it to phpQuery object
pq($li);
```

View File

@@ -0,0 +1 @@
Work in progress. Scheduled before 1.0.

View File

@@ -0,0 +1,91 @@
# Table of Contents
* [What are callbacks](#What_are_callbacks.md)
* [phpQuery callback system](#phpQuery_callbacks.md)
* [Callback class](#Callback.md)
* [CallbackParam class](#CallbackParam.md)
* [CallbackReference class](#CallbackReference.md)
* [Scope Pseudo-Inheritance](#Scope_Pseudo_Inheritance.md)
## What are callbacks
Callbacks are functions _called back_ by other functions in proper moment (eg on [Ajax](Ajax.md) request error).
In **JavaScript** this pattern can be very flexible due to [Closures](http://en.wikipedia.org/wiki/Closure_(computer_science)) support, which can be inline (no code break) and inherits scope (no need to passing params).
**PHP** has only simple [support for callbacks](http://pl2.php.net/manual/en/function.call-user-func-array.php) so the case is more complicated. That's why phpQuery extends callback support by it's own.
## phpQuery callback system
phpQuery uses it's own approach to callbacks. This task is achieved thou **Callback**, **CallbackParam** and **CallbackReference** classes.
### Callback
Callback class is used for wrapping valid callbacks with params.
#### Example 1
```
function myCallback($param1, $param2) {
var_dump($param1);
var_dump($param2);
}
phpQuery::get($url,
new Callback('myCallback', 'myParam1', new CallbackParam)
);
// now $param1 in myCallback will have value 'myParam1'
// and $param2 will be parameter passed by function calling callback
// which in this example would be ajax request result
```
### CallbackParam
As we can see in [last example](#Example_1.md), new instance of CallbackParam class is used for defining places, where original callback parameter(s) will be placed. Such pattern can be used also without Callback class for some methods.
#### Example 2
```
phpQuery::each(
// first param is array which will be iterated
array(1,2,3),
// second param is callback (string or array to call objects method)
'myCallback',
// rest of params are ParamStructure
// CallbackParam objects will be changed to $i and $v by phpQuery::each method
'param1', new CallbackParam, new CallbackParam, 'param4'
);
function myCallback($param1, $i, $v, $param4) {
print "Index: $i; Value: $v";
}
```
Methods supporting CallbackParam **without** using Callback class:
* `phpQuery::each()`
* `phpQuery::map()`
* `pq()->each()`
* `pq()->map()`
### CallbackReference
Finally, CallbackReference can be used when we don't really want a callback, only parameter passed to it. CallbackReference takes first parameter's value and passes it to reference. Thanks to that, we can use **if statement** instead of **callback function**.
#### Example 3
```
$html;
phpQuery::get($url, new CallbackReference($html));
if ($html) {
// callback triggered, value non-false
phpQuery::get($url, new CallbackReference($html));
if ($html) {
// we just skipped 2 function declarations
}
}
```
## Scope Pseudo Inheritance
There is an easy way to pseudo inherit scope in PHP. [Scope](http://en.wikipedia.org/wiki/Scope_(programming)) means _variables accessible in specified point of code_ (which in other words means _any variable you can use_). It's achieved using [compact()](http://php.net/compact) and [extract()](http://php.net/extract) functions.
#### Example 4
Look at this modified [example 2](#Example_2.md). Previous comments were removed.
```
$a = 'foo';
$b = 'bar';
phpQuery::each(
array(1,2,3),
'myCallback',
// notice that 'param1' changed to compact('a', 'b')
// where 'a' and 'b' are variable names accessible in actual scope
compact('a', 'b'), new CallbackParam, new CallbackParam, 'param4'
);
function myCallback($scope, $i, $v, $param4) {
// this is the place where variables from $scope array
// are forwarded to actual function's scope
extract($scope);
print "Var a: $a"; // will print 'Var a: foo'
print "Var b: $b"; // will print 'Var a: bar'
print "Index: $i; Value: $v";
}
```
## Future
In the future this functionality will be extended and more methods will support it. Check [Issue Tracker entry #48](http://code.google.com/p/phpquery/issues/detail?id=48) if you're interested in any way.

View File

@@ -0,0 +1 @@
TODO ;)

View File

@@ -0,0 +1,14 @@
phpQuery features CommandLineInterface aka CLI.
```
Usage: phpquery URL --method1 arg1 arg2 argN --method2 arg1 arg2 argN ...
Example: phpquery 'http://localhost' --find 'div > p' --contents
Pipe: cat index.html | phpquery --find 'div > p' --contents
Docs: http://code.google.com/p/phpquery/wiki/
```
## Example
Fetch number of downloads of all release packages.
```
phpquery 'http://code.google.com/p/phpquery/downloads/list?can=1' \
--find '.vt.col_4 a' --contents \
--getString null array_sum
```

View File

@@ -0,0 +1,16 @@
## Enabling debugging
```
// enable debugging messages
phpQuery::$debug = 1;
// enable extensive debugging messages
// used to debug document loading errors from phpQuery::newDocument()
phpQuery::$debug = 2;
```
## Debugging methods
```
// debug inside chain
pq('.foo')->dump()->...;
pq('.foo')->dumpWhois()->...;
pq('.foo')->dumpTree()->...;
pq('.foo')->dumpDie()->...;
```

View File

@@ -0,0 +1,14 @@
**phpQuery** depends on following code parts:
* [PHP5](#PHP5.md)
* [PHP5 DOM extension](#DOM_extension.md)
* [Zend Framework](#Zend_Framework.md)
## PHP5
Required version of PHP is [PHP5](http://www.php.net/), **5.2** recommended.
## DOM extension
PHP5's build-in [DOM extension](http://php.net/manual/en/book.dom.php) is required. Users of
[windows XAMPP](http://www.apachefriends.org/en/xampp-windows.html) (and maybe other unofficial PHP distributions) need to disable depracated [DOM XML](http://php.net/manual/en/ref.domxml.php) extension. More information can be found in [this post on mrclay.org](http://mrclay.org/index.php/2008/10/08/getting-phpquery-running-under-xampp-for-windows/)
## Zend Framework
[Zend Framework](http://framework.zend.com/) is used as HTTP Client and JSON encoder. Those who already have Zend Framework in their applications, can remove directory **/phpQuery/Zend**. Only condition is having proper include path set for own copy of the library.

View File

@@ -0,0 +1,47 @@
# Table of Contents
* [Example](#Example.md)
* [Server Side Events](#Server_Side_Events.md)
* [Page Load](#Page_Load.md)
* [Event Handling](#Event_Handling.md)
* [Interaction Helpers](#Interaction_Helpers.md)
* [Event Helpers](#Event_Helpers.md)
## Example
```
pq('form')->bind('submit', 'submitHandler')->trigger('submit')->...
function submitHandler($e) {
print 'Target: '.$e->target->tagName;
print 'Bubbling ? '.$e->currentTarget->tagName;
}
```
## Server Side Events
phpQuery support **server-side** events, same as jQuery handle client-side ones. On server there isn't, of course, events such as _mouseover_ (but they can be triggered).
By default, phpQuery automatically fires up only **change** event for form elements. If you load WebBrowser plugin, **submit** and **click** will be handled properly - eg submitting form with inputs' data to action URL via new [Ajax](Ajax.md) request.
$this (`this` in JS) context for handler scope **isn't available**. You have to use one of following manually:
* $event->**target**
* $event->**currentTarget**
* $event->**relatedTarget**
## Page Load
_none_
## Event Handling
* **[bind](http://docs.jquery.com/Events/bind)**[($type, $data, $fn)](http://docs.jquery.com/Events/bind) Binds a handler to one or more events (like click) for each matched element. Can also bind custom events.
* **[one](http://docs.jquery.com/Events/one)**[($type, $data, $fn)](http://docs.jquery.com/Events/one) Binds a handler to one or more events to be executed once for each matched element.
* **[trigger](http://docs.jquery.com/Events/trigger)**[($type , $data )](http://docs.jquery.com/Events/trigger) Trigger a type of event on every matched element.
* **[triggerHandler](http://docs.jquery.com/Events/triggerHandler)**[($type , $data )](http://docs.jquery.com/Events/triggerHandler) This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.
* **[unbind](http://docs.jquery.com/Events/unbind)**[($type , $data )](http://docs.jquery.com/Events/unbind) This does the opposite of bind, it removes bound events from each of the matched elements.
## Interaction Helpers
_none_
## Event Helpers
* **[change](http://docs.jquery.com/Events/change)**[()](http://docs.jquery.com/Events/change) Triggers the change event of each matched element.
* **[change](http://docs.jquery.com/Events/change)**[($fn)](http://docs.jquery.com/Events/change) Binds a function to the change event of each matched element.
* **[submit](http://docs.jquery.com/Events/submit)**[()](http://docs.jquery.com/Events/submit) Trigger the submit event of each matched element.
* **[submit](http://docs.jquery.com/Events/submit)**[($fn)](http://docs.jquery.com/Events/submit) Bind a function to the submit event of each matched element.
Read more at [Events](http://docs.jquery.com/Events) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1 @@
Renamed to [Manual](Manual.md).

View File

@@ -0,0 +1,45 @@
## Example
```
pq('div.old')->replaceWith( pq('div.new')->clone() )->appendTo('.trash')->prepend('Deleted')->...
```
# Table of Contents
* [Changing Contents](#Changing_Contents.md)
* [Inserting Inside](#Inserting_Inside.md)
* [Inserting Outside](#Inserting_Outside.md)
* [Inserting Around](#Inserting_Around.md)
* [Replacing](#Replacing.md)
* [Removing](#Removing.md)
* [Copying](#Copying.md)
## Changing Contents
* **[html](http://docs.jquery.com/Manipulation/html)**[()](http://docs.jquery.com/Manipulation/html) Get the html contents (innerHTML) of the first matched element. This property is not available on XML documents (although it will work for XHTML documents).
* **[html](http://docs.jquery.com/Manipulation/html)**[($val)](http://docs.jquery.com/Manipulation/html) Set the html contents of every matched element. This property is not available on XML documents (although it will work for XHTML documents).
* **[text](http://docs.jquery.com/Manipulation/text)**[()](http://docs.jquery.com/Manipulation/text) Get the combined text contents of all matched elements.
* **[text](http://docs.jquery.com/Manipulation/text)**[($val)](http://docs.jquery.com/Manipulation/text) Set the text contents of all matched elements.
## Inserting Inside
* **[append](http://docs.jquery.com/Manipulation/append)**[($content)](http://docs.jquery.com/Manipulation/append) Append content to the inside of every matched element.
* **[appendTo](http://docs.jquery.com/Manipulation/appendTo)**[($content)](http://docs.jquery.com/Manipulation/appendTo) Append all of the matched elements to another, specified, set of elements.
* **[prepend](http://docs.jquery.com/Manipulation/prepend)**[($content)](http://docs.jquery.com/Manipulation/prepend) Prepend content to the inside of every matched element.
* **[prependTo](http://docs.jquery.com/Manipulation/prependTo)**[($content)](http://docs.jquery.com/Manipulation/prependTo) Prepend all of the matched elements to another, specified, set of elements.
## Inserting Outside
* **[after](http://docs.jquery.com/Manipulation/after)**[($content)](http://docs.jquery.com/Manipulation/after) Insert content after each of the matched elements.
* **[before](http://docs.jquery.com/Manipulation/before)**[($content)](http://docs.jquery.com/Manipulation/before) Insert content before each of the matched elements.
* **[insertAfter](http://docs.jquery.com/Manipulation/insertAfter)**[($content)](http://docs.jquery.com/Manipulation/insertAfter) Insert all of the matched elements after another, specified, set of elements.
* **[insertBefore](http://docs.jquery.com/Manipulation/insertBefore)**[($content)](http://docs.jquery.com/Manipulation/insertBefore) Insert all of the matched elements before another, specified, set of elements.
## Inserting Around
* **[wrap](http://docs.jquery.com/Manipulation/wrap)**[($html)](http://docs.jquery.com/Manipulation/wrap) Wrap each matched element with the specified HTML content.
* **[wrap](http://docs.jquery.com/Manipulation/wrap)**[($elem)](http://docs.jquery.com/Manipulation/wrap) Wrap each matched element with the specified element.
* **[wrapAll](http://docs.jquery.com/Manipulation/wrapAll)**[($html)](http://docs.jquery.com/Manipulation/wrapAll) Wrap all the elements in the matched set into a single wrapper element.
* **[wrapAll](http://docs.jquery.com/Manipulation/wrapAll)**[($elem)](http://docs.jquery.com/Manipulation/wrapAll) Wrap all the elements in the matched set into a single wrapper element.
* **[wrapInner](http://docs.jquery.com/Manipulation/wrapInner)**[($html)](http://docs.jquery.com/Manipulation/wrapInner) Wrap the inner child contents of each matched element (including text nodes) with an HTML structure.
* **[wrapInner](http://docs.jquery.com/Manipulation/wrapInner)**[($elem)](http://docs.jquery.com/Manipulation/wrapInner) Wrap the inner child contents of each matched element (including text nodes) with a DOM element.
## Replacing
* **[replaceWith](http://docs.jquery.com/Manipulation/replaceWith)**[($content)](http://docs.jquery.com/Manipulation/replaceWith) Replaces all matched elements with the specified HTML or DOM elements.
* **[replaceAll](http://docs.jquery.com/Manipulation/replaceAll)**[($selector)](http://docs.jquery.com/Manipulation/replaceAll) Replaces the elements matched by the specified selector with the matched elements.
## Removing
* **[empty](http://docs.jquery.com/Manipulation/empty)**[()](http://docs.jquery.com/Manipulation/empty) Remove all child nodes from the set of matched elements.
* **[remove](http://docs.jquery.com/Manipulation/remove)**[($expr)](http://docs.jquery.com/Manipulation/remove) Removes all matched elements from the DOM.
## Copying
* **[clone](http://docs.jquery.com/Manipulation/clone)**[()](http://docs.jquery.com/Manipulation/clone) Clone matched DOM Elements and select the clones.
* **[clone](http://docs.jquery.com/Manipulation/clone)**[($true)](http://docs.jquery.com/Manipulation/clone) Clone matched DOM Elements, and all their event handlers, and select the clones.
Read more at [Manipulation](http://docs.jquery.com/Manipulation) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1,53 @@
## What MultiDocumentSupport is
* support for working on several documents in same time
* easy importing of nodes from one document to another
* pointing document thought
* phpQuery object
* [DOMNode](http://www.php.net/manual/en/class.domnode.php) object
* [DOMDocument](http://www.php.net/manual/en/class.domdocument.php) object
* internal document ID
* last created (or selected) document is assumed to be default in pq();
## What MultiDocumentSupport is NOT
* it's **not possible** to fetch nodes from several document in one query
* it's **not possible** to operate on nodes from several document in one phpQuery object
## Example
```
// first three documents are wrapped inside phpQuery
$doc1 = phpQuery::newDocumentFile('my-file.html');
$doc2 = phpQuery::newDocumentFile('my-file.html');
$doc3 = phpQuery::newDocumentFile('my-other-file.html');
// $doc4 is plain DOMDocument
$doc4 = new DOMDocument;
$doc4->loadHTMLFile('my-file.html');
// find first UL list in $doc1
$doc1->find('ul:first')
// append all LIs from $doc2 (node import)
->append( $doc2->find('li') )
// append UL (with new LIs) into $doc3 BODY (node import)
->appendTo( $doc3->find('body') );
// this will find all LIs from $doc3
// thats because it was created as last one
pq('li');
// this will find all LIs inside first UL in $doc2 (context query)
pq('li', $doc2->find('ul:first')->get());
// this will find all LIs in whole $doc2 (not a context query)
pq('li', $doc2->find('ul:first')->getDocumentID());
// this will transparently load $doc4 into phpQuery::$documents
// and then all LIs will be found
// TODO this example must be verified
pq('li', $doc4);
```
## Static Methods
* phpQuery::**newDocument**($html) Creates new document from markup
* phpQuery::**newDocumentFile**($file) Creates new document from file
* phpQuery::**getDocument**($id = null) Returns phpQueryObject containing document with id $id or default document (last created/selected)
* phpQuery::**selectDocument**($id) Sets default document to $id
* phpQuery::**unloadDocuments**($id = null) Unloades all or specified document from memory
* phpQuery::**getDocumentID**($source) Returns $source's document ID
* phpQuery::**getDOMDocument**($source) Get DOMDocument object related to $source
## Object Methods
* $pq->**getDocument**() Returns object with stack set to document root
* $pq->**getDocumentID**() Get object's Document ID
* $pq->**getDocumentIDRef**(&$documentID) Saves object's DocumentID to $var by reference
* $pq->**unloadDocument**() Unloads whole document from memory

View File

@@ -0,0 +1,78 @@
Although **phpQuery** is a [jQuery port](jQueryPortingState.md), there is extensive PHP-specific support.
# Table of Contents
* [Class Interfaces](#Class_Interfaces.md)
* [Iterator Interface](#Iterator.md)
* [ArrayAccess](#Array_Access.md)
* [Countable Interface](#Countable.md)
* [Callbacks](Callbacks.md)
* [PHP Code Support](#PHP_Code_Support.md)
* [Opening PHP files as DOM](#Opening_PHP_files_as_DOM.md)
* [Inputting PHP code](#Inputting_PHP_code.md)
* [Outputting PHP code](#Outputting_PHP_code.md)
## Class Interfaces
phpQuery implements some of [Standard PHP Library (SPL)](http://pl.php.net/spl) interfaces.
#### Iterator
Iterator interface allows looping objects thou native PHP **foreach loop**. Example:
```
// get all direct LI elements from UL list of class 'im-the-list'
$LIs = pq('ul.im-the-list > li');
foreach($LIs as $li) {
pq($li)->addClass('foreached');
}
```
Now there is a catch above. Foreach loop **doesn't return phpQuery object**. Instead it returns pure DOMNode. That's how jQuery does, because not always you need **phpQuery** when you found interesting nodes.
#### Array Access
If you like writing arrays, with phpQuery you can still do it, thanks to the ArrayAccess interface.
```
$pq = phpQuery::newDocumentFile('somefile.html');
// print first list outer HTML
print $pq['ul:first'];
// change INNER HTML of second LI directly in first UL
$pq['ul:first > li:eq(1)'] = 'new inner html of second LI directly in first UL';
// now look at the difference (outer vs inner)
print $pq['ul:first > li:eq(1)'];
// will print <li>new inner html of second LI directly in first UL</li>
```
#### Countable
If used to do `count($something)` you can still do this that way, instead of eg `pq('p')->size()`.
```
// count all direct LIs in first list
print count(pq('ul:first > li'));
```
## Callbacks
There is a special [Callbacks](Callbacks.md) wiki section, to which you should refer to.
## PHP Code Support
#### Opening PHP files as DOM
PHP files can be opened using **phpQuery::newDocumentPHP($markup)** or **phpQuery::newDocumentFilePHP($file)**. Such files are visible as DOM, where:
* PHP tags beetween DOM elements are available (queryable) as `<php> ...code... </php>`
* PHP tags inside attributes are HTML entities
* PHP tags between DOM element's attributes are **not yet supported**
#### Inputting PHP code
Additional methods allows placing PHP code inside DOM. Below each method visible is it's logic equivalent.
* **attrPHP**($attr, $code)
* [attr](http://docs.jquery.com/Attributes/attr)($attr, "<?php $code ?>")
* **addClassPHP**($code)
* [addClass](http://docs.jquery.com/Attributes/addClass)("<?php $code ?>")
* **beforePHP**($code)
* [before](http://docs.jquery.com/Manipulation/before)("<?php $code ?>")
* **afterPHP**($code)
* [after](http://docs.jquery.com/Manipulation/after)("<?php $code ?>")
* **prependPHP**($code)
* [prepend](http://docs.jquery.com/Manipulation/prepend)("<?php $code ?>")
* **appendPHP**($code)
* [append](http://docs.jquery.com/Manipulation/append)("<?php $code ?>")
* **php**($code)
* [html](http://docs.jquery.com/Manipulation/html)("<?php $code ?>")
* **wrapAllPHP**($codeBefore, $codeAfter)
* [wrapAll](http://docs.jquery.com/Manipulation/wrapAll)("<?php $codeBefore?><?php $codeAfter ?>")
* **wrapPHP**($codeBefore, $codeAfter)
* [wrap](http://docs.jquery.com/Manipulation/wrap)("<?php $codeBefore?><?php $codeAfter ?>")
* **wrapInnerPHP**($codeBefore, $codeAfter)
* [wrapInner](http://docs.jquery.com/Manipulation/wrapInner)("<?php $codeBefore?><?php $codeAfter ?>")
* **replaceWithPHP**($code)
* [replaceWith](http://docs.jquery.com/Manipulation/replaceWith)("<?php $code ?>")
#### Outputting PHP code
Code inserted with methods above won't be returned as valid (runnable) using classic output methods such as **html()**. To make it work, **php()** method without parameter have to be used. Optionaly **phpQuery::markupToPHP($markup)** can activate tags in string outputed before.
**REMEMBER** Outputing runnable code and placing it on webserver is always dangerous !

View File

@@ -0,0 +1,7 @@
In [Issue Tracker](http://code.google.com/p/phpquery/issues/list) there is a list of [plugins which are planned to be ported](http://code.google.com/p/phpquery/issues/list?can=2&q=label%3APort).
## JSON
Port of [JSON](http://jollytoad.googlepages.com/json.js) plugin.
```
$jsonString = phpQuery::toJSON( pq('form')->serializeArray() );
$array = phpQuery::parseJSON('{"foo": "bar"}');
```

View File

@@ -0,0 +1,77 @@
If you need to write plugin only for simple task, write a **script** using ScriptsPlugin.
## Using plugins
Plugins are loaded using **plugin** method from phpQueryObject or phpQuery static namespace.
```
// all calls to plugin below are equal
phpQuery::plugin('example')
phpQuery::plugin('example', 'example.php')
pq('ul')->plugin('example')
pq('ul')->plugin('example', 'example.php')
```
## Writing plugins
Plugin consist from 2 classes - first extending **phpQueryObjects** (result of pq(); function) and second, extending static **phpQuery::$plugins** namespace. Plugin classes are never intialized, just method calls are forwarded in static way from phpQuery.
#### Extending phpQueryObject
```
/**
* phpQuery plugin class extending phpQuery object.
* Methods from this class are callable on every phpQuery object.
*
* Class name prefix 'phpQueryObjectPlugin_' must be preserved.
*/
abstract class phpQueryObjectPlugin_example {
/**
* Limit binded methods.
*
* null means all public.
* array means only specified ones.
*
* @var array|null
*/
public static $phpQueryMethods = null;
/**
* Enter description here...
*
* @param phpQueryObject $self
*/
public static function example($self, $arg1) {
// this method can be called on any phpQuery object, like this:
// pq('div')->example('$arg1 Value')
// do something
$self->append('Im just an example !');
// change stack of result object
return $self->find('div');
}
protected static function helperFunction() {
// this method WONT be avaible as phpQuery method,
// because it isn't publicly callable
}
}
```
#### Extending phpQuery
```
/**
* phpQuery plugin class extending phpQuery static namespace.
* Methods from this class are callable as follows:
* phpQuery::$plugins->staticMethod()
*
* Class name prefix 'phpQueryPlugin_' must be preserved.
*/
abstract class phpQueryPlugin_example {
/**
* Limit binded methods.
*
* null means all public.
* array means only specified ones.
*
* @var array|null
*/
public static $phpQueryMethods = null;
public static function staticMethod() {
// this method can be called within phpQuery class namespace, like this:
// phpQuery::$plugins->staticMethod()
}
}
```

View File

@@ -0,0 +1,24 @@
1. [Basics](Basics.md)
1. [Ported jQuery sections](jQueryPortingState.md)
1. [Selectors](Selectors.md)
1. [Attributes](Attributes.md)
1. [Traversing](Traversing.md)
1. [Manipulation](Manipulation.md)
1. [Ajax](Ajax.md)
1. [Events](Events.md)
1. [Utilities](Utilities.md)
1. [Plugin ports](PluginsClientSidePorts.md)
1. [PHP Support](PHPSupport.md)
1. [Command Line Interface](CommandLineInterface.md)
1. [Multi document support](MultiDocumentSupport.md)
1. [Plugins](PluginsServerSide.md)
1. [WebBrowser](WebBrowser.md)
1. [Scripts](ScriptsPlugin.md)
1. [jQueryServer](jQueryServer.md)
1. [Debugging](Debugging.md)
1. Bootstrap file
This manual is copied from http://code.google.com/p/phpquery/wiki/Manual
The wiki was downloaded from the [Google Code source repository for phpQuery](https://code.google.com/p/phpquery/source/browse/#svn%2Fwiki), which is under the MIT License.

View File

@@ -0,0 +1,11 @@
# This page is TODO
## Formats
* RPM
* ZIP
## Forms
* Standard
* OneFile
* Broken plugins support ?
* ZendFramework not included

View File

@@ -0,0 +1,24 @@
ScriptsPlugin simplifies writing short code scripts which can be easily reused (chained). It removes plugin overhead allowing script to be one-line command.
## Using scripts
Before using any script, you need to load **Scripts** plugin, like so:
```
phpQuery::plugin('Scripts');
// or inside a chain
pq('li')->plugin('Scripts');
```
After that, any available script can be used thou **script** method.
```
print pq('div')->script('safe_print');
```
## Writing scripts
Scripts are placed in **/phpQuery/plugins/Scripts**. Each script has it's own file. Each file has access to 4 variables:
* **$self** Represents $this
* **$params** Represents parameters passed to script() method (without script name)
* **$return** If not null, will be used as method result
* **$config** Content of config.php file
By default each script returns $self aka $this.
##### Example script
```
$return = $self->find($params[0]);
```

View File

@@ -0,0 +1,76 @@
Selectors are the heart of jQuery-like interface. Most of [CSS Level 3](http://www.w3.org/TR/2005/WD-css3-selectors-20051215/) syntax is implemented (in state same as in jQuery).
## Example
```
pq(".class ul > li[rel='foo']:first:has(a)")->appendTo('.append-target-wrapper div')->...
```
# Table of Contents
* [Basics](#Basics.md)
* [Hierarchy](#Hierarchy.md)
* [Basic Filters](#Basic_Filters.md)
* [Content Filters](#Content_Filters.md)
* [Visibility Filters](#Visibility_Filters.md)
* [Attribute Filters](#Attribute_Filters.md)
* [Child Filters](#Child_Filters.md)
* [Forms](#Forms.md)
* [Form Filters](#Form_Filters.md)
## Basics
* **[#id](http://docs.jquery.com/Selectors/id)** Matches a single element with the given id attribute.
* **[element](http://docs.jquery.com/Selectors/element)** Matches all elements with the given name.
* **[.class](http://docs.jquery.com/Selectors/class)** Matches all elements with the given class.
* **[\*](http://docs.jquery.com/Selectors/all)** Matches all elements.
* **[selector1, selector2, selectorN](http://docs.jquery.com/Selectors/multiple)** Matches the combined results of all the specified selectors.
## Hierarchy
* **[ancestor descendant](http://docs.jquery.com/Selectors/descendant)** Matches all descendant elements specified by "descendant" of elements specified by "ancestor".
* **[parent > child](http://docs.jquery.com/Selectors/child)** Matches all child elements specified by "child" of elements specified by "parent".
* **[prev + next](http://docs.jquery.com/Selectors/next)** Matches all next elements specified by "next" that are next to elements specified by "prev".
* **[prev ~ siblings](http://docs.jquery.com/Selectors/siblings)** Matches all sibling elements after the "prev" element that match the filtering "siblings" selector.
## Basic Filters
* **[:first](http://docs.jquery.com/Selectors/first)** Matches the first selected element.
* **[:last](http://docs.jquery.com/Selectors/last)** Matches the last selected element.
* **[:not(selector)](http://docs.jquery.com/Selectors/not)** Filters out all elements matching the given selector.
* **[:even](http://docs.jquery.com/Selectors/even)** Matches even elements, zero-indexed.
* **[:odd](http://docs.jquery.com/Selectors/odd)** Matches odd elements, zero-indexed.
* **[:eq(index)](http://docs.jquery.com/Selectors/eq)** Matches a single element by its index.
* **[:gt(index)](http://docs.jquery.com/Selectors/gt)** Matches all elements with an index above the given one.
* **[:lt(index)](http://docs.jquery.com/Selectors/lt)** Matches all elements with an index below the given one.
* **[:header](http://docs.jquery.com/Selectors/header)** Matches all elements that are headers, like h1, h2, h3 and so on.
* **[:animated](http://docs.jquery.com/Selectors/animated)** Matches all elements that are currently being animated.
## Content Filters
* **[:contains(text)](http://docs.jquery.com/Selectors/contains)** Matches elements which contain the given text.
* **[:empty](http://docs.jquery.com/Selectors/empty)** Matches all elements that have no children (including text nodes).
* **[:has(selector)](http://docs.jquery.com/Selectors/has)** Matches elements which contain at least one element that matches the specified selector.
* **[:parent](http://docs.jquery.com/Selectors/parent)** Matches all elements that are parents - they have child elements, including text.
## Visibility Filters
_none_
## Attribute Filters
* **[[attribute](http://docs.jquery.com/Selectors/attributeHas)]** Matches elements that have the specified attribute.
* **[[attribute=value](http://docs.jquery.com/Selectors/attributeEquals)]** Matches elements that have the specified attribute with a certain value.
* **[[attribute!=value](http://docs.jquery.com/Selectors/attributeNotEqual)]** Matches elements that don't have the specified attribute with a certain value.
* **[[attribute^=value](http://docs.jquery.com/Selectors/attributeStartsWith)]** Matches elements that have the specified attribute and it starts with a certain value.
* **[[attribute$=value](http://docs.jquery.com/Selectors/attributeEndsWith)]** Matches elements that have the specified attribute and it ends with a certain value.
* **[[attribute\*=value](http://docs.jquery.com/Selectors/attributeContains)]** Matches elements that have the specified attribute and it contains a certain value.
* **[[selector1](http://docs.jquery.com/Selectors/attributeMultiple)[selector2](selector2.md)[selectorN](selectorN.md)]** Matches elements that have the specified attribute and it contains a certain value.
## Child Filters
* **[:nth-child(index/even/odd/equation)](http://docs.jquery.com/Selectors/nthChild)** Matches all elements that are the nth-child of their parent or that are the parent's even or odd children.
* **[:first-child](http://docs.jquery.com/Selectors/firstChild)** Matches all elements that are the first child of their parent.
* **[:last-child](http://docs.jquery.com/Selectors/lastChild)** Matches all elements that are the last child of their parent.
* **[:only-child](http://docs.jquery.com/Selectors/onlyChild)** Matches all elements that are the only child of their parent.
## Forms
* **[:input](http://docs.jquery.com/Selectors/input)** Matches all input, textarea, select and button elements.
* **[:text](http://docs.jquery.com/Selectors/text)** Matches all input elements of type text.
* **[:password](http://docs.jquery.com/Selectors/password)** Matches all input elements of type password.
* **[:radio](http://docs.jquery.com/Selectors/radio)** Matches all input elements of type radio.
* **[:checkbox](http://docs.jquery.com/Selectors/checkbox)** Matches all input elements of type checkbox.
* **[:submit](http://docs.jquery.com/Selectors/submit)** Matches all input elements of type submit.
* **[:image](http://docs.jquery.com/Selectors/image)** Matches all input elements of type image.
* **[:reset](http://docs.jquery.com/Selectors/reset)** Matches all input elements of type reset.
* **[:button](http://docs.jquery.com/Selectors/button)** Matches all button elements and input elements of type button.
* **[:file](http://docs.jquery.com/Selectors/file)** Matches all input elements of type file.
* **[:hidden](http://docs.jquery.com/Selectors/hidden)** Matches all elements that are hidden, or input elements of type "hidden".
## Form Filters
* **[:enabled](http://docs.jquery.com/Selectors/enabled)** Matches all elements that are enabled.
* **[:disabled](http://docs.jquery.com/Selectors/disabled)** Matches all elements that are disabled.
* **[:checked](http://docs.jquery.com/Selectors/checked)** Matches all elements that are checked.
* **[:selected](http://docs.jquery.com/Selectors/selected)** Matches all elements that are selected.
Read more at [Selectors](http://docs.jquery.com/Selectors) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1,34 @@
## Example
```
pq('div > p')->add('div > ul')->filter(':has(a)')->find('p:first')->nextAll()->andSelf()->...
```
# Table of Contents
* [Filtering](#Filtering.md)
* [Finding](#Finding.md)
* [Chaining](#Chaining.md)
## Filtering
* **[eq](http://docs.jquery.com/Traversing/eq)**[($index)](http://docs.jquery.com/Traversing/eq) Reduce the set of matched elements to a single element.
* **[hasClass](http://docs.jquery.com/Traversing/hasClass)**[($class)](http://docs.jquery.com/Traversing/hasClass) Checks the current selection against a class and returns true, if at least one element of the selection has the given class.
* **[filter](http://docs.jquery.com/Traversing/filter)**[($expr)](http://docs.jquery.com/Traversing/filter) Removes all elements from the set of matched elements that do not match the specified expression(s).
* **[filter](http://docs.jquery.com/Traversing/filter)**[($fn)](http://docs.jquery.com/Traversing/filter) Removes all elements from the set of matched elements that does not match the specified function.
* **[is](http://docs.jquery.com/Traversing/is)**[($expr)](http://docs.jquery.com/Traversing/is) Checks the current selection against an expression and returns true, if at least one element of the selection fits the given expression.
* **[map](http://docs.jquery.com/Traversing/map)**[($callback)](http://docs.jquery.com/Traversing/map) Translate a set of elements in the jQuery object into another set of values in an array (which may, or may not, be elements).
* **[not](http://docs.jquery.com/Traversing/not)**[($expr)](http://docs.jquery.com/Traversing/not) Removes elements matching the specified expression from the set of matched elements.
* **[slice](http://docs.jquery.com/Traversing/slice)**[($start, $end)](http://docs.jquery.com/Traversing/slice) Selects a subset of the matched elements.
## Finding
* **[add](http://docs.jquery.com/Traversing/add)**[($expr)](http://docs.jquery.com/Traversing/add) Adds more elements, matched by the given expression, to the set of matched elements.
* **[children](http://docs.jquery.com/Traversing/children)**[($expr)](http://docs.jquery.com/Traversing/children) Get a set of elements containing all of the unique immediate children of each of the matched set of elements.
* **[contents](http://docs.jquery.com/Traversing/contents)**[()](http://docs.jquery.com/Traversing/contents) Find all the child nodes inside the matched elements (including text nodes), or the content document, if the element is an iframe.
* **[find](http://docs.jquery.com/Traversing/find)**[($expr)](http://docs.jquery.com/Traversing/find) Searches for all elements that match the specified expression. This method is a good way to find additional descendant elements with which to process.
* **[next](http://docs.jquery.com/Traversing/next)**[($expr)](http://docs.jquery.com/Traversing/next) Get a set of elements containing the unique next siblings of each of the given set of elements.
* **[nextAll](http://docs.jquery.com/Traversing/nextAll)**[($expr)](http://docs.jquery.com/Traversing/nextAll) Find all sibling elements after the current element.
* **[parent](http://docs.jquery.com/Traversing/parent)**[($expr)](http://docs.jquery.com/Traversing/parent) Get a set of elements containing the unique parents of the matched set of elements.
* **[parents](http://docs.jquery.com/Traversing/parents)**[($expr)](http://docs.jquery.com/Traversing/parents) Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element). The matched elements can be filtered with an optional expression.
* **[prev](http://docs.jquery.com/Traversing/prev)**[($expr)](http://docs.jquery.com/Traversing/prev) Get a set of elements containing the unique previous siblings of each of the matched set of elements.
* **[prevAll](http://docs.jquery.com/Traversing/prevAll)**[($expr)](http://docs.jquery.com/Traversing/prevAll) Find all sibling elements before the current element.
* **[siblings](http://docs.jquery.com/Traversing/siblings)**[($expr)](http://docs.jquery.com/Traversing/siblings) Get a set of elements containing all of the unique siblings of each of the matched set of elements. Can be filtered with an optional expressions.
## Chaining
* **[andSelf](http://docs.jquery.com/Traversing/andSelf)**[()](http://docs.jquery.com/Traversing/andSelf) Add the previous selection to the current selection.
* **[end](http://docs.jquery.com/Traversing/end)**[()](http://docs.jquery.com/Traversing/end) Revert the most recent 'destructive' operation, changing the set of matched elements to its previous state (right before the destructive operation).
Read more at [Traversing](http://docs.jquery.com/Traversing) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1,20 @@
# Table of Contents
* [User Agent](#User_Agent.md)
* [Array and Object operations](#Array_and_Object_operations.md)
* [Test operations](#Test_operations.md)
* [String operations](#String_operations.md)
## User Agent
_none_
## Array and Object operations
* **[phpQuery::each](http://docs.jquery.com/Utilities/jQuery.each)**[($object, $callback)](http://docs.jquery.com/Utilities/jQuery.each) A generic iterator function, which can be used to seamlessly iterate over both objects and arrays.
* **[phpQuery::grep](http://docs.jquery.com/Utilities/jQuery.grep)**[($array, $callback, $invert)](http://docs.jquery.com/Utilities/jQuery.grep) Filter items out of an array, by using a filter function.
* **[phpQuery::makeArray](http://docs.jquery.com/Utilities/jQuery.makeArray)**[($obj)](http://docs.jquery.com/Utilities/jQuery.makeArray) Turns an array-like object into a true array.
* **[phpQuery::map](http://docs.jquery.com/Utilities/jQuery.map)**[($array, $callback)](http://docs.jquery.com/Utilities/jQuery.map) Translate all items in an array to another array of items.
* **[phpQuery::inArray](http://docs.jquery.com/Utilities/jQuery.inArray)**[($value, $array)](http://docs.jquery.com/Utilities/jQuery.inArray) Determine the index of the first parameter in the Array (-1 if not found).
* **[phpQuery::unique](http://docs.jquery.com/Utilities/jQuery.unique)**[($array)](http://docs.jquery.com/Utilities/jQuery.unique) Remove all duplicate elements from an array of elements.
## Test operations
* **[phpQuery::isFunction](http://docs.jquery.com/Utilities/jQuery.isFunction)**[($obj)](http://docs.jquery.com/Utilities/jQuery.isFunction) Determine if the parameter passed is a function.
## String operations
* **[phpQuery::trim](http://docs.jquery.com/Utilities/jQuery.trim)**[($str)](http://docs.jquery.com/Utilities/jQuery.trim) Remove the whitespace from the beginning and end of a string.
Read more at [Utilities](http://docs.jquery.com/Utilities) section on [jQuery Documentation Site](http://docs.jquery.com/).

View File

@@ -0,0 +1,37 @@
**WebBrowser** is a phpQuery [plugin](PluginsServerSide.md) that mimics behaviors of web browser. Thanks to that developer can simulate user's behavior inside a PHP script.
## Supported
* Link navigation (click event)
* Form navigation (submit event)
* Cookies (thought [Zend\_Http\_CookieJar](http://framework.zend.com/manual/en/zend.http.cookies.html))
* Relative links
* document.location (not an object, yet)
## Use cases
* Fill forms and submit them easly
* Login to secure pages and collect content
* Write test cases reproducing browsing proccess
## Example 1
Adding web browser functionality to existing phpQuery object and submiting the form.
```
->WebBrowser('callback')->find('form')->submit()->...
```
## Example 2
Querying Google against "search phrase":
```
require_once('phpQuery/phpQuery.php');
phpQuery::browserGet('http://www.google.com/', 'success1');
function success1($browser) {
$browser
->WebBrowser('success2')
->find('input[name=q]')
->val('search phrase')
->parents('form')
->submit();
}
function success2($browser) {
print $browser;
}
```

View File

@@ -0,0 +1 @@
Renamed to [jQueryPortingState](jQueryPortingState.md).

View File

@@ -0,0 +1,3 @@
jQuery helper libraries written in PHP
* [jquery-php](http://code.google.com/p/jquery-php/)
* [PQuery](http://www.ngcoders.com/php/pquery-php-and-jquery)

View File

@@ -0,0 +1,29 @@
phpQuery is almost a full port of the [jQuery JavaScript Library](http://jquery.com/).
## Ported Sections
1. [Selectors](Selectors.md)
1. [Attributes](Attributes.md)
1. [Traversing](Traversing.md)
1. [Manipulation](Manipulation.md)
1. [Ajax](Ajax.md)
1. [Events](Events.md)
1. [Utilities](Utilities.md)
1. [Plugin ports](PluginsClientSidePorts.md)
## Additional methods
phpQuery features many additional methods comparing to jQuery:
* htmlOuter()
* xml()
* xmlOuter()
* markup()
* markupOuter()
* getString()
* reverse()
* contentsUnwrap()
* switchWith()
* all from [PHPSupport](PHPSupport.md)
* all from [Basic](Basic.md)
* all from [MultiDocumentSupport](MultiDocumentSupport.md)
## Other Differences
* [Server Side Events](http://code.google.com/p/phpquery/wiki/Events?ts=1225458859&updated=Events#Server_Side_Events)

View File

@@ -0,0 +1,16 @@
**jQueryServer** is a jQuery plugin giving unobstrusive, client-side bindings to server-side implementation of jQuery.
## Example scenario
1. Connect to server and make an [Ajax](Ajax.md) request to somewhere ([crossdomain allowed](CrossDomainAjax.md))
1. Do some manipulations, you can even trigger a [server-side event](http://code.google.com/p/phpquery/wiki/Events#Server_Side_Events)
1. Get processed date back to the browser
## Example code
```
$.server({url: 'http://somesite.com'})
.find('.my-class')
.client(function(response){
$('.destination').html(response);
});
```
Since version **0.5.1** (this is **not** phpQuery release version number) there is a support for config file which **authorizes** [Ajax](Ajax.md) hosts and referers.

View File

@@ -0,0 +1,6 @@
jQuery ports to server-side languages:
* **PHP** - [phpQuery](http://code.google.com/p/phpquery/)
* **ActionScript** - [as3query](http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html)
* **Ruby** - [hpricot](http://code.whytheluckystiff.net/hpricot/)
* **Perl** - [pQuery](http://search.cpan.org/~ingy/pQuery/lib/pQuery.pm)
* **Python** - [PyQuery](http://pypi.python.org/pypi/pyquery)