Example #1
0
 function deleteMe()
 {
     if ($this->A("phimFromUserID") != Session::currentUser()->getID()) {
         Red::errorD("Sie können nur eigene Nachrichten löschen!");
     }
     parent::deleteMe();
 }
 function deleteMe()
 {
     $AC = anyC::get("Navigation", "parentID", $this->getID());
     while ($N = $AC->getNextEntry()) {
         $N->deleteMe();
     }
     parent::deleteMe();
 }
Example #3
0
 public function deleteMe()
 {
     if ($this->A("SystemType") == "ip") {
         $data = "\nhostname\nclientid\npersistent\noption rapid_commit\n\noption domain_name_servers, domain_name, domain_search, host_name\noption classless_static_routes\noption ntp_servers\nrequire dhcp_server_identifier\n\nslaac private\n\nnohook lookup-hostname\n";
         echo shell_exec("echo '{$data}' | sudo tee /etc/dhcpcd.conf 2>&1");
     }
     return parent::deleteMe();
 }
Example #4
0
 public function deleteMe()
 {
     if (Session::isPluginLoaded("Kunden") and Session::isPluginLoaded("Auftraege")) {
         $K = Kappendix::getKappendixToAdresse($this->getID());
         if ($K != null) {
             $AC = anyC::get("Auftrag", "kundennummer", $K->A("kundennummer"));
             $AC->setLimitV3(1);
             $A = $AC->getNextEntry();
             if ($A === null) {
                 $K->deleteMe();
             }
         }
     }
     parent::deleteMe();
 }
Example #5
0
 function deleteMe()
 {
     $F = new Factory("UserOld");
     $F->sA("UserOldUserID", $this->getID());
     $id = $F->store();
     $O = new UserOld($id);
     $this->loadMe();
     $A = $this->getA();
     foreach ($A as $k => $v) {
         if ($O->A($k) !== null) {
             $O->changeA($k, $v);
         }
     }
     $O->saveMe();
     parent::deleteMe();
 }
Example #6
0
 public function deleteMe()
 {
     if (Session::isPluginLoaded("mGoogle")) {
         Google::calendarDeleteEvent(mTodoGUI::getCalendarDetails("Todo", $this->getID()));
     }
     $AC = anyC::get("Todo", "TodoExceptionForID", $this->getID());
     while ($T = $AC->getNextEntry()) {
         $T->deleteMe();
     }
     if ($this->A("TodoClass") == "DBMail" and Session::isPluginLoaded("mMail")) {
         Mail::assignRevoke("Todo", $this->getID(), $this->A("TodoClassID"));
     }
     if (Session::isPluginLoaded("mAufgabe") and ($this->A("TodoType") == 3 or $this->A("TodoType") == 4 or $this->A("TodoType") == 5) and $this->A("TodoUserID") > 0) {
         $AC = anyC::get("Aufgabe", "AufgabeByClass", "Todo");
         $AC->addAssocV3("AufgabeByClassID", "=", $this->getID());
         while ($A = $AC->n()) {
             $A->deleteMe();
         }
     }
     parent::deleteMe();
 }
Example #7
0
 public function deleteMe()
 {
     $AC = new anyC();
     $AC->setCollectionOf("Folge");
     $AC->addAssocV3("SerieID", "=", $this->getID());
     while ($F = $AC->getNextEntry()) {
         $F->deleteMe();
     }
     parent::deleteMe();
 }