Exemple #1
0
 /**
  *
  */
 private function editBoard()
 {
     $boards = new Boards();
     $res = $boards->update(["title" => $_POST['title'], "description" => $_POST['description']], $boards->getAdapter()->quoteInto("id=?", $_POST['board_id']));
     $view = new View($res !== false && $res > 0);
     $view->sendResponse();
 }
Exemple #2
0
 /**
  * @param $id
  * @return bool
  */
 public function deleteForum($id)
 {
     $boards = new Boards();
     if ($boards->deleteBoardsByForumId($id)) {
         return $this->delete($this->getAdapter()->quoteInto("id=?", $id)) > 0;
     }
     return false;
 }