createDocumentWrapper() protected static méthode

..
protected static createDocumentWrapper ( unknown_type $html, $contentType = null, $documentID = null ) : unknown
$html unknown_type
Résultat unknown New DOM ID
 /**
  * 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);
 }
Exemple #2
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 = '';
     }
     $markup = preg_replace('/[\\x00-\\x1F\\x7F]/', '', $markup);
     $documentID = phpQuery::createDocumentWrapper($markup, $contentType);
     return new phpQueryObject($documentID);
 }