First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1 @@
phpquery-git

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="?*.properties" />
<entry name="?*.xml" />
<entry name="?*.gif" />
<entry name="?*.png" />
<entry name="?*.jpeg" />
<entry name="?*.jpg" />
<entry name="?*.html" />
<entry name="?*.dtd" />
<entry name="?*.tld" />
<entry name="?*.ftl" />
</wildcardResourcePatterns>
<annotationProcessing enabled="false" useClasspath="true" />
</component>
</project>

View file

@ -0,0 +1,5 @@
<component name="CopyrightManager">
<settings default="">
<module2copyright />
</settings>
</component>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>

View file

@ -0,0 +1,7 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0" is_locked="false">
<option name="myName" value="Project Default" />
<option name="myLocal" value="false" />
<inspection_tool class="CssUnusedSymbolInspection" enabled="false" level="WARNING" enabled_by_default="false" />
</profile>
</component>

View file

@ -0,0 +1,7 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="PROJECT_PROFILE" value="Project Default" />
<option name="USE_PROJECT_PROFILE" value="true" />
<version value="1.0" />
</settings>
</component>

View file

@ -0,0 +1,339 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DBNavigator.Project.ConnectionManager">
<connections />
</component>
<component name="DBNavigator.Project.DataEditorManager">
<record-editor-column-sorting value="INDEXED" />
</component>
<component name="DBNavigator.Project.DataExportManager">
<export-instructions>
<create-header value="true" />
<quote-values-containing-separator value="true" />
<quote-all-values value="false" />
<value-separator value="" />
<file-name value="" />
<file-location value="" />
<scope value="GLOBAL" />
<destination value="FILE" />
<processor value="EXCEL" />
</export-instructions>
</component>
<component name="DBNavigator.Project.DatabaseBrowserManager">
<autoscroll-to-editor value="false" />
<autoscroll-from-editor value="true" />
<show-object-properties value="true" />
</component>
<component name="DBNavigator.Project.MethodExecutionManager">
<group-history-entries value="false" />
<method-browser />
<execution-inputs />
</component>
<component name="DBNavigator.Project.Settings">
<browser-settings>
<general>
<display-mode value="SIMPLE" />
<navigation-history-size value="100" />
<show-object-details value="false" />
</general>
<filters>
<visible-objects>
<object-type name="SCHEMA" enabled="true" />
<object-type name="USER" enabled="true" />
<object-type name="ROLE" enabled="true" />
<object-type name="PRIVILEGE" enabled="true" />
<object-type name="CHARSET" enabled="true" />
<object-type name="TABLE" enabled="true" />
<object-type name="VIEW" enabled="true" />
<object-type name="MATERIALIZED VIEW" enabled="true" />
<object-type name="NESTED TABLE" enabled="true" />
<object-type name="COLUMN" enabled="true" />
<object-type name="INDEX" enabled="true" />
<object-type name="CONSTRAINT" enabled="true" />
<object-type name="TRIGGER" enabled="true" />
<object-type name="SYNONYM" enabled="true" />
<object-type name="SEQUENCE" enabled="true" />
<object-type name="PROCEDURE" enabled="true" />
<object-type name="FUNCTION" enabled="true" />
<object-type name="PACKAGE" enabled="true" />
<object-type name="TYPE" enabled="true" />
<object-type name="TYPE ATTRIBUTE" enabled="true" />
<object-type name="ARGUMENT" enabled="true" />
<object-type name="DIMENSION" enabled="true" />
<object-type name="CLUSTER" enabled="true" />
<object-type name="DBLINK" enabled="true" />
</visible-objects>
</filters>
</browser-settings>
<navigation-settings>
<lookup-filters>
<lookup-objects>
<object-type name="SCHEMA" enabled="true" />
<object-type name="USER" enabled="false" />
<object-type name="ROLE" enabled="false" />
<object-type name="PRIVILEGE" enabled="false" />
<object-type name="CHARSET" enabled="false" />
<object-type name="TABLE" enabled="true" />
<object-type name="VIEW" enabled="true" />
<object-type name="MATERIALIZED VIEW" enabled="true" />
<object-type name="NESTED TABLE" enabled="false" />
<object-type name="COLUMN" enabled="false" />
<object-type name="INDEX" enabled="true" />
<object-type name="CONSTRAINT" enabled="true" />
<object-type name="TRIGGER" enabled="true" />
<object-type name="SYNONYM" enabled="false" />
<object-type name="SEQUENCE" enabled="true" />
<object-type name="PROCEDURE" enabled="true" />
<object-type name="FUNCTION" enabled="true" />
<object-type name="PACKAGE" enabled="true" />
<object-type name="TYPE" enabled="true" />
<object-type name="TYPE ATTRIBUTE" enabled="false" />
<object-type name="ARGUMENT" enabled="false" />
<object-type name="DIMENSION" enabled="false" />
<object-type name="CLUSTER" enabled="false" />
<object-type name="DBLINK" enabled="true" />
</lookup-objects>
<force-database-load value="false" />
<prompt-connection-selection value="true" />
</lookup-filters>
</navigation-settings>
<dataset-editor-settings>
<autopopup-text-editor active="true" active-if-empty="false" data-length-threshold="100" delay="1000" />
<values-list-popup>
<active-for-primary-keys value="false" />
<threshold-upper-limit value="1000" />
</values-list-popup>
<general>
<fetch-block-size value="100" />
<fetch-timeout value="20" />
<trim-whitespaces value="true" />
<convert-empty-strings-to-null value="true" />
<select-content-on-cell-edit value="true" />
</general>
<filters>
<prompt-filter-dialog value="true" />
<default-filter-type value="BASIC" />
</filters>
<lob-content-types text-length-threshold="300">
<content-type name="Text" enabled="true" />
<content-type name="XML" enabled="true" />
<content-type name="DTD" enabled="true" />
<content-type name="HTML" enabled="true" />
<content-type name="XHTML" enabled="true" />
<content-type name="CSS" enabled="true" />
<content-type name="SQL" enabled="true" />
<content-type name="PL/SQL" enabled="true" />
<content-type name="JavaScript" enabled="true" />
<content-type name="PHP" enabled="true" />
<content-type name="ASP" enabled="true" />
<content-type name="YAML" enabled="true" />
</lob-content-types>
</dataset-editor-settings>
<code-completion-settings>
<filters>
<basic-filter>
<filter-element type="RESERVED_WORD" id="keyword" selected="true" />
<filter-element type="RESERVED_WORD" id="function" selected="false" />
<filter-element type="RESERVED_WORD" id="parameter" selected="false" />
<filter-element type="RESERVED_WORD" id="datatype" selected="true" />
<filter-element type="OBJECT" id="schema" selected="true" />
<filter-element type="OBJECT" id="user" selected="true" />
<user-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="false" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</user-schema>
<public-schema>
<filter-element type="OBJECT" id="table" selected="false" />
<filter-element type="OBJECT" id="view" selected="false" />
<filter-element type="OBJECT" id="materialized view" selected="false" />
<filter-element type="OBJECT" id="index" selected="false" />
<filter-element type="OBJECT" id="constraint" selected="false" />
<filter-element type="OBJECT" id="trigger" selected="false" />
<filter-element type="OBJECT" id="synonym" selected="false" />
<filter-element type="OBJECT" id="sequence" selected="false" />
<filter-element type="OBJECT" id="procedure" selected="false" />
<filter-element type="OBJECT" id="function" selected="false" />
<filter-element type="OBJECT" id="package" selected="false" />
<filter-element type="OBJECT" id="type" selected="false" />
<filter-element type="OBJECT" id="dimension" selected="false" />
<filter-element type="OBJECT" id="cluster" selected="false" />
<filter-element type="OBJECT" id="dblink" selected="false" />
</public-schema>
<any-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</any-schema>
</basic-filter>
<smart-filter>
<filter-element type="RESERVED_WORD" id="keyword" selected="true" />
<filter-element type="RESERVED_WORD" id="function" selected="true" />
<filter-element type="RESERVED_WORD" id="parameter" selected="true" />
<filter-element type="RESERVED_WORD" id="datatype" selected="true" />
<filter-element type="OBJECT" id="schema" selected="true" />
<filter-element type="OBJECT" id="user" selected="true" />
<user-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</user-schema>
<public-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</public-schema>
<any-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</any-schema>
</smart-filter>
</filters>
<sorting enabled="true">
<sorting-element type="RESERVED_WORD" id="keyword" />
<sorting-element type="RESERVED_WORD" id="datatype" />
<sorting-element type="OBJECT" id="column" />
<sorting-element type="OBJECT" id="table" />
<sorting-element type="OBJECT" id="view" />
<sorting-element type="OBJECT" id="materialized view" />
<sorting-element type="OBJECT" id="index" />
<sorting-element type="OBJECT" id="constraint" />
<sorting-element type="OBJECT" id="trigger" />
<sorting-element type="OBJECT" id="synonym" />
<sorting-element type="OBJECT" id="sequence" />
<sorting-element type="OBJECT" id="procedure" />
<sorting-element type="OBJECT" id="function" />
<sorting-element type="OBJECT" id="package" />
<sorting-element type="OBJECT" id="type" />
<sorting-element type="OBJECT" id="dimension" />
<sorting-element type="OBJECT" id="cluster" />
<sorting-element type="OBJECT" id="dblink" />
<sorting-element type="OBJECT" id="schema" />
<sorting-element type="RESERVED_WORD" id="function" />
<sorting-element type="RESERVED_WORD" id="parameter" />
</sorting>
</code-completion-settings>
<execution-engine-settings>
<statement-execution>
<fetch-block-size value="100" />
<execution-timeout value="20" />
</statement-execution>
<compiler>
<compile-type value="KEEP" />
<always-show-controls value="false" />
</compiler>
</execution-engine-settings>
<ddl-file-settings>
<extensions>
<mapping file-type-id="VIEW" extensions="vw" />
<mapping file-type-id="TRIGGER" extensions="trg" />
<mapping file-type-id="PROCEDURE" extensions="prc" />
<mapping file-type-id="FUNCTION" extensions="fnc" />
<mapping file-type-id="PACKAGE" extensions="pkg" />
<mapping file-type-id="PACKAGE_SPEC" extensions="pks" />
<mapping file-type-id="PACKAGE_BODY" extensions="pkb" />
<mapping file-type-id="TYPE" extensions="tpe" />
<mapping file-type-id="TYPE_SPEC" extensions="tps" />
<mapping file-type-id="TYPE_BODY" extensions="tpb" />
</extensions>
<general>
<statement-postfix value="/" />
<lookup-ddl-files value="true" />
<create-ddl-files value="false" />
</general>
</ddl-file-settings>
<general-settings>
<regional-settings>
<date-format value="MEDIUM" />
<number-format value="UNGROUPED" />
<locale value="SYSTEM_DEFAULT" />
</regional-settings>
</general-settings>
</component>
<component name="DependencyValidationManager">
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</component>
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" />
<option name="OPTION_SCOPE" value="protected" />
<option name="OPTION_HIERARCHY" value="true" />
<option name="OPTION_NAVIGATOR" value="true" />
<option name="OPTION_INDEX" value="true" />
<option name="OPTION_SEPARATE_INDEX" value="true" />
<option name="OPTION_DOCUMENT_TAG_USE" value="false" />
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
<option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
<option name="OPTION_DEPRECATED_LIST" value="true" />
<option name="OTHER_OPTIONS" value="" />
<option name="HEAP_SIZE" />
<option name="LOCALE" />
<option name="OPEN_IN_BROWSER" value="true" />
</component>
<component name="ProjectResources">
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
</component>
<component name="ProjectRootManager" version="2" />
</project>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/phpquery-git.iml" filepath="$PROJECT_DIR$/.idea/phpquery-git.iml" />
</modules>
</component>
</project>

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpProjectConfiguration">
<sdk>
<PhpSdkConfig version="5.2.13" home="/Applications/MAMP/bin/php5/bin">
<include_paths>
<path value="." />
<path value="/Applications/MAMP/bin/php5.2/lib/php" />
<path value="/Applications/MAMP/bin/php5/lib/php" />
<path value="$USER_HOME$/Sources/php" />
</include_paths>
</PhpSdkConfig>
</sdk>
</component>
</project>

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="DBNavigator.Module.ConnectionManager">
<connections />
</component>
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="PHP 5.2.13">
<CLASSES>
<root url="file://$USER_HOME$/Sources/php" />
<root url="file:///Applications/MAMP/bin/php5/lib/php" />
<root url="file:///Applications/MAMP/bin/php5.2/lib/php" />
</CLASSES>
<SOURCES />
</library>
</orderEntry>
</component>
</module>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View file

@ -0,0 +1,77 @@
## 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/fmorrow/pQuery--PHPQuery- (big project so far)
* 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
## 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>

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>

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,24 @@
{
"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": "0.9.6"
,"keywords": []
,"homepage": "http://code.google.com/p/phpquery/"
,"license": "MIT"
,"authors": [
{
"name": "Tobiasz Cudnik"
,"email": "tobiasz.cudnik@gmail.com"
,"homepage": "https://github.com/TobiaszCudnik"
,"role": "Developer"
}
,{
"name": "didier Belot"
,"role": "Packager"
}
],
"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,681 @@
<?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);
$return = phpQuery::$debug === 2
? $this->document->loadHTML($markup)
: @$this->document->loadHTML($markup);
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) {
$test = null;
$test =
$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;
// 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,4 @@
<div>
<span>Hello World!</span>
<span>ąśżźć</span>
</div>

View file

@ -0,0 +1,15 @@
<br />
<p>Test: &nbsp; żźć</p>
<p>This is an example of an
<abbr title="Extensible HyperText Markup Language">XHTML</abbr> 1.0 Strict document.<br />
<img id="validation-icon"
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" /><br />
<object id="pdf-object"
name="pdf-object"
type="application/pdf"
data="http://www.w3.org/TR/xhtml1/xhtml1.pdf"
width="100%"
height="500">
</object>
</p>

View file

@ -0,0 +1,10 @@
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
<step>Charset test: ąśżźć</step>
</instructions>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML document without charset (encoded in ISO-8859-2)</title>
</head>
<body>
<span>Hello World!</span>
<span>±¶¿¼æ</span>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">-->
<head>
<title>XHTML 1.0 Example</title>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function loadpdf() {
document.getElementById("pdf-object").src="http://www.w3.org/TR/xhtml1/xhtml1.pdf";
}
//--><!]]>
</script>
</head>
<body onload="loadpdf()">
<p>Test: &nbsp; ¿¼æ</p>
<p>This is an example of an
<abbr title="Extensible HyperText Markup Language">XHTML</abbr> 1.0 Strict document.<br />
<img id="validation-icon"
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" /><br />
<object id="pdf-object"
name="pdf-object"
type="application/pdf"
data="http://www.w3.org/TR/xhtml1/xhtml1.pdf"
width="100%"
height="500">
</object>
</p>
</body>
</html>

View file

@ -0,0 +1,17 @@
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="8" unit="dL">Flour</ingredient>
<ingredient amount="10" unit="grams">Yeast</ingredient>
<ingredient amount="4" unit="dL" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
<step>Charset test: ±¶¿¼æ</step>
</instructions>
</recipe>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML document with ISO-8859-2 charset</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-2">
</head>
<body>
<span>Hello World!</span>
<span>±¶¿¼æ</span>
</body>
</html>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>XHTML 1.0 Example</title>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function loadpdf() {
document.getElementById("pdf-object").src="http://www.w3.org/TR/xhtml1/xhtml1.pdf";
}
//--><!]]>
</script>
</head>
<body onload="loadpdf()">
<p>Test: &nbsp; ¿¼æ</p>
<p>This is an example of an
<abbr title="Extensible HyperText Markup Language">XHTML</abbr> 1.0 Strict document.<br />
<img id="validation-icon"
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" /><br />
<object id="pdf-object"
name="pdf-object"
type="application/pdf"
data="http://www.w3.org/TR/xhtml1/xhtml1.pdf"
width="100%"
height="500">
</object>
</p>
</body>
</html>

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="ISO-8859-2"?>
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="8" unit="dL">Flour</ingredient>
<ingredient amount="10" unit="grams">Yeast</ingredient>
<ingredient amount="4" unit="dL" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
<step>Charset test: ±¶¿¼æ</step>
</instructions>
</recipe>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML document without charset (encoded in UTF-8)</title>
</head>
<body>
<span>Hello World!</span>
<span>ąśżźć</span>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">-->
<head>
<title>XHTML 1.0 Example</title>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function loadpdf() {
document.getElementById("pdf-object").src="http://www.w3.org/TR/xhtml1/xhtml1.pdf";
}
//--><!]]>
</script>
</head>
<body onload="loadpdf()">
<p>Test: &nbsp; żźć</p>
<p>This is an example of an
<abbr title="Extensible HyperText Markup Language">XHTML</abbr> 1.0 Strict document.<br />
<img id="validation-icon"
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" /><br />
<object id="pdf-object"
name="pdf-object"
type="application/pdf"
data="http://www.w3.org/TR/xhtml1/xhtml1.pdf"
width="100%"
height="500">
</object>
</p>
</body>
</html>

View file

@ -0,0 +1,17 @@
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="8" unit="dL">Flour</ingredient>
<ingredient amount="10" unit="grams">Yeast</ingredient>
<ingredient amount="4" unit="dL" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
<step>Charset test: ąśżźć</step>
</instructions>
</recipe>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML document with UTF-8 charset ąśżźć</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<span>Hello World!</span>
<span>ąśżźć</span>
</body>
</html>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML document with UTF-8 charset</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<?php print '<title>foob\'"bar</title>'; ?>
</head>
<body>
<span>Hello World!</span>
<span>ąśżźć</span>
<a href='<?php foreach($foo as $bar} { print $foo['1'] } ?>'>Attr test</a>
</body>
</html>

View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>XHTML 1.0 Example</title>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function loadpdf() {
document.getElementById("pdf-object").src="http://www.w3.org/TR/xhtml1/xhtml1.pdf";
}
//--><!]]>
</script>
</head>
<body onload="loadpdf()">
<select name='test'></select>
<textarea name='test'></textarea>
<br />
<p>Test: &nbsp; żźć</p>
<p>This is an example of an
<abbr title="Extensible HyperText Markup Language">XHTML</abbr> 1.0 Strict document.<br />
<img id="validation-icon"
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" /><br />
<object id="pdf-object"
name="pdf-object"
type="application/pdf"
data="http://www.w3.org/TR/xhtml1/xhtml1.pdf"
width="100%"
height="500">
</object>
</p>
</body>
</html>

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="8" unit="dL">Flour</ingredient>
<ingredient amount="10" unit="grams">Yeast</ingredient>
<ingredient amount="4" unit="dL" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
<step>Charset test: ąśżźć</step>
</instructions>
</recipe>

View file

@ -0,0 +1,151 @@
<?php
/**
* Charset and document types test.
*
* Remember:
* - never test charset with htmlentities ! Use htmlspecialchars (or define charset as parameter)
*
* TODO:
* - document fragments tests (with all 4 charset scenarios)
*
*/
class phpQuery {
static $defaultDocumentID;
static $debug = 0;
static $documents = array();
static $defaultCharset = 'utf-8';
static function debug($text) {
if (self::$debug)
print var_dump($text);
}
}
require_once('../phpQuery/DOMDocumentWrapper.php');
phpQuery::$debug = 2;
/* ENCODINGS */
//print '<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-2">';
print '<meta http-equiv="Content-Type" content="text/html;charset=utf-8">';
/* HTML */
//$htmlIso = new DOMDocumentWrapper(
// file_get_contents('document-types/document-iso88592.html')
//);
//$htmlIsoNoCharset = new DOMDocumentWrapper(
// file_get_contents('document-types/document-iso88592-nocharset.html'),
// 'text/html;charset=iso-8859-2'
//);
$htmlUtf = new DOMDocumentWrapper(
file_get_contents('document-types/document-utf8.html')
);
var_dump($htmlUtf->markup());
//$htmlUtfNoCharset = new DOMDocumentWrapper(
// file_get_contents('document-types/document-utf8-nocharset.html'),
// 'text/html;charset=utf-8'
//);
//print htmlspecialchars($htmlIso->markup(
// $htmlIso->document->getElementsByTagName('span'))
//);
//print htmlspecialchars($htmlIsoNoCharset->markup(
// $htmlIsoNoCharset->document->getElementsByTagName('p'))
//);
//print htmlspecialchars($htmlUtf->markup());
//print htmlspecialchars($htmlUtfNoCharset->markup());
/* XML */
//$xmlIso = new DOMDocumentWrapper(
// file_get_contents('document-types/document-iso88592.xml')
//);
//$xmlIsoNoCharset = new DOMDocumentWrapper(
// file_get_contents('document-types/document-iso88592-nocharset.xml'),
// 'text/xml;charset=iso-8859-2'
//);
//$xmlUtf = new DOMDocumentWrapper(
// file_get_contents('document-types/document-utf8.xml')
//);
//$xmlUtfNoCharset = new DOMDocumentWrapper(
// file_get_contents('document-types/document-utf8-nocharset.xml'),
// 'text/xml;charset=utf-8'
//);
//print var_dump($xmlIso->markup(
// $xmlIso->document->getElementsByTagName('step')->item(0)
//));
//print htmlspecialchars($xmlIsoNoCharset->markup());
//print htmlspecialchars($xmlUtf->markup());
//print htmlspecialchars($xmlUtfNoCharset->markup());
/* XHTML */
//$xhtmlIso = new DOMDocumentWrapper(
// file_get_contents('document-types/document-iso88592.xhtml')
//);
//$xhtmlIsoNoCharset = new DOMDocumentWrapper(
// file_get_contents('document-types/document-iso88592-nocharset.xhtml'),
// 'application/xhtml+xml;charset=iso-8859-2'
//);
//$xhtmlUtf = new DOMDocumentWrapper(
// file_get_contents('document-types/document-utf8.xhtml')
//);
//$xhtmlUtfNoCharset = new DOMDocumentWrapper(
// file_get_contents('document-types/document-utf8-nocharset.xhtml'),
// 'application/xhtml+xml'
//);
//print htmlspecialchars($xhtmlIso->markup());
//print var_dump($xhtmlIsoNoCharset->markup());
//print var_dump($xhtmlIsoNoCharset->markup(
// $xhtmlIsoNoCharset->document->getElementsByTagName('p')
//));
//print var_dump($xhtmlUtf->markup());
//print var_dump($xhtmlUtf->markup(
// $xhtmlUtf->document->getElementsByTagName('p')
//));
//print htmlspecialchars($xhtmlUtfNoCharset->markup());
/** FRAGMETNS **/
/* HTML fragment */
//$htmlFragmentUtf = new DOMDocumentWrapper(
// file_get_contents('document-types/document-fragment-utf8.html')
//);
//$htmlFragmentUtf->markup();
//$htmlFragmentUtf->markup(
// $htmlFragmentUtf->document->getElementsByTagName('span')
//);
/* XML fragment */
//$xmlFragmentUtf = new DOMDocumentWrapper(
// file_get_contents('document-types/document-fragment-utf8.xml'),
// 'text/xml'nt var_dump($xhtmlFragmentUtf->document->saveXML());
//$xhtmlFragmentUtf->markup();
//$xhtmlFragmentUtf->markup(
// $xhtmlFragmentUtf->document->getElementsByTagName('p')
//);
//);
//$xmlFragmentUtf->markup();
//$xmlFragmentUtf->markup(
// $xmlFragmentUtf->document->getElementsByTagName('step')
//);
/* XHTML fragment */
//$xhtmlFragmentUtf = new DOMDocumentWrapper(
// file_get_contents('document-types/document-fragment-utf8.xhtml'),
// 'application/xhtml+xml'
//);
//print var_dump($xhtmlFragmentUtf->document->saveXML());
//$xhtmlFragmentUtf->markup();
//$xhtmlFragmentUtf->markup(
// $xhtmlFragmentUtf->document->getElementsByTagName('p')
//);
/* Test template */
//$result = pq('p:eq(1)');
//if ( $result->hasClass('newTitle') )
// print "Test '{$testName}' PASSED :)";
//else
// print "Test '{$testName}' <strong>FAILED</strong> !!! ";
//$result->dump();
//print "\n";

View file

@ -0,0 +1,11 @@
<?php
// TODO move them into directory
include 'test_1.php';
include 'test_2.php';
include 'test_3.php';
include 'test_4.php';
include 'test_5.php';
include 'test_wrap.php';
include 'test_replace.php';
include 'test_multidoc.php';
?>

View file

@ -0,0 +1,54 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>
plainTemplate test
</title>
<script src="../jQueryServer/demo/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php print $js_src; ?>" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class='articles'>
div.articles text node
<
<ul>
<li>
<p>This is paragraph of first LI</p>
<p class='title'>
this is example title
</p>
<p class='body'>
this is example body
</p>
</li>
<li id='testID'>
<p rel='test'>This is paragraph of second LI</p>
<p class='title'>
this is example title 2
</p>
<p class='body'>
this is example body 2
</p>
</li>
<li>
<p rel='test'>This is paragraph of third LI</p>
<p class='noTitle'>There isnt any title</p>
<p class='body'>
this is example body 3
</p>
</li>
</ul>
<p class='after'>paragraph after UL</p>
</div>
<ul>
<li id='i_have_nested_list'>
<ul>
<li class='nested'></li>
</ul>
</li>
<li class='second'>
</li>
</ul>
</body>
</html>

View file

@ -0,0 +1,59 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'Filter with pseudoclass';
$testResult = array(
'p.body',
);
$result = phpQuery::newDocumentFile('test.html');
$result = $result->find('p')
->filter('.body:gt(1)');
if ( $result->whois() == $testResult )
print "Test '{$testName}' PASSED :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print_r($result->whois());
print "\n";
$testName = 'Filter with multiplie selectors';
$testResult = array(
'p.body',
);
$testDOM = phpQuery::newDocumentFile('test.html');
$single = $testDOM->find('p')->filter('.body')
->add(
$testDOM->find('p')->filter('.title')
)
;
$double = $testDOM->find('p')
->filter('.body, .title');
if ($single->length == count($double))
print "Test '{$testName}' PASSED :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print "\n";
print_r($single->whois());
print "\n";
print_r($double->whois());
print "\n";
$testName = 'Attributes in HTML element';
$validResult = 'testValue';
$result = phpQuery::newDocumentFile('test.html')->find('html')
->empty()
->attr('test', $validResult);
$result = phpQuery::newDocument($result->htmlOuter())->find('html')
->attr('test');
//similar_text($result->htmlOuter(), $validResult, $similarity);
if ( $result == $validResult )
print "Test '{$testName}' PASSED :)";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print "<pre>";
print $result;
print "</pre>\n";
}

View file

@ -0,0 +1,109 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
// SLICE1
$testResult = array(
'li#testID',
);
$result = phpQuery::newDocumentFile('test.html')
->find('li')
->slice(1, 2);
if ( $result->whois() == $testResult )
print "Test 'Slice1' PASSED :)";
else {
print "Test 'Slice1' <strong>FAILED</strong> !!! ";
print "<pre>";
print_r($result->whois());
print "</pre>\n";
}
print "\n";
// SLICE2
$testResult = array(
'li#testID',
'li',
'li#i_have_nested_list',
'li.nested',
);
$result = phpQuery::newDocumentFile('test.html')
->find('li')
->slice(1, -1);
if ( $result->whois() == $testResult )
print "Test 'Slice2' PASSED :)";
else {
print "Test 'Slice2' <strong>FAILED</strong> !!! ";
print "<pre>";
print_r($result->whois());
print "</pre>\n";
}
print "\n";
// Multi-insert
$result = phpQuery::newDocument('<li><span class="field1"></span><span class="field1"></span></li>')
->find('.field1')
->php('longlongtest');
$validResult = '<li><span class="field1"><php>longlongtest</php></span><span class="field1"><php>longlongtest</php></span></li>';
similar_text($result->htmlOuter(), $validResult, $similarity);
if ( $similarity > 80 )
print "Test 'Multi-insert' PASSED :)";
else {
print "Test 'Multi-insert' <strong>FAILED</strong> !!! ";
print "<pre>";
var_dump($result->htmlOuter());
print "</pre>\n";
}
print "\n";
// INDEX
$testResult = 1;
$result = phpQuery::newDocumentFile('test.html')
->find('p')
->index(pq('p.title:first'));
if ( $result == $testResult )
print "Test 'Index' PASSED :)";
else {
print "Test 'Index' <strong>FAILED</strong> !!! ";
}
print "\n";
// CLONE
$testName = 'Clone';
$testResult = 3;
$document;
$p = phpQuery::newDocumentFile('test.html')
->toReference($document)
->find('p:first');
foreach(array(0,1,2) as $i) {
$p->clone()
->addClass("clone-test")
->addClass("class-$i")
->insertBefore($p);
}
if (pq('.clone-test')->size() == $testResult)
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
}
print "\n";
// SIBLINGS
$testName = 'Next';
$testResult = 3;
$document;
$result = phpQuery::newDocumentFile('test.html')
->find('li:first')
->next()
->next()
->prev()
->is('#testID');
if ($result)
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
}
print "\n";
?>
<?php die();

View file

@ -0,0 +1,47 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
// CALLBACKS
class callbackClass {
static function staticMethodCallback($node) {
pq($node)->addClass('newClass');
}
function methodCallback($node) {
pq($node)->addClass('newClass');
}
}
function functionCallback($node) {
pq($node)->addClass('newClass');
}
$testResult = array(
'li.newClass',
'li#testID.newClass',
'li.newClass',
'li#i_have_nested_list.newClass',
'li.nested.newClass',
'li.second.newClass',
);
$tests = array(
'functionCallback',
array('callbackClass', 'staticMethodCallback'),
array(new callbackClass, 'methodCallback')
);
foreach($tests as $test) {
$result = phpQuery::newDocumentFile('test.html')
->find('li')
->each($test);
$testName = is_array($test)
? $test[1]
: $test;
if ( $result->whois() == $testResult )
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
print_r($result->whois());
print "</pre>\n";
}
print "\n";
}
?>

View file

@ -0,0 +1,86 @@
<?php
//error_reporting(E_ALL);
set_include_path(
get_include_path().PATH_SEPARATOR
.'zend-framework/'
);
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
phpQuery::$ajaxAllowedHosts[] = 'wikipedia.org';
phpQuery::$ajaxAllowedHosts[] = 'google.com';
phpQuery::$ajaxAllowedHosts[] = 'code.google.com';
phpQuery::$ajaxAllowedHosts[] = 'www.google.com';
//$pq = phpQuery::ajax(array(
// 'url' => 'http://wikipedia.org/',
// 'success' => 'v87shs79d8fhs9d'
//));
//function v87shs79d8fhs9d($html) {
// $title = phpQuery::newDocument($html)->find('title');
// $testName = 'Simple AJAX';
// if ( strpos(strtolower($title->html()), 'wikipedia') !== false )
// print "Test '$testName' PASSED :)";
// else {
// print "Test '$testName' <strong>FAILED</strong> !!! ";
// print "<pre>";
// print_r($title->whois());
// print "</pre>\n";
// }
// print "\n";
//}
$testName = 'Load';
$test = phpQuery::newDocumentFile('test.html')
->find('div:first')
->load('http://wikipedia.org/ div[lang]');
if (pq('div[lang]')->size())
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
print "</pre>\n";
}
print "\n";
// http://code.google.com/p/phpquery/issues/detail?id=130
$pq = phpQuery::ajax(array(
'url' => 'http://'.$_SERVER['SERVER_NAME'].preg_replace('@/[^/]+$@', '/test_ajax_data_1', $_SERVER['REQUEST_URI']),
'success' => 'a789fhasdui3124',
'error' => 'jhdbg786213u8dsfg7y'
));
function a789fhasdui3124($html) {
$testName = 'AJAX request text node';
if ( $html == 'hello world' )
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
}
print "\n";
}
function jhdbg786213u8dsfg7y() {
$testName = 'AJAX request text node';
print "Test '$testName' <strong>FAILED</strong> !!! ";
}
//$testName = 'gdata plugin';
//phpQuery::extend('gdata');
//$xhr = phpQuery::$plugins->gdata('tobiasz.cudnik@gmail.com', 'XXX');
//$url = 'http://code.google.com/p/phpquery/w/edit/Callbacks';
//phpQuery::ajax(array('url' => $url, 'success' => 'ksjsdgh892jh23'), $xhr);
//function ksjsdgh892jh23($html) {
// print $html;
// print pq($html)->find('script')->remove()->end();
// if (pq('div[lang]')->size())
// print "Test '$testName' PASSED :)";
// else {
// print "Test '$testName' <strong>FAILED</strong> !!! ";
// print "<pre>";
// print "</pre>\n";
// }
// print "\n";
//}

View file

@ -0,0 +1 @@
hello world

View file

@ -0,0 +1,36 @@
<?php
//error_reporting(E_ALL);
set_include_path(
get_include_path()
.':/home/bob/Sources/PHP/zend-framework/'
);
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testHtml = phpQuery::newDocumentFile('test.html');
$testHtml['li:first']->append('<span class="just-added">test</span>');
$testName = 'Array Access get';
if (trim($testHtml['.just-added']->html()) == 'test')
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
print_r($testHtml['.just-added']->whois());
print "</pre>\n";
}
print "\n";
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testHtml = phpQuery::newDocumentFile('test.html');
$testHtml['li:first'] = 'new inner html';
$testName = 'Array Access set';
if (trim($testHtml['li:first']->html()) == 'new inner html')
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
print_r($testHtml['.just-added']->whois());
print "</pre>\n";
}
print "\n";

View file

@ -0,0 +1,26 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'Attribute change';
$expected = 'new attr value';
$result = phpQuery::newDocumentFile('test.html')
->find('p[rel]:first')
->attr('rel', $expected);
if ($result->attr('rel') == $expected)
print "Test '{$testName}' passed :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!!";
print "\n";
$testName = 'Attribute change in iteration';
$expected = 'new attr value';
$doc = phpQuery::newDocumentFile('test.html');
foreach($doc['p[rel]:first'] as $p)
pq($p)->attr('rel', $expected);
if ($doc['p[rel]:first']->attr('rel') == $expected)
print "Test '{$testName}' passed :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!!";
print "\n";

View file

@ -0,0 +1,27 @@
<?php
//if (PHP_VERSION < 5.3)
// throw new Exception("This test case is only for PHP 5.3 and above.");
require('/home/bob/Sources/php/simpletest/simpletest/trunk/autorun.php');
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
class CallbackTest extends UnitTestCase {
public function callback2() {
return 'callback2';
}
public function callback1($self) {
return $self;
}
public function testExtend() {
$newMethods = array(
'newMethod1' => array($this, 'callback1'),
'newMethod2' => array($this, 'callback2'),
);
phpQuery::extend('phpQueryObject', $newMethods);
$doc = phpQuery::newDocumentXML("<div/>");
$this->assertTrue($doc->newMethod1() == $doc,
'$doc->newMethod1 == $doc');
$this->assertTrue($doc->newMethod2() == "callback2",
'$doc->newMethod1 == "callback2"');
}
}

View file

@ -0,0 +1,94 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<?php
require_once('../phpQuery/phpQuery.php');
// phpQuery::$debug = true;
$testName = 'Text node append';
$result = phpQuery::newDocumentFile('test.html')
->find('li:first')
->find('p:first')
->html('żźć');
if (trim($result->html()) == 'żźć')
print "Test '{$testName}' passed :)<br />\n";
else
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
print "\n";
$testName = 'Text node HTML entite append';
$result = phpQuery::newDocumentFile('test.html')
->find('li:first')
->find('p:first')
->_empty()
->append('&eacute;');
if (trim($result->html()) == 'é')
print "Test '{$testName}' passed :)<br />\n";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
print $result->html();
}
print "\n";
$testName = 'DOMElement node HTML entite append';
$result = phpQuery::newDocumentFile('test.html')
->find('li:first')
->find('p:first')
->empty()
->append('<span>&eacute;</span>');
if (trim($result->html()) == '<span>é</span>')
print "Test '{$testName}' passed :)<br />\n";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
print $result->html();
}
print "\n";
$testName = 'Append and move';
$result = phpQuery::newDocumentFile('test.html');
$li = $result->find('li:first');
$result->find('div')->_empty();
$li->html('test1-&eacute;-test1')
->append('test2-é-test2')
->appendTo(
$result->find('div:first')
);
$result = $result->find('div:first li:first');
$expected = 'test1-é-test1test2-é-test2';
if (trim(str_replace("\n", '', $result->html())) == $expected)
print "Test '{$testName}' passed :)<br />\n";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
print "'".trim($result->html())."'";
}
print "\n";
$testName = 'Attr charset';
$result = phpQuery::newDocumentFile('test.html')
->find('li:first')
->attr('test', 'foo &eacute; żźć bar');
if (trim($result->attr('test')) == 'foo &eacute; żźć bar')
print "Test '{$testName}' passed :)<br />\n";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
print $result->attr('test');
}
print "\n";
//$testName = 'Loading document without meta charset';
//$result = phpQuery::newDocumentFile('test.html')
// ->_empty();
////var_dump((string)$result->htmlOuter());
//$result = phpQuery::newDocument($result->htmlOuter());
//$validResult = <<<EOF
//<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
//<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /></head></html>
//EOF;
//$similarity = 0;
//similar_text($result->htmlOuter(), $validResult, $similarity);
//if ( $similarity > 90 )
// print "Test '{$testName}' passed :)<br />\n";
//else
// print "Test '{$testName}' <strong>FAILED</strong> !!! ";
//print "<pre>";
//print $result;
//print "</pre>\n";

View file

@ -0,0 +1,20 @@
<?php
//error_reporting(E_ALL);
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'HTML document load';
$doc = phpQuery::newDocumentFile('test.html');
print $doc->find('li:first')->html('foo <p>bar</p> foo <b><i>foo</i</b>')->html();
die();
$testResult = 10;
if ($doc->script('example', 'p')->length == $testResult)
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
var_dump($doc->whois());
print "</pre>\n";
}
print "\n";

View file

@ -0,0 +1,49 @@
<?php
require_once('../phpQuery/phpQuery.php');
// phpQuery::$debug = true;
$form = <<<EOF
<form>
<input name='input-example'>
<input name='array[array-example]'>
<textarea name='textarea-example'></textarea>
<select name='select-example'>
<option value='first'></option>
</select>
<input type='radio' name='radio-example' value='foo'>
<input type='checkbox' name='checkbox-example' value='foo'>
</form>
EOF;
$doc = phpQuery::newDocumentHTML($form);
$inputs = $doc['form > *'];
// creates array from input names
// $results = $inputs->get(null,
// create_function('$node', 'return $node->getAttribute("name");')
// );
$results = array();
foreach($inputs as $node) {
$node = pq($node);
$name = $node->attr('name');
$results[$name] = false;
$node->change(
new CallbackReference($results[$name])
);
}
$inputs
->not('select,:checkbox,:radio')
->val('new value')
->end()
->filter('select')
->val('first')
->end()
->filter(':checkbox')
->val(array('foo'))
->end()
->filter(':radio')
->val(array('foo'))
->end()
;
foreach($results as $name => $result) {
print $result
? "Test for '$name' PASSED :)<br />\n"
: "Test for '$name' <strong>FAILED</strong> !!!<br />\n";
}

View file

@ -0,0 +1,20 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = 2;
$testName = 'HTML insertion';
$doc = phpQuery::newDocumentFile('document-types/document-utf8.xhtml');
//$doc = phpQuery::newDocumentFile('document-types/document-utf8.html');
//$doc = phpQuery::newDocumentFile('document-types/document-utf8.xml');
//print $doc->find('step');
print $doc->find('p');
$markup = "test<br />test<p>test p</p>";
$doc['body > p:last']->append($markup);
if ($doc['body > p:last p']->length == 1)
print "Test '{$testName}' PASSED :)";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print $doc->htmlOuter('htmlspecialchars');
}
print "\n";

View file

@ -0,0 +1,143 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'Simple data insertion';
$testResult = <<<EOF
<div class="articles">
div.articles text node
<ul>
<li>
<p>This is paragraph of first LI</p>
<p class="title">News 1 title</p>
<p class="body">News 1 body</p>
</li>
<li>
<p>This is paragraph of first LI</p>
<p class="title">News 2 title</p>
<p class="body">News 2 body</p>
</li>
<li>
<p>This is paragraph of first LI</p>
<p class="title">News 3</p>
<p class="body">News 3 body</p>
</li>
</ul>
<p>paragraph after UL</p>
</div>
EOF;
$rows = array(
array(
'title' => 'News 1 title',
'body' => 'News 1 body',
),
array(
'title' => 'News 2 title',
'body' => 'News 2 body',
),
array(
'title' => 'News 3',
'body' => 'News 3 body',
),
);
phpQuery::newDocumentFile('test.html');
$articles = pq('.articles ul');
$rowSrc = $articles->find('li')
->remove()
->eq(0);
foreach( $rows as $r ) {
$row = $rowSrc->_clone();
foreach( $r as $field => $value ) {
$row->find(".{$field}")
->html($value);
// die($row->htmlOuter());
}
$row->appendTo($articles);
}
$result = pq('.articles')->htmlOuter();
//print htmlspecialchars("<pre>{$result}</pre>").'<br />';
$similarity = 0.0;
similar_text($testResult, $result, $similarity);
if ($similarity > 90)
print "Test '{$testName}' passed :)";
else
print "Test '{$testName}' <strong>FAILED</strong> ($similarity) !!!";
print "\n";
$testName = 'Parent && children';
$result = phpQuery::newDocumentFile('test.html');
$parent = $result->find('ul:first');
$children = $parent->find('li:first');
$e = null;
try {
$children->before('<li>test</li>');
} catch(Exception $e) {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
}
if (! $e) {
print "Test '{$testName}' PASSED :)";
}
print "\n";
$testName = 'HTML insertion';
$doc = phpQuery::newDocument('<div><p/></div>');
$string = "La Thermo-sonde de cuisson vous permet de cuire à la perfection au four comme au bain-marie. Température: entre <b>0°C et 210°C</b>.";
$doc->find('p')->html($string);
if (pq('p')->length == 1)
print "Test '{$testName}' PASSED :)";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print $doc->htmlOuter('htmlentities');
}
print "\n";
$testName = 'HTML insertion 2';
$doc = phpQuery::newDocument('<div><p/></div>');
$string = "<div>La Thermo-sonde de cuisson vous permet de cuire à la perfection au four comme au bain-marie. Température: entre <b>0°C et 210°C</b>.</div>";
$doc->find('p')->html($string);
if (pq('div')->length == 2) {
print "Test '{$testName}' PASSED :)";
} else {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print $doc->htmlOuter('htmlentities');
}
print "\n";
$testName = 'HTML insertion 3';
$doc = phpQuery::newDocument('<div><p/></div>');
$string = 'Hors paragraphe.
<img align="right" src="http://www.stlouisstpierre.com/institution/images/plan.jpg">
<p>Éditorial de l\'institution Saint-Pierre.</p>
Hors paragraphe.';
$doc->find('p')->html($string);
if (pq('img')->length == 1) {
print "Test '{$testName}' PASSED :)";
print $doc->htmlOuter();
} else {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print $doc->htmlOuter('htmlentities');
}
print "\n";
$testName = 'Text insertion';
$doc = phpQuery::newDocument('<div><p/></div>');
$string = "La Thermo-sonde de cuisson vous permet de cuire à la perfection au four comme au bain-marie";
$doc->find('p')->html($string);
if (trim(pq('p:first')->html()) == $string)
print "Test '{$testName}' PASSED :)";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
print $doc->htmlOuter('htmlentities');
}
print "\n";
?>

View file

@ -0,0 +1,301 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<?php
require_once('../phpQuery/phpQuery.php');
//phpQuery::$debug = 2;
phpQuery::plugin('Scripts');
//$doc = phpQuery::newDocumentXML('<article><someMarkupStuff/><p>p</p></article>');
//print $doc['article']->children(':empty')->get(0)->tagName;
//$doc = phpQuery::newDocumentFile('test.html');
//setlocale(LC_ALL, 'pl_PL.UTF-8');
//$string = strftime('%B %Y', time());
//$doc['p:first']->append($string)->dump();
/*
*
$doc1 = phpQuery::newDocumentFileXHTML('doc1.html');
$doc2 = phpQuery::newDocumentFileXHTML('doc2.html');
$doc3 = phpQuery::newDocumentFileXHTML('doc3.html');
$doc4 = phpQuery::newDocumentFileXHTML('doc4.html');
$doc2['body']
->append($doc3['body >*'])
->append($doc4['body >*']);
$doc1['body']
->append($doc2['body >*']);
print $doc1->plugin('Scripts')->script('safe_print');
*/
//$doc = phpQuery::newDocument('<p> p1 <b> b1 </b> <b> b2 </b> </p><p> p2 </p>');
//print $doc['p']->contents()->not('[nodeType=1]');
//print phpQuery::newDocumentFileXML('tmp.xml');
//$doc = phpQuery::newDocumentXML('text<node>node</node>test');
//pq('<p/>', $doc)->insertBefore(pq('node'))->append(pq('node'));
//$doc->contents()->wrap('<p/>');
//$doc['node']->wrapAll('<p/>');
// ->contents()
// ->wrap('<p></p>');
//print $doc;
// http://code.google.com/p/phpquery/issues/detail?id=66
//$doc = phpQuery::newDocumentXML('<p>123<span/>123</p>');
//$doc->dump();
//$doc->children()->wrapAll('<div/>')->dump();
// http://code.google.com/p/phpquery/issues/detail?id=69
//$doc = phpQuery::newDocumentXML('<p class="test">123<span/>123</p>');
//$doc['[class^="test"]']->dump();
// http://code.google.com/p/phpquery/issues/detail?id=71
// $doc = phpQuery::newDocument('<input value=""/>');
// print $doc['input']->val('new')->val();
// http://code.google.com/p/phpquery/issues/detail?id=71
// $doc = phpQuery::newDocument('<select><option value="10">10</option><option value="10">20</option></select>');
// $doc['select']->val('20')->dump();
// http://code.google.com/p/phpquery/issues/detail?id=73
// $doc = phpQuery::newDocument('<input value=""/>');
// var_dump($doc['input']->val(0)->val());
// $a = null;
// new CallbackReference($a);
// phpQuery::callbackRun(new CallbackReference($a), array('new $a value'));
// var_dump($a);
// check next() inside (also, but separatly)
// $inputs->dump();
// foreach($inputs as $node) {
// }
// $inputs->dump();
// http://code.google.com/p/phpquery/issues/detail?id=74
// http://code.google.com/p/phpquery/issues/detail?id=31
//$doc = phpQuery::newDocument('<div class="class1 class2"/><div class="class1"/><div class="class2"/>');
//$doc['div']->filter('.class1, .class2')->dump()->dumpWhois();
// http://code.google.com/p/phpquery/issues/detail?id=76
// mb_internal_encoding("UTF-8");
// mb_regex_encoding("UTF-8");
// $xml = phpQuery::newDocumentXML('<документа/>');
//
// $xml['документа']->append('<список></список>');
// $xml['документа список'] = '<эл>1</эл><эл>2</эл><эл>3</эл>';
// print "<xmp>$xml</xmp>";
// zeromski 0.9.5 vs 0.9.1
// phpQuery::newDocumentXML('<xml><b></xml>')->dump();
// http://code.google.com/p/phpquery/issues/detail?id=77
// phpQuery::newDocumentFile('http://google.com/')
// ->find('body > *')->dumpWhois();
/*$XHTML = <<<EOF
<!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" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="fr" />
</head>
<body>
<div id="contenu_volets">
<div id="contenu_voletGauche">
<div id="contenu_navigation" class="bloc_arrondi blanc_10_10 administrable">
<div class="bloc_arrondi_haut">
<div class="bloc_arrondi_haut_gauche"></div>
<div class="bloc_arrondi_haut_droit"></div>
</div>
<div class="bloc_arrondi_centre">
<div class="bloc_arrondi_centre1">
<div class="bloc_arrondi_centre2 bloc_contenu administrable_contenu"></div>
</div>
</div>
<div class="bloc_arrondi_bas">
<div class="bloc_arrondi_bas_gauche"></div>
<div class="bloc_arrondi_bas_droit"></div>
</div>
</div>
</div>
<div id="contenu_voletDroit">
<div id="contenu_article" class="bloc_arrondi grisDegrade_10_10_341 administrable
redimensionnable">
<div class="bloc_arrondi_haut">
<div class="bloc_arrondi_haut_gauche"></div>
<div class="bloc_arrondi_haut_droit"></div>
</div>
<div class="bloc_arrondi_centre">
<div class="bloc_arrondi_centre1">
<div class="bloc_arrondi_centre2 bloc_contenu administrable_contenu
WAI_element-40-WAI_principal-30 WAI_contenu">
<p class="contenu_filAriane justifier_non">
Vous êtes ici : <span class="filAriane_contenu"></span>
</p>
<h1 id="IDcmsRef-page-titre">Editorial</h1>
<div id="IDcmsTag_article"></div>
<div class="nettoyeur"></div>
</div>
</div>
</div>
<div class="bloc_arrondi_bas">
<div class="bloc_arrondi_bas_gauche"></div>
<div class="bloc_arrondi_bas_droit"></div>
</div>
</div>
</div>
<div id="contenu_voletPied"></div>
</div>
</body>
</html>
EOF;
phpQuery::newDocumentXHTML($XHTML)
->find('body:first > *')->dumpWhois();*/
// http://code.google.com/p/phpquery/issues/detail?id=83
//$doc = phpQuery::newDocument('<select
//name="toto"><option></option><option value="1">1</option></select><div><input
//type="hidden" name="toto"/></div>');
//print $doc['[name=toto]']->val('1');
//$doc = phpQuery::newDocumentFile('http://www.google.pl/search?hl=en&q=test&btnG=Google+Search');
//print $doc;
// http://code.google.com/p/phpquery/issues/detail?id=88
//$doc = phpQuery::newDocumentXML('<foo><bar/></foo>');
//$doc['foo']->find('bar')->andSelf()->addClass('test');
//$doc->dump();
// http://code.google.com/p/phpquery/issues/detail?id=90
//print phpQuery::newDocument('<html><body></body></html>')
// ->find('body')
// ->load('http://localhost/phpinfo.php');
// http://code.google.com/p/phpquery/issues/detail?id=91
// phpQuery::newDocumentXML('<foo bar="abc"/><foo bar="bca"/>');
// print pq('foo')->filter('[bar$=c]');
// FIXME http://code.google.com/p/phpquery/issues/detail?id=93
//$doc = '<head><title>SomeTitle</title>
//</head>
//<body bgcolor="#ffffff" text="#000000" topmargin="1" leftmargin="0">blah
//</body>';
//$pq = phpQuery::newDocument($doc);
//echo $pq;
# http://code.google.com/p/phpquery/issues/detail?id=94#makechanges
//$doc = phpQuery::newDocument();
//$test = pq(
//'
//<li>
// <label>Fichier : </label>
// <input type="file" name="pjModification_fichier[0]"/>
// <br/>
// <label>Titre : </label>
// <input type="text" name="pjModification_titre[0]" class="pieceJointe_titre"/>
//</li>
//'
//);
// http://code.google.com/p/phpquery/issues/detail?id=96
//$doc = phpQuery::newDocument('<select name="section"><option
//value="-1">Niveau</option><option value="1">6°</option><option
//value="2">5°</option><option
//value="3">4°</option><option value="4">3°</option></select>');
//$doc = phpQuery::newDocument('<select name="section"><option
//value="-1">Niveau</option><option value="1">6°</option><option
//value="2">5°</option><option
//value="3">4°</option><option value="4">3&deg;</option></select>');
//print $doc['select']->val(3)->end()->script('print_source');
//(16:27:56) jomofcw: $option_element =
//(16:27:56) jomofcw: pq('<option/>')
//(16:27:56) jomofcw: ->attr('value',$section['id'])
//(16:27:56) jomofcw: ->html($section['libelle'])
//(16:27:56) jomofcw: ;
//(16:29:27) jomofcw: where $section['libelle'] is from a database UTF-8
//16:30
//(16:30:20) jomofcw: the value of $section['libelle'] is exactly "3&deg;" in database...
# http://code.google.com/p/phpquery/issues/detail?id=98
//$doc = phpQuery::newDocument('<select id="test"><option value="0">a</option><option
//value="10">b</option><option value="20">c</option></select>');
//print $doc['select']->val(0)->end()->script('print_source');
// http://groups.google.com/group/phpquery/browse_thread/thread/1c78f7e41fc5808c?hl=en
//$doc = phpQuery::newDocumentXML("
//<s:Schema id='RowsetSchema'>
// <s:ElementType name='row' content='eltOnly'>
// <s:AttributeType name='ComparteElementoComun_ID' rs:number='1'
//rs:maydefer='true' rs:writeunknown='true'>
// <s:datatype dt:type='int' dt:maxLength='4' rs:precision='10'
//rs:fixedlength='true'/>
// </s:AttributeType>
// <s:AttributeType name='ComparteElementoComun' rs:number='2'
//rs:nullable='true' rs:maydefer='true' rs:writeunknown='true'>
// <s:datatype dt:type='string' dt:maxLength='100'/>
// </s:AttributeType>
// <s:extends type='rs:rowbase'/>
// </s:ElementType>
//</s:Schema>");
//foreach($doc['Schema ElementType AttributeType'] as $campo){
// if( count(pq($campo)->find('datatype'))==1 ){
// var_dump(pq($campo)->find('datatype')->attr('dt:type')); // Should print "string" but prints ""
// }
//}
// http://code.google.com/p/phpquery/issues/detail?id=97
//function jsonSuccess($data) {
// var_dump($data);
//}
//$url = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json';
//phpQuery::ajaxAllowHost('api.flickr.com');
//phpQuery::getJSON($url, array('jsoncallback' => '?'), 'jsonSuccess');
//var_dump(json_decode($json));
//require_once('../phpQuery/Zend/Json/Decoder.php');
//var_dump(Zend_Json_Decoder::decode($json));
#var_dump(''.phpQuery::newDocumentFile("http://www.chefkoch.de/magazin/artikel/943,0/AEG-Electrolux/Frischer-Saft-aus-dem-Dampfgarer.html"));
// var_dump(phpQuery::newDocument(
// str_replace('<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
// ', '',
// file_get_contents("http://www.chefkoch.de/magazin/artikel/943,0/AEG-Electrolux/Frischer-Saft-aus-dem-Dampfgarer.html"
// ))));
// http://code.google.com/p/phpquery/issues/detail?id=102
// $doc = phpQuery::newDocumentFileHTML('http://www.google.de');
// //$doc = phpQuery::newDocument('');
// $images = $doc['img']->dump();
//
// $foo = 'aaa';
// var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
// var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');
// http://code.google.com/p/phpquery/issues/detail?id=67
//$doc = phpQuery::newDocumentXML("<node1/><node2/>");
//$doc['node1']->data('foo', 'bar');
//var_dump($doc['node1']->data('foo'));
//$doc['node1']->removeData('foo');
//var_dump($doc['node1']->data('foo'));
//$doc['node1']->data('foo.bar', 'bar');
//var_dump($doc['node1']->data('foo.bar'));
//var_dump(phpQuery::$documents[$doc->getDocumentID()]->data);
// xhtml fragments
//$doc = phpQuery::newDocumentXHTML("<p><br/></p>");
//print $doc;
$doc = phpQuery::newDocument('<div id="content"></div><div id="content"></div>');
//$content_string = str_repeat('a', 99988);
$content_string = str_repeat(str_repeat('a', 350)."\n", 350);
//var_dump(strlen($content_string));
?><pre class='1'><?php
//print $content_string;
?></pre><?php
pq('#content')->php('echo $content_string;');
//pq('#content')->php('echo '.var_export($content_string, true));
$doc->dumpTree();
?><pre class='2'><?php
var_dump($doc->php());
?></pre><?php
eval('?>'.$doc->php());

View file

@ -0,0 +1,37 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'Multi document append phpQuery object';
$testResult = array(
'p.body',
);
$doc1 = phpQuery::newDocumentFile('test.html');
$doc2 = phpQuery::newDocumentFile('test.html');
foreach ($doc1->find('p') as $node)
$doc2->find('body')->append(pq($node));
$testResult = $doc2->find('p');
if ( $testResult->size() == 2*$doc1->find('p')->size() )
print "Test '{$testName}' PASSED :)";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />";
$testResult->whois();
}
$testName = 'Multi document append DOMNode';
$testResult = array(
'p.body',
);
$doc1 = phpQuery::newDocumentFile('test.html');
$doc2 = phpQuery::newDocumentFile('test.html');
foreach ($doc1->find('p') as $node)
$doc2->find('body')->append($node);
$testResult = $doc2->find('p');
if ( $testResult->size() == 2*$doc1->find('p')->size() )
print "Test '{$testName}' PASSED :)";
else {
print "Test '{$testName}' <strong>FAILED</strong> !!!<br />";
$testResult->whois();
}
?>

View file

@ -0,0 +1,36 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'PHP Code output';
$expected = <<<EOF
<?php print \$r ?><a href="<?php print \$array['key']; if ("abc'd'") {}; ?>"></a>
EOF;
$result = phpQuery::newDocumentPHP(null, 'text/html;charset=utf-8')
->appendPHP('print $r')
->append('<a/>')
->find('a')
->attrPHP('href', 'print $array[\'key\']; if ("abc\'d\'") {};')
->end();
if (trim($result->php()) == $expected)
print "Test '{$testName}' passed :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!!";
print "\n";
$testName = 'PHP file open';
$result = phpQuery::newDocumentFilePHP('document-types/document-utf8.php');
var_dump($result->php());
/*
->appendPHP('print $r')
->append('<a/>')
->find('a')
->attrPHP('href', 'print $array[\'key\']; if ("abc\'d\'") {};')
->end();
if (trim($result->php()) == $expected)
print "Test '{$testName}' passed :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!!";
print "\n";
*/

View file

@ -0,0 +1,32 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'ReplaceWith';
phpQuery::newDocumentFile('test.html')
->find('p:eq(1)')
->replaceWith("<p class='newTitle'>
this is example title
</p>");
$result = pq('p:eq(1)');
if ( $result->hasClass('newTitle') )
print "Test '{$testName}' PASSED :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
$result->dump();
print "\n";
$testName = 'ReplaceAll';
$testResult = 3;
phpQuery::newDocumentFile('test.html');
pq('<div class="replacer">')
->replaceAll('li:first p');
$result = pq('.replacer');
if ( $result->size() == $testResult )
print "Test '{$testName}' PASSED :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
$result->dump();
print "\n";

View file

@ -0,0 +1,38 @@
<?php
//error_reporting(E_ALL);
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
phpQuery::plugin('Scripts');
$testName = 'Scripts/example';
$doc = phpQuery::newDocumentFile('test.html');
$testResult = 10;
if ($doc->script('example', 'p')->length == $testResult)
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
var_dump($doc->whois());
print "</pre>\n";
}
print "\n";
$testName = 'Scripts/gmail_login';
$testResult = 1;
$url = 'http://code.google.com/p/phpquery/w/edit/MultiDocumentSupport';
//phpQuery::ajaxAllowURL($url);
$editor = phpQuery::newDocument('<div/>')
->script('google_login')
->location($url);
if ($editor->find('textarea#content')->length == $testResult)
print "Test '$testName' PASSED :)";
else {
print "Test '$testName' <strong>FAILED</strong> !!! ";
print "<pre>";
var_dump($doc->whois());
print "</pre>\n";
}
print "\n";
?>

View file

@ -0,0 +1,302 @@
<?php
require_once('../phpQuery/phpQuery.php');
phpQuery::$debug = true;
$testName = 'Selectors';
$tests = array(
array(
'div:first',
array(
'div.articles',
)
),
array(
"p:contains('title')",
array(
'p.title',
'p.title',
'p.noTitle',
)
),
array(
"p:contains('title 2')",
array(
'p.title',
)
),
array(
'li:eq(1)',
array(
'li#testID',
)
),
array(
'li:eq(1) p:eq(1)',
array(
'p.title',
)
),
array(
'*[rel="test"]',
array(
'p',
'p'
)
),
array(
'#testID p:first',
array(
'p'
)
),
array(
"p:not('.title'):not('.body')",
array(
'p',
'p',
'p',
'p.noTitle',
'p.after',
)
),
array(
"[content*=html]",
array(
'meta'
)
),
array(
"li#testID, div.articles",
array(
'li#testID',
'div.articles'
)
),
array(
"script[src]:not([src^=<?php])",
array(
'script'
)
),
// array(
// 'li:not([ul/li])',
// array(
// 'li',
// 'li#testID',
// 'li',
// 'li.nested',
// 'li.second',
// )
// ),
array(
'li:has(ul)',
array(
'li#i_have_nested_list',
)
),
array(
'p[rel] + p',
array(
'p.title',
'p.noTitle',
)
),
array(
'ul:first > li:first ~ *',
array(
'li#testID',
'li',
)
),
// CSS3 pseudoclasses
array(
'li:only-child',
array(
'li.nested',
)
),
array(
'p[rel=test]:parent',
array(
'p',
'p',
)
),
array(
'li:first-child',
array(
'li',
'li#i_have_nested_list',
'li.nested',
)
),
array(
':last-child',
array(
'html',
'script',
'body',
'p.body',
'p.body',
'li',
'p.body',
'p.after',
'ul',
'ul',
'li.nested',
'li.second',
)
),
array(
':nth-child(1n+1)',
array(
'html',
'head',
'meta',
'div.articles',
'ul',
'li',
'p',
'p',
'p',
'li#i_have_nested_list',
'ul',
'li.nested',
)
),
array(
':nth-child(3n+6)',
array(
'script',
'p.body',
'p.body',
'li',
'p.body',
)
),
array(
':nth-child(2n)',
array(
'title',
'script',
'body',
'p.title',
'li#testID',
'p.title',
'p.noTitle',
'p.after',
'ul',
'li.second',
)
),
array(
':nth-child(1)',
array(
'html',
'head',
'meta',
'div.articles',
'ul',
'li',
'p',
'p',
'p',
'li#i_have_nested_list',
'ul',
'li.nested',
)
),
array(
':nth-child(odd)',
array(
'html',
'head',
'meta',
'script',
'div.articles',
'ul',
'li',
'p',
'p.body',
'p',
'p.body',
'li',
'p',
'p.body',
'li#i_have_nested_list',
'ul',
'li.nested',
)
),
array(
':nth-child(even)',
array(
'title',
'script',
'body',
'p.title',
'li#testID',
'p.title',
'p.noTitle',
'p.after',
'ul',
'li.second',
)
),
array(
':empty',
array(
'meta',
'script',
'script',
'li.nested',
)
),
// array(
// '',
// array(
// '',
// )
// ),
// array(
// '',
// array(
// '',
// )
// ),
// array(
// '',
// array(
// '',
// )
// ),
);
phpQuery::newDocumentFile('test.html');
foreach( $tests as $k => $test ) {
$tests[ $k ][2] = pq( $test[0] )->whois();
}
foreach( $tests as $test ) {
if ( $test[1] == $test[2] )
print "Test '{$test[0]}' PASSED :)";
else {
print "Test '{$test[0]}' <strong>FAILED</strong> !!!";
print_r($test[2]);
}
print "<br /><br />";
}
//
$testName = 'Complicated selector 1';
phpQuery::newDocumentFile('test.html');
pq('<select name="test[]"><option value=3>test</option></select>')
->appendTo('body');
$result = pq('select[name="test[]"]:has(option[value=3])');
if ( $result->size() == 1 )
print "Test '{$testName}' PASSED :)";
else
print "Test '{$testName}' <strong>FAILED</strong> !!! ";
$result->dump();
print "\n";
?>

Some files were not shown because too many files have changed in this diff Show more