コード例 #1
0
 public function DeleteLogradouro($id)
 {
     $delete = new Delete();
     $delete->Deleter(self::Logradouro, 'where logradouro_id = :id', "id={$id}");
     if ($delete->getResult()) {
         $this->result = true;
     } else {
         $this->result = false;
     }
 }
コード例 #2
0
                        //$read = new Read();
                        $read->FullRead("SELECT * FROM pesquisa WHERE autores LIKE :like", "like=%{$_POST['autores']}%");
                        if (!$read->getResult()) {
                            $resultado = false;
                        }
                    }
                }
            }
        }
    }
}
if (isset($_GET['e'])) {
    $e = $_GET['e'];
    $delete = new Delete();
    $delete->ExeDelete('pesquisa', 'WHERE id= :id', "id={$e}");
    if ($delete->getResult()) {
        $excluir = 'Removido com sucesso!';
        $excluirTipo = RI_MSG_SUCCESS;
    }
}
?>
<!DOCTYPE html>
<html class="ls-theme-green">
  <head>
    <title>Repositório Institucional - IFBA - VCA</title>

    <?php 
require_once 'assets.php';
?>

    <script src="assets/js/jquery.dataTables.min.js" type="text/javascript"></script>
コード例 #3
0
ファイル: AdminUser.class.php プロジェクト: claytongf/patr
 private function Delete()
 {
     $Delete = new Delete();
     $Delete->ExeDelete(DB_USERS, "WHERE user_id = :id", "id={$this->User}");
     if ($Delete->getResult()) {
         $this->Error = ["Usuário removido com sucesso do sistema!", TW_ACCEPT];
         $this->Result = true;
     }
 }
コード例 #4
0
 private function delete()
 {
     $delete = new Delete();
     $delete->ExeDelete(self::entidade, "WHERE id = :id", "id={$this->id}");
     if ($delete->getResult()) {
         $this->result = $delete->getResult();
         $this->error = ["Removido com sucesso", WS_ACCEPT];
     }
 }