Beispiel #1
0
 /**
  * mark item as unread
  * json
  *
  * @return void
  */
 public function unmark()
 {
     $lastid = \F3::get('PARAMS["item"]');
     $itemDao = new \daos\Items();
     if (!$itemDao->isValid('id', $lastid)) {
         $this->view->error('invalid id');
     }
     $itemDao->unmark($lastid);
     $this->view->jsonSuccess(array('success' => true));
 }