-
Notifications
You must be signed in to change notification settings - Fork 3
MultiDocumentSupport
tobiasz.cudnik edited this page Oct 2, 2008
·
4 revisions
* support for working on several documents in same time * easy importing of nodes from one document to another * pointing document thought * phpQuery object * DOMNode object * DOMDocument object * internal document ID * last created (or selected) document is assumed to be default in pq();
* it's *not possible* to fetch nodes from several document in one query * it's *not possible* to operate on nodes from several document in one phpQuery object
* phpQuery::*newDocument*($html) Creates new document from markup * phpQuery::*newDocumentFile*($file) Creates new document from file * phpQuery::*getDocument*($id = null) Returns phpQueryObject containing document with id $id or default document (last created/selected) * phpQuery::*selectDocument*($id) Sets default document to $id * phpQuery::*unloadDocuments*($id = null) Unloades all or specified document from memory * phpQuery::*getDocumentID*($source) Returns $source's document ID * phpQuery::*getDOMDocument*($source) Get DOMDocument object related to $source
* $pq->*toReference*(&$var) Saves actual object to $var by reference * $pq->*getDocumentIDRef*(&$documentID) Saves object's DocumentID to $var by reference * $pq->*getDocumentID*() Get object's Document ID * $pq->*unloadDocument*() Unloads whole document from memory