\phpQuery
Static namespace for phpQuery functions.
- Author: Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
Synopsis
class phpQuery
{
- // members
- public static bool $mbstringSupport = true;
- public static boolean $debug = false;
- public static array $documents = ;
- public static $defaultDocumentID = NULL;
- public static unknown_type $defaultDoctype = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
- public static string $defaultCharset = 'UTF-8';
- public static $plugins = ;
- public static unknown_type $pluginsLoaded = ;
- public static array $pluginsMethods = ;
- public static array $pluginsStaticMethods = ;
- public static array $extendMethods = ;
- public static array $extendStaticMethods = ;
- public static array $ajaxAllowedHosts = ;
- public static array $ajaxSettings = ;
- public static $lastModified = NULL;
- public static integer $active = 0;
- public static integer $dumpCount = 0;
- // methods
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery|QueryTemplatesPhpQuery|false pq()
- public static void selectDocument()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery getDocument()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocument()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentHTML()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentXML()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentXHTML()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentPHP()
- public static void phpToMarkup()
- public static void _phpToMarkupCallback()
- public static void _markupToPHPCallback()
- public static string markupToPHP()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentFile()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentFileHTML()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentFileXML()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentFileXHTML()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery newDocumentFilePHP()
- public static phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery loadDocument()
- protected static unknown createDocumentWrapper()
- public static unknown_type extend()
- public static void plugin()
- public static void unloadDocuments()
- public static string unsafePHPTags()
- public static void DOMNodeListToArray()
- public static Bool isMarkup()
- public static void debug()
- public static Zend_Http_Client ajax()
- protected static void httpData()
- public static void param()
- public static void get()
- public static void post()
- public static void getJSON()
- public static void ajaxSetup()
- public static void ajaxAllowHost()
- public static void ajaxAllowURL()
- public static string toJSON()
- public static mixed parseJSON()
- public static string getDocumentID()
- public static string getDOMDocument()
- public static unknown_type makeArray()
- public static void inArray()
- public static unknown_type each()
- public static void map()
- public static unknown_type callbackRun()
- public static void merge()
- public static unknown_type grep()
- public static void unique()
- public static unknown_type isFunction()
- public static void trim()
- public static phpQueryObject browserGet()
- public static phpQueryObject browserPost()
- public static phpQueryObject browser()
- public static string php()
- public static string code()
- public static void __callStatic()
- protected static void dataSetupNode()
- protected static void dataRemoveNode()
- public static void data()
- public static void removeData()
Tasks
Line | Task |
---|---|
+ | implement |
321 | pass charset to phpToMarkup if possible (use DOMDocumentWrapper function) |
468+ | support DOMDocument |
469 | |
481+ | support PHP tags in input |
481+ | support passing DOMDocument object from self::loadDocument |
514+ | support string $source |
552 | $class checked agains phpQuery_$class |
647+ | still used ? |
671+ | $options['cache'] |
671+ | $options['processData'] |
671+ | $options['xhr'] |
671+ | $options['data'] as string |
671+ | XHR interface |
777 | $options['processData'] |
864 | some array_values on this shit |
891 | some array_values on this shit |
1103+ | node lists, phpQueryObject |
1146+ | there are problems with non-static methods, second parameter pass it but doesnt verify is method is really callable |
Members
public
- $active
- $ajaxAllowedHosts
—
array
Hosts allowed for AJAX connections. - $ajaxSettings
—
array
AJAX settings. - $debug
- $defaultCharset
- $defaultDoctype
—
unknown_type
Applies only to HTML. - $defaultDocumentID
- $documents
- $dumpCount
- $extendMethods
- $extendStaticMethods
- $lastModified
- $mbstringSupport
—
bool
XXX: Workaround for mbstring problems - $plugins
—
Static namespace for plugins. - $pluginsLoaded
—
unknown_type
List of loaded plugins. - $pluginsMethods
- $pluginsStaticMethods
Methods
protected
- createDocumentWrapper() — Enter description here...
- dataRemoveNode()
- dataSetupNode()
- httpData()
public
- DOMNodeListToArray()
- __callStatic()
- _markupToPHPCallback()
- _phpToMarkupCallback()
- ajax() — Make an AJAX request.
- ajaxAllowHost()
- ajaxAllowURL()
- ajaxSetup()
- browser()
- browserGet()
- browserPost()
- callbackRun()
- code()
- data()
- debug()
- each()
- extend() — Extend class namespace.
- get()
- getDOMDocument() — Get DOMDocument object related to $source.
- getDocument() — Returns document with id $id or last used as phpQueryObject.
- getDocumentID() — Returns source's document ID.
- getJSON()
- grep()
- inArray()
- isFunction()
- isMarkup() — Checks if $input is HTML string, which has to start with '<'.
- loadDocument() — Reuses existing DOMDocument object.
- makeArray()
- map()
- markupToPHP() — Converts document markup containing PHP code generated by phpQuery::php() into valid (executable) PHP code syntax.
- merge() — Merge 2 phpQuery objects.
- newDocument() — Creates new document from markup.
- newDocumentFile() — Creates new document from file $file.
- newDocumentFileHTML() — Creates new document from markup.
- newDocumentFilePHP() — Creates new document from markup.
- newDocumentFileXHTML() — Creates new document from markup.
- newDocumentFileXML() — Creates new document from markup.
- newDocumentHTML() — Creates new document from markup.
- newDocumentPHP() — Creates new document from markup.
- newDocumentXHTML() — Creates new document from markup.
- newDocumentXML() — Creates new document from markup.
- param() — Enter description here...
- parseJSON() — Parses JSON into proper PHP type.
- php()
- phpToMarkup()
- plugin() — Extend phpQuery with $class from $file.
- post()
- pq() — Multi-purpose function.
- removeData()
- selectDocument() — Sets default document to $id. Document has to be loaded prior to using this method.
- toJSON() — Returns JSON representation of $data.
- trim()
- unique()
- unloadDocuments() — Unloades all or specified document from memory.
- unsafePHPTags() — Parses phpQuery object or HTML result against PHP tags and makes them active.