Exemple #1
0
 /**
  * @return \phpQuery\phpQuery
  */
 public function getQuery()
 {
     $contentType = NULL;
     if (isset($this->request->info['content_type'])) {
         $contentType = static::getContentType($this->request->info['content_type'], $contentType);
     }
     return \phpQuery\phpQuery::newDocument($this->body, $contentType);
 }
 /**
  * @access private
  * @param $html
  * @return unknown_type
  */
 public function __loadSuccess($html)
 {
     if ($this->_loadSelector) {
         $html = phpQuery::newDocument($html)->find($this->_loadSelector);
         unset($this->_loadSelector);
     }
     foreach ($this->stack(1) as $node) {
         phpQuery::pq($node, $this->getDocumentID())->markup($html);
     }
 }