Ejemplo n.º 1
0
 /**
  * @param $key
  * @param $value
  * @param null $category
  * @param null $type
  * @return boolean
  */
 public function set($key, $value, $category = null, $type = null)
 {
     if (is_null($category)) {
         $pieces = explode('.', $key);
         $category = $pieces[0];
         $key = $pieces[1];
     }
     if ($this->model->setSetting($category, $key, $value, $type)) {
         if ($this->clearCache()) {
             return true;
         }
     }
     return false;
 }