Exemple #1
0
 /**
  * Add an option or update an existing option value
  *
  * @param string $name  The name of the option, formatted like : <plugin>.<key>
  * @param mixed  $value The value to set for this option
  */
 public static function set($name, $value)
 {
     list($plugin, $key) = explode('.', $name);
     self::$options[$plugin][$key] = $value;
     OptionModel::getDbInstance()->replace(OptionModel::getTable(), array('plugin' => $plugin, 'key' => $key, 'value' => $value));
 }