示例#1
0
 /**
  * Top-down handler for update wallpost. Wallpost form onSuccess event handler.
  * @param ArrayHash $values
  */
 public function updateWallPost(ArrayHash $values)
 {
     try {
         $wp = new WallPost((array) $values);
         $wp->setEditor($this->getUser()->getIdentity());
         $this->wallService->updateWallPost($wp);
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataSave($values->id, "default", $ex);
     }
     $this->redirect("default");
 }