Exemple #1
0
 /**
  * Creates new document from markup.
  * Chainable.
  *
  * @param unknown_type $markup
  * @return PhpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
  */
 public static function newDocument($markup = null, $contentType = null)
 {
     if (!$markup) {
         $markup = '';
     }
     $documentID = phpQuery::createDocumentWrapper($markup, $contentType);
     return new PhpQueryObject($documentID);
 }