15 protected $_aSkipMultiline = array(
'aTsLangIds',
'aHomeCountry',
'aTsActiveLangIds' );
27 $this->_aViewData[
'oxid'] = $this->
getConfig()->getShopId();
30 return "dyn_trusted_ratings.tpl";
49 if ( is_array( $aConfAArs[
'aTsLangIds'] ) ) {
51 $blActive = ( isset( $aConfBools[
"blTsWidget"] ) && $aConfBools[
"blTsWidget"] ==
"true" ) ?
true :
false;
52 $sPkg =
"OXID_ESALES";
54 $aActiveLangs = array();
55 foreach ( $aConfAArs[
'aTsLangIds'] as $sLangId => $sId ) {
56 $aActiveLangs[$sLangId] =
false;
58 $sTsUser =
$myConfig->getConfigParam(
'sTsUser' );
59 $sTsPass =
$myConfig->getConfigParam(
'sTsPass' );
61 $sResult = $this->
_validateId( $sId, (
bool) $blActive, $sTsUser, $sTsPass, $sPkg );
64 $aActiveLangs[$sLangId] = $sResult ==
"OK" ?
true :
false;
67 if ( $sResult && $sResult !=
"OK" ) {
68 $this->_aViewData[
"errorsaving"] =
"DYN_TRUSTED_RATINGS_ERR_{$sResult}";
73 $myConfig->saveShopConfVar(
"arr",
"aTsActiveLangIds", $aActiveLangs, $sOxId );
88 $aTsConfig = $oConfig->getConfigParam(
"aTsConfig" );
89 if ( is_array( $aTsConfig ) ) {
90 $sWsdl = $aTsConfig[
"blTestMode"] ? $oConfig->getConfigParam(
"sTsServiceTestWsdl" ) : $oConfig->getConfigParam(
"sTsServiceWsdl" );
107 protected function _validateId( $sId, $blActive, $sUser, $sPass, $sPkg )
112 $oClient =
new SoapClient( $sWsdl );
113 $sReturn = $oClient->updateRatingWidgetState( $sId, (
int) $blActive, $sUser, $sPass, $sPkg );
114 }
catch ( SoapFault $oFault ) {
115 $sReturn = $oFault->faultstring;
128 return 'dyn_interface';
141 if ( !is_array( $aArr ) ) {
157 if ( !is_array( $aArr ) ) {