createDocumentWrapper() защищенный статический Метод

..
protected static createDocumentWrapper ( unknown_type $html, $contentType = null, $documentID = null ) : unknown
$html unknown_type
Результат 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);
 }
Пример #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);
 }