public function remove()
 {
     foreach ($this->getExpression() as $expression) {
         $expression->remove();
     }
     DB::remove($this);
 }
Beispiel #2
0
 function deleteEmail($id)
 {
     \SKS\LIB\Session::checkAuthorPermission();
     $db = new DB();
     $email = new \SKS\DB\Entity\Email();
     $email = $db->findById($email, $id);
     $db->remove($email);
     $this->view->message = "Emeil is deleted successfully.";
     $this->index();
 }
Beispiel #3
0
<?php

require 'DB.php';
$db = new DB();
if ($_POST) {
    $db->add($_POST['name'], $_POST['phone']);
}
if ($_GET['delete']) {
    $db->remove($_GET['delete']);
}
$contacts = $db->all();
?>

<html>
<head>
    <title>PHP-Apache-Mysql-Sample 示例312hh - DaoCloud</title>

    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">

    <style>
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            color: #666;
            display: table;
        }

        .container {
            display: table-cell;
Beispiel #4
0
 public function remove()
 {
     return DB::remove($this);
 }
 public function remove()
 {
     DB::remove($this);
 }
Beispiel #6
0
 public function remove()
 {
     viewData::removeByTypeLinkId('cmd', $this->getId());
     dataStore::removeByTypeLinkId('cmd', $this->getId());
     $this->getEqLogic()->emptyCacheWidget();
     $this->emptyHistory();
     return DB::remove($this);
 }
 public function remove()
 {
     foreach ($this->getSubElement() as $subelement) {
         $subelement->remove();
     }
     DB::remove($this);
 }
Beispiel #8
0
 public function remove()
 {
     viewData::removeByTypeLinkId('scenario', $this->getId());
     dataStore::removeByTypeLinkId('scenario', $this->getId());
     foreach ($this->getElement() as $element) {
         $element->remove();
     }
     $this->emptyCacheWidget();
     return DB::remove($this);
 }
Beispiel #9
0
 public function remove()
 {
     foreach ($this->getCmd() as $cmd) {
         $cmd->remove();
     }
     viewData::removeByTypeLinkId('eqLogic', $this->getId());
     dataStore::removeByTypeLinkId('eqLogic', $this->getId());
     $this->emptyCacheWidget();
     return DB::remove($this);
 }
Beispiel #10
0
 public function remove()
 {
     DB::remove($this);
     @nodejs::pushUpdate('message::refreshMessageNumber');
 }
Beispiel #11
0
 /**
  * Remove cron object
  * @return boolean
  */
 public function remove($halt_before = true)
 {
     if ($halt_before && $this->running()) {
         $this->halt();
     }
     return DB::remove($this);
 }
Beispiel #12
0
 public function removeEduAction()
 {
     $id = $this->request->getRouteValue('id');
     if ($record = DB::getObjectByID('Education', $id)) {
         DB::remove($record);
         $this->redirectUrl($this->request->getBackUrl());
     } else {
         $this->handleNotFound('This record was not found');
     }
 }
Beispiel #13
0
 public function remove()
 {
     foreach ($this->getEqLogic() as $eqLogic) {
         $eqLogic->remove();
     }
     dataStore::removeByTypeLinkId('eqReal', $this->getId());
     return DB::remove($this);
 }