private function SaveContent()
    {
        $this->Content()->SetType($this->FrontendModule()->MyType());
        $this->Content()->SetCssClass($this->Value('CssClass'));
        $this->Content()->SetCssID($this->Value('CssID'));
        $this->Content()->SetTemplate($this->Value('Template'));
        $this->Content()->SetCacheLifetime((int) $this->Value('CacheLifetime'));
        $this->Content()->SetGuestsOnly((bool) $this->Value('GuestsOnly'));
        if ($this->AutoPublish())
        {
            $this->Content()->SetPublish(true);
        }
        else
        {
            $this->Content()->SetPublish((bool) $this->Value('Publish'));
        }
        $this->Content()->SetPublishFrom($this->PublishDate('PublishFrom'));
        $this->Content()->SetPublishTo($this->PublishDate('PublishTo'));

        $action = Action::Update();
        if (!$this->Content()->Exists()) {
            $action = Action::Create();
            $this->Content()->SetUser(self::Guard()->GetUser());
        }
        $this->Content()->Save();
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportContentAction($this->Content(), $action);
        if ($this->CanAssignGroup()) {
            $this->SaveRights();
        }
        $this->SaveMemberGroups();
        $this->SaveWordings();
    }
private function SaveContent()
    {
        $this->Content()->SetType($this->FrontendModule()->MyType());
        $this->Content()->SetCssClass($this->Value('CssClass'));
        $this->Content()->SetCssID($this->Value('CssID'));
        $this->Content()->SetTemplate($this->Value('Template'));
        $this->Content()->SetCacheLifetime((int) $this->Value('CacheLifetime'));
        $this->Content()->SetGuestsOnly((bool) $this->Value('GuestsOnly'));
        if ($this->AutoPublish())
        {
            $this->Content()->SetPublish(true);
        }
        else
        {
            $this->Content()->SetPublish((bool) $this->Value('Publish'));
        }
        $this->Content()->SetPublishFrom($this->PublishDate('PublishFrom'));
        $this->Content()->SetPublishTo($this->PublishDate('PublishTo'));

        $action = Action::Update();
        if (!$this->Content()->Exists()) {
            $action = Action::Create();
            $this->Content()->SetUser(self::Guard()->GetUser());
        }
        $this->Content()->Save();
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportContentAction($this->Content(), $action);
        if ($this->CanAssignGroup()) {
            $this->SaveRights();
        }
        $this->SaveMemberGroups();
        $this->SaveWordings();
    }
private function SaveContent ( ) { $ this -> Content ( ) -> SetType ( $ this -> FrontendModule ( ) -> MyType ( ) ) ; $ this -> Content ( ) -> SetCssClass ( $ this -> Value ( 'CssClass' ) ) ; $ this -> Content ( ) -> SetCssID ( $ this -> Value ( 'CssID' ) ) ; $ this -> Content ( ) -> SetTemplate ( $ this -> Value ( 'Template' ) ) ; $ this -> Content ( ) -> SetCacheLifetime ( ( int ) $ this -> Value ( 'CacheLifetime' ) ) ; $ this -> Content ( ) -> SetGuestsOnly ( ( bool ) $ this -> Value ( 'GuestsOnly' ) ) ; if ( $ this -> AutoPublish ( ) ) { $ this -> Content ( ) -> SetPublish ( true ) ; } else { $ this -> Content ( ) -> SetPublish ( ( bool ) $ this -> Value ( 'Publish' ) ) ; } $ this -> Content ( ) -> SetPublishFrom ( $ this -> PublishDate ( 'PublishFrom' ) ) ; $ this -> Content ( ) -> SetPublishTo ( $ this -> PublishDate ( 'PublishTo' ) ) ; $ action = Action :: Update ( ) ; if ( ! $ this -> Content ( ) -> Exists ( ) ) { $ action = Action :: Create ( ) ; $ this -> Content ( ) -> SetUser ( self :: Guard ( ) -> GetUser ( ) ) ; } $ this -> Content ( ) -> Save ( ) ; $ logger = new Logger ( self :: Guard ( ) -> GetUser ( ) ) ; $ logger -> ReportContentAction ( $ this -> Content ( ) , $ action ) ; if ( $ this -> CanAssignGroup ( ) ) { $ this -> SaveRights ( ) ; } $ this -> SaveMemberGroups ( ) ; $ this -> SaveWordings ( ) ; }
Saves content base properties
Saves content base properties