<html> <head> <title>Docs For Class DOMDocumentWrapper</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: DOMDocumentWrapper</h1> Source Location: /DOMDocumentWrapper.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">DOMDocumentWrapper class simplifies work with DOMDocument.</div><br /><br /> <h4>Author(s):</h4> <ul> <li>Tobiasz Cudnik <<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>></li> </ul> </td> <td valign="top"> <h3><a href="#class_vars">Variables</a></h3> <ul> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$charset">$charset</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$contentType">$contentType</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$document">$document</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$events">$events</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$eventsGlobal">$eventsGlobal</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$eventsNodes">$eventsNodes</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$frames">$frames</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$id">$id</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$isDocumentFragment">$isDocumentFragment</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$isHTML">$isHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$isXHTML">$isXHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$isXML">$isXML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$root">$root</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#var$xpath">$xpath</a></li> </ul> </td> <td valign="top"> <h3><a href="#class_methods">Methods</a></h3> <ul> <li><a href="../phpQuery/DOMDocumentWrapper.html#method__construct">__construct</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodafterMarkupLoad">afterMarkupLoad</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodcharsetAppendToHTML">charsetAppendToHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodcharsetAppendToXML">charsetAppendToXML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodcharsetFromHTML">charsetFromHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodcharsetFromXML">charsetFromXML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodcontentTypeFromHTML">contentTypeFromHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodcontentTypeToArray">contentTypeToArray</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methoddebug">debug</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methoddocumentCreate">documentCreate</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methoddocumentFragmentCreate">documentFragmentCreate</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methoddocumentFragmentToMarkup">documentFragmentToMarkup</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodexpandEmptyTag">expandEmptyTag</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodimport">import</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodimportAttr">importAttr</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentHTML">isDocumentFragmentHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentXHTML">isDocumentFragmentXHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodisDocumentFragmentXML">isDocumentFragmentXML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodisXHTML">isXHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodisXML">isXML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodload">load</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodloadMarkup">loadMarkup</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodloadMarkupHTML">loadMarkupHTML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodloadMarkupReset">loadMarkupReset</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodloadMarkupXML">loadMarkupXML</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodmarkup">markup</a></li> <li><a href="../phpQuery/DOMDocumentWrapper.html#methodmarkupFixXHTML">markupFixXHTML</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 12]<br /> DOMDocumentWrapper class simplifies work with DOMDocument.<br /><br /><p>Know bug: <ul><li>in XHTML fragments, <br /> changes to <br /></li></ul></p><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>author:</b> </td><td>Tobiasz Cudnik <<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>></td> </tr> <tr> <td><b>todo:</b> </td><td>check XML catalogs compatibility</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$charset"></a> <p></p> <h4>$charset = <span class="value"></span></h4> <p>[line 43]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$contentType"></a> <p></p> <h4>$contentType = <span class="value"> ''</span></h4> <p>[line 22]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>todo:</b> </td><td>Rewrite as method and quess if null.</td> </tr> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>unknown_type</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$document"></a> <p></p> <h4>$document = <span class="value"></span></h4> <p>[line 16]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>DOMDocument</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$events"></a> <p></p> <h4>$events = <span class="value">array()</span></h4> <p>[line 24]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$eventsGlobal"></a> <p></p> <h4>$eventsGlobal = <span class="value">array()</span></h4> <p>[line 26]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$eventsNodes"></a> <p></p> <h4>$eventsNodes = <span class="value">array()</span></h4> <p>[line 25]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$frames"></a> <p></p> <h4>$frames = <span class="value">array()</span></h4> <p>[line 31]</p> TODO<br /><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>unknown_type</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$id"></a> <p></p> <h4>$id = <span class="value"></span></h4> <p>[line 17]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$isDocumentFragment"></a> <p></p> <h4>$isDocumentFragment = <span class="value"> null</span></h4> <p>[line 39]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$isHTML"></a> <p></p> <h4>$isHTML = <span class="value"> false</span></h4> <p>[line 42]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$isXHTML"></a> <p></p> <h4>$isXHTML = <span class="value"> false</span></h4> <p>[line 41]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$isXML"></a> <p></p> <h4>$isXML = <span class="value"> false</span></h4> <p>[line 40]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>mixed</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$root"></a> <p></p> <h4>$root = <span class="value"></span></h4> <p>[line 38]</p> Document root, by default equals to document itself.<br /><br /><p>Used by documentFragments.</p><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </td> <td>DOMNode</td> </tr> </table> </div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <a name="var$xpath"></a> <p></p> <h4>$xpath = <span class="value"></span></h4> <p>[line 23]</p> <br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Type:</b> </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="methoddebug"></a> <h3>static method debug <span class="smalllinenumber">[line 556]</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 debug( $text)</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> </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"> </td> <td><b>$text</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodexpandEmptyTag"></a> <h3>static method expandEmptyTag <span class="smalllinenumber">[line 568]</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 unknown_type expandEmptyTag( $tag $tag, $xml $xml)</code> </td></tr></table> </td></tr></table><br /> expandEmptyTag<br /><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>author:</b> </td><td>mjaque at ilkebenson dot com</td> </tr> <tr> <td><b>link:</b> </td><td><a href="http://pl2.php.net/manual/en/domdocument.savehtml.php#81256">http://pl2.php.net/manual/en/domdocument.savehtml.php#81256</a></td> </tr> <tr> <td><b>access:</b> </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">$tag </td> <td><b>$tag</b> </td> <td></td> </tr> <tr> <td class="type">$xml </td> <td><b>$xml</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodisDocumentFragmentHTML"></a> <h3>static method isDocumentFragmentHTML <span class="smalllinenumber">[line 344]</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 isDocumentFragmentHTML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodisDocumentFragmentXHTML"></a> <h3>static method isDocumentFragmentXHTML <span class="smalllinenumber">[line 350]</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 isDocumentFragmentXHTML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodisDocumentFragmentXML"></a> <h3>static method isDocumentFragmentXML <span class="smalllinenumber">[line 347]</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 isDocumentFragmentXML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodmarkupFixXHTML"></a> <h3>static method markupFixXHTML <span class="smalllinenumber">[line 550]</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 markupFixXHTML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="method__construct"></a> <h3>constructor __construct <span class="smalllinenumber">[line 44]</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>DOMDocumentWrapper __construct( [ $markup = null], [ $contentType = null], [ $newDocumentID = 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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$contentType</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$newDocumentID</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodafterMarkupLoad"></a> <h3>method afterMarkupLoad <span class="smalllinenumber">[line 64]</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 afterMarkupLoad( )</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> </td><td>protected</td> </tr> </table> </div> <br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodcharsetAppendToHTML"></a> <h3>method charsetAppendToHTML <span class="smalllinenumber">[line 317]</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 charsetAppendToHTML( $html, $charset, [ $xhtml = false])</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> </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"> </td> <td><b>$html</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$charset</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$xhtml</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodcharsetAppendToXML"></a> <h3>method charsetAppendToXML <span class="smalllinenumber">[line 340]</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 charsetAppendToXML( $markup, $charset)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$charset</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodcharsetFromHTML"></a> <h3>method charsetFromHTML <span class="smalllinenumber">[line 303]</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 charsetFromHTML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodcharsetFromXML"></a> <h3>method charsetFromXML <span class="smalllinenumber">[line 307]</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 charsetFromXML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodcontentTypeFromHTML"></a> <h3>method contentTypeFromHTML <span class="smalllinenumber">[line 289]</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>array contentTypeFromHTML( $markup $markup)</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>return:</b> </td><td>contentType, charset</td> </tr> <tr> <td><b>access:</b> </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">$markup </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodcontentTypeToArray"></a> <h3>method contentTypeToArray <span class="smalllinenumber">[line 272]</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 contentTypeToArray( $contentType)</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> </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"> </td> <td><b>$contentType</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methoddocumentCreate"></a> <h3>method documentCreate <span class="smalllinenumber">[line 107]</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 documentCreate( $charset, [ $version = '1.0'])</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> </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"> </td> <td><b>$charset</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$version</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methoddocumentFragmentCreate"></a> <h3>method documentFragmentCreate <span class="smalllinenumber">[line 389]</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/DOMDocumentWrapper.html">DOMDocumentWrapper</a> documentFragmentCreate( $source $source, [ $charset = null])</code> </td></tr></table> </td></tr></table><br /> Creates new document fragment.<br /><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </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">$source </td> <td><b>$source</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$charset</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methoddocumentFragmentToMarkup"></a> <h3>method documentFragmentToMarkup <span class="smalllinenumber">[line 459]</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 documentFragmentToMarkup( $fragment)</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> </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"> </td> <td><b>$fragment</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodimport"></a> <h3>method import <span class="smalllinenumber">[line 363]</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>array import( $source $source, [$target $sourceCharset = null], $sourceCharset 2)</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>return:</b> </td><td>Array of imported nodes.</td> </tr> <tr> <td><b>access:</b> </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">$sourceCharset </td> <td><b>2</b> </td> <td></td> </tr> <tr> <td class="type">$source </td> <td><b>$source</b> </td> <td></td> </tr> <tr> <td class="type">$target </td> <td><b>$sourceCharset</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodimportAttr"></a> <h3>method importAttr <span class="smalllinenumber">[line 353]</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 importAttr( $value)</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> </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"> </td> <td><b>$value</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodisXHTML"></a> <h3>method isXHTML <span class="smalllinenumber">[line 257]</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 isXHTML( [ $markup = 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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodisXML"></a> <h3>method isXML <span class="smalllinenumber">[line 268]</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 isXML( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodload"></a> <h3>method load <span class="smalllinenumber">[line 48]</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 load( $markup, [ $contentType = null], [ $newDocumentID = 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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$contentType</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$newDocumentID</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodloadMarkup"></a> <h3>method loadMarkup <span class="smalllinenumber">[line 69]</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 loadMarkup( $markup)</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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodloadMarkupHTML"></a> <h3>method loadMarkupHTML <span class="smalllinenumber">[line 119]</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 loadMarkupHTML( $markup, [ $requestedCharset = 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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$requestedCharset</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodloadMarkupReset"></a> <h3>method loadMarkupReset <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 loadMarkupReset( )</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> </td><td>protected</td> </tr> </table> </div> <br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodloadMarkupXML"></a> <h3>method loadMarkupXML <span class="smalllinenumber">[line 165]</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 loadMarkupXML( $markup, [ $requestedCharset = 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> </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"> </td> <td><b>$markup</b> </td> <td></td> </tr> <tr> <td class="type"> </td> <td><b>$requestedCharset</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodmarkup"></a> <h3>method markup <span class="smalllinenumber">[line 486]</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>string markup( [$node $nodes = null], [ $innerMarkup = false])</code> </td></tr></table> </td></tr></table><br /> Return document markup, starting with optional $node as root.<br /><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>access:</b> </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">$node </td> <td><b>$nodes</b> </td> <td>DOMNode|DOMNodeList</td> </tr> <tr> <td class="type"> </td> <td><b>$innerMarkup</b> </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>