Beispiel #1
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();
 }