Пример #1
0
 /**
  * Deactivates a setting
  *
  * @param $key
  * @param null|string $category
  * @return bool
  */
 public function deactivate($key, $category = null)
 {
     if (is_null($category)) {
         $pieces = explode('.', $key);
         $category = $pieces[0];
         $key = $pieces[1];
     }
     return $this->model->deactivateSetting($category, $key);
 }