public static function initTimer($wsGetArray, $wsPostArray, $cachetimeLbl, $lastrequestLbl)
 {
     self::$timeOnInit = time();
     self::$wsGetList = $wsGetArray;
     self::$wsPostList = $wsPostArray;
     self::$cachetimeLbl = $cachetimeLbl;
     self::$lastrequestLbl = $lastrequestLbl;
     $completeWslist = array_merge(self::$wsGetList, self::$wsPostList);
     foreach ($completeWslist as $ws) {
         // ex 'OSI_CACHETIME_WSO-G002'
         $WSOInfosList[] = self::$cachetimeLbl . $ws;
         // ex 'OSI_LASTREQUEST_WSO-G002'
         $WSOInfosList[] = self::$lastrequestLbl . $ws;
     }
     self::$wsInfosList = configuration::getMultiple($WSOInfosList);
 }
예제 #2
0
 public static function initGlobalConfig()
 {
     if (!self::$isInit) {
         $globalConfList = array(0 => self::$webServiceUrl, self::$webServicePort, self::$webServiceLogin, self::$webServicePasswd, self::$serviceCode, self::$depositCode, self::$webSiteCode, self::$stateIdOnPreparation, self::$stateIdOnDelivery, self::$stateIdCanceled, self::$linkAttribute1, self::$linkAttribute2, self::$linkAttribute3, self::$linkAttribute4, self::$linkAttribute5, self::$linkAttribute6, self::$linkAttribute1_isfeature, self::$linkAttribute2_isfeature, self::$linkAttribute3_isfeature, self::$linkAttribute4_isfeature, self::$linkAttribute5_isfeature, self::$linkAttribute6_isfeature, self::$linkFeatureVolume, self::$linkFeatureHeight, self::$linkFeatureWidth, self::$linkFeatureLength, self::$defaultLangId, self::$defaultCountryId, self::$defaultPrice, self::$configurationMode);
         self::$globalConfigList = configuration::getMultiple($globalConfList);
     }
 }