31 $this->_aViewData[
'oxid'] = $this->
getConfig()->getShopId();
34 return "dyn_trusted_ratings.tpl";
51 if (is_array($aConfAArs[
'aTsLangIds'])) {
53 $blActive = (isset($aConfBools[
"blTsWidget"]) && $aConfBools[
"blTsWidget"] ==
"true") ?
true :
false;
54 $sPkg =
"OXID_ESALES";
56 $aActiveLangs = array();
57 foreach ($aConfAArs[
'aTsLangIds'] as $sLangId => $sId) {
58 $aActiveLangs[$sLangId] =
false;
60 $sTsUser =
$myConfig->getConfigParam(
'sTsUser');
61 $sTsPass =
$myConfig->getConfigParam(
'sTsPass');
63 $sResult = $this->
_validateId($sId, (
bool) $blActive, $sTsUser, $sTsPass, $sPkg);
66 $aActiveLangs[$sLangId] = $sResult ==
"OK" ?
true :
false;
69 if ($sResult && $sResult !=
"OK") {
70 $this->_aViewData[
"errorsaving"] =
"DYN_TRUSTED_RATINGS_ERR_{$sResult}";
75 $myConfig->saveShopConfVar(
"arr",
"aTsActiveLangIds", $aActiveLangs, $sOxId);
90 $aTsConfig = $oConfig->getConfigParam(
"aTsConfig");
91 if (is_array($aTsConfig)) {
92 $sWsdl = $aTsConfig[
"blTestMode"] ? $oConfig->getConfigParam(
"sTsServiceTestWsdl") : $oConfig->getConfigParam(
"sTsServiceWsdl");
109 protected function _validateId($sId, $blActive, $sUser, $sPass, $sPkg)
114 $oClient =
new SoapClient($sWsdl);
115 $sReturn = $oClient->updateRatingWidgetState($sId, (
int) $blActive, $sUser, $sPass, $sPkg);
116 }
catch (SoapFault $oFault) {
117 $sReturn = $oFault->faultstring;
131 return 'dyn_interface';
144 if (!is_array($aArr)) {
161 if (!is_array($aArr)) {