/** * @brief Delete the folder and all its feeds from the database * @param folder the folder to be deleted (an instance of OCA\News\Folder) * @returns true if the folder has been deleted, false if an error occurred */ public function delete(Folder $folder) { $folderid = $folder->getId(); return deleteById(folderid); }
<?php session_start(); require_once '../../config.php'; require_once '../../model/mysql_query.php'; if (isset($_POST['id'])) { deleteById('passwords', $_POST['id']); echo 'Delete Success'; } mysql_close($db);
insert(); break; case 2: update(); break; case 3: delete(); break; case 4: setById(); break; case 5: getById(); break; case 6: deleteById(); break; default: hello(); } function select() { /**Select Request**/ $orm = new ORM(); $sql = new MysqlConnect($orm->getDatabase()); $fields = array("*"); $condition = array('where' => array('id !=' => 1)); $order = array("id" => "DESC", "ok" => "ASC"); $groupby = array('id', "ok"); $having = array("id >" => 1); $sql->select($fields, $orm);
public function delete(Feed $feed) { $id = $feed->getId(); return deleteById($id); }