protected function OnSuccess()
    {
        $action = Action::Update();
        if (!$this->container->Exists())
        {
            $action = Action::Create();
            $this->container->SetUser(self::Guard()->GetUser());
        }
        $this->container->SetName($this->Value('Name'));
        $this->container->Save();
        
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportContainerAction($this->container, $action);
        
        if ($this->CanAssignGroup())
        {
            $this->SaveRights();
        }
        Response::Redirect(BackendRouter::ModuleUrl(new ContainerList()));
    }
protected function OnSuccess()
    {
        $action = Action::Update();
        if (!$this->container->Exists())
        {
            $action = Action::Create();
            $this->container->SetUser(self::Guard()->GetUser());
        }
        $this->container->SetName($this->Value('Name'));
        $this->container->Save();
        
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportContainerAction($this->container, $action);
        
        if ($this->CanAssignGroup())
        {
            $this->SaveRights();
        }
        Response::Redirect(BackendRouter::ModuleUrl(new ContainerList()));
    }
protected function OnSuccess ( ) { $ action = Action :: Update ( ) ; if ( ! $ this -> container -> Exists ( ) ) { $ action = Action :: Create ( ) ; $ this -> container -> SetUser ( self :: Guard ( ) -> GetUser ( ) ) ; } $ this -> container -> SetName ( $ this -> Value ( 'Name' ) ) ; $ this -> container -> Save ( ) ; $ logger = new Logger ( self :: Guard ( ) -> GetUser ( ) ) ; $ logger -> ReportContainerAction ( $ this -> container , $ action ) ; if ( $ this -> CanAssignGroup ( ) ) { $ this -> SaveRights ( ) ; } Response :: Redirect ( BackendRouter :: ModuleUrl ( new ContainerList ( ) ) ) ; }
Saves the container
Saves the container