public function update($id)
 {
     try {
         $article = new Article($id);
         if (!UserHelper::isEditor()) {
             throw new fValidationException('not allowed');
         }
         $article->setType(fRequest::get('type'));
         $article->setTitle(fRequest::get('title'));
         $article->setContent(fRequest::get('content'));
         $article->setPriority(fRequest::get('priority', 'integer'));
         $article->setVisible(fRequest::get('visible', 'boolean'));
         $article->store();
         $this->ajaxReturn(array('result' => 'success', 'article_id' => $article->getId()));
     } catch (fException $e) {
         $this->ajaxReturn(array('result' => 'failure', 'message' => $e->getMessage()));
     }
 }