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