Beispiel #1
0
 public function delete($moveChildAffiliates = false)
 {
     if (Gpf_Application::isDemo() && Gpf_Application::isDemoEntryId($this->getId())) {
         throw new Gpf_Exception("Demo affiliate can not be deleted");
     }
     $this->load();
     if ($moveChildAffiliates) {
         $this->moveChildAffiliatesTo($this->getParentUserId());
     } else {
         $this->clearParentAffiliate();
     }
     return parent::delete();
 }