__getUserAgent()); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_TIMEOUT, 20); $page = curl_exec($ch); curl_close ($ch); $this->_encoding = mb_detect_encoding($page); return $page; } protected function _fetchItems() { $page = $this->__getHttpContent($this->_feedUrl); $this->_feedXml = htmlqp($page, NULL, ['convert_from_encoding' => $this->_encoding, 'convert_to_encoding' => $this->_encoding]); return $this->_parseFeedContent($this->_feedXml); } } ?>