63 $oCurl =
oxNew(
'oxCurl');
64 $oCurl->setMethod(
"GET");
65 $oCurl->setUrl($sUrl);
66 $oCurl->setOption(
'CURLOPT_HEADER',
false);
67 $oCurl->setOption(
'CURLOPT_POST',
false);
68 $sOutput = $oCurl->execute();
86 $sUrl =
"https://www.trustedshops.com/bewertung/show_xml.php?tsid=" . $sTsId;
89 $this->_aChannel[
'empty'] =
true;
92 $oDomFile =
oxNew(
"oxSimpleXml");
93 if ($oXml = $oDomFile->xmlToObject($sOutput)) {
94 $aResult = $oXml->ratings->xpath(
'//result[@name="average"]');
96 $this->_aChannel[
'empty'] =
false;
97 $this->_aChannel[
'result'] = (float) $aResult[0];
98 $this->_aChannel[
'max'] =
"5.00";
99 $this->_aChannel[
'count'] = (int) $oXml->ratings[
"amount"];
100 $this->_aChannel[
'shopName'] = (
string) $oXml->name;
104 $oEx =
oxNew(
"oxException");
105 $oEx->setMessage($oEx->getMessage());