Example #1
0
 function deleteMe()
 {
     mUserdata::checkRestrictionOrDie("cantDelete" . str_replace("GUI", "", get_class($this)));
     try {
         if (Session::isPluginLoaded("mArchiv")) {
             Archiv::archive($this);
         }
     } catch (TableDoesNotExistException $e) {
     }
     $this->loadAdapter();
     if (!$this->noDeleteHideOnly) {
         $this->Adapter->deleteSingle($this->getClearClass(get_class($this)));
     } else {
         $this->loadMe();
         $this->A->isDeleted = 1;
         $this->saveMe();
     }
     Aspect::joinPoint("after", $this, get_class($this) . "::deleteMe", $this->A);
 }
 function deleteMe()
 {
     mUserdata::checkRestrictionOrDie("cantDelete" . str_replace("GUI", "", get_class($this)));
     if (Session::isPluginLoaded("mArchiv")) {
         Archiv::archive($this);
     }
     $this->loadAdapter();
     if (!$this->noDeleteHideOnly) {
         $this->Adapter->deleteSingle($this->getClearClass(get_class($this)));
     } else {
         $this->loadMe();
         $this->A->isDeleted = 1;
         $this->saveMe();
     }
 }