Exemplo n.º 1
0
 protected function BeforeRemove(TableObject $deleteObject)
 {
     $logger = new Logger(self::Guard()->GetUser());
     $logger->ReportMemberAction($deleteObject, Action::Delete());
 }
Exemplo n.º 2
0
 /**
  * Saves the user
  */
 protected function OnSuccess()
 {
     $action = $this->member->Exists() ? Action::Update() : Action::Create();
     $this->member->SetName($this->Value('Name'));
     $this->member->SetEMail($this->Value('EMail'));
     $this->SetPassword();
     $this->member->Save();
     $logger = new Logger(self::Guard()->GetUser());
     $logger->ReportMemberAction($thos->member, $action);
     if ($this->groupsExist && $this->CanAssignGroup()) {
         $this->SaveGroups();
     }
     Response::Redirect(BackendRouter::ModuleUrl(new MemberList()));
 }