コード例 #1
0
ファイル: setting.php プロジェクト: jeprodev/jeproshop
 /**
  * Set TEMPORARY a single configuration value (in one language only)
  *
  * @param string $key Key wanted
  * @param mixed $values $values is an array if the configuration is multilingual, a single string else.
  * @internal param int $id_shop_group
  * @internal param int $id_shop
  */
 public static function setValue($key, $values)
 {
     if (!JeproshopTools::isSettingName($key)) {
         die(sprintf(Tools::displayError('[%s] is not a valid configuration key'), $key));
     }
     if (!is_array($values)) {
         $values = array($values);
     }
     foreach ($values as $value) {
         self::$_cache['setting'][$key] = $value;
     }
 }