Exemple #1
0
 /**
  * @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);
 }
Exemple #2
0
<?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);
Exemple #3
0
        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);
Exemple #4
0
 public function delete(Feed $feed)
 {
     $id = $feed->getId();
     return deleteById($id);
 }