예제 #1
0
 /**
  * Updates a category
  * 
  * @param array $input Raw form data
  * @return boolean Depending on success
  */
 public function update(array $input)
 {
     if ($this->categoryMapper->update($input['id'], $input['name'], $input['class'])) {
         $this->track('Category "%s" has been updated', $input['name']);
         return true;
     } else {
         return false;
     }
 }