Removed feature "Administrator can remove posts"

This commit is contained in:
2017-09-11 08:57:51 +07:00
parent 5a00809053
commit 70a4c80143
3 changed files with 0 additions and 44 deletions

View File

@@ -241,20 +241,4 @@ class Post extends \Core\Model
throw new \Exception($e->getMessage(), 444);
}
}
public function remove($id) {
try {
$db = static::connectDB();
$sql = "DELETE FROM pengumuman WHERE id = ?";
$query = $db->prepare($sql);
$query->bindValue(1, $id);
$query->execute();
return true;
} catch (PDOException $e) {
throw new \Exception($e->getMessage(), 444);
}
}
}