/** * Sets the confirm properties as given in the form * @return ContentRegisterConfirm */ protected function SaveElement() { $this->confirm->SetErrorUrl($this->selectorError->Save($this->confirm->GetErrorUrl())); $this->confirm->SetSuccessUrl($this->selectorSuccess->Save($this->confirm->GetSuccessUrl())); $this->confirm->SetActivate((bool) $this->Value('Activate')); return $this->confirm; }
/** * Saves the simple register element * @return ContentRegisterSimple */ protected function SaveElement() { $this->register->SetConfirmUrl($this->selectorConfirm->Save($this->register->GetConfirmUrl())); $this->register->SetNextUrl($this->selectorNext->Save($this->register->GetNextUrl())); $this->register->SetMailFrom($this->Value('MailFrom')); $this->register->SetMailText1($this->Value('MailText1')); $this->register->SetMailText2($this->Value('MailText2')); $this->register->SetMailSubject($this->Value('MailSubject')); $this->register->SetMailStyles($this->Value('MailStyles')); return $this->register; }
protected function OnSuccess() { //$isNew = !$this->naviItem->Exists(); $this->naviItem->SetName($this->Value('Name')); $this->naviItem->SetNavigation($this->navi); if (!$this->naviItem->Exists()) { $this->tree->Insert($this->naviItem, $this->parent, $this->previous); } else { $this->naviItem->Save(); } if ($this->Value('Type') == 'PageItem') { $this->naviItem->SetPageItem($this->selector->Save($this->naviItem->GetPageItem())); $this->naviItem->Save(); //$pageItem = $this->SavePageItem(); //$this->SavePageParams($pageItem); } else { $this->SaveUrlItem(); } $this->Redirect(); }
/** * Saves the login element and returns it * @return ContentLogin Returns the login element with form values applied */ protected function SaveElement() { $this->login->SetNextUrl($this->selectorNext->Save($this->login->GetNextUrl())); $this->login->SetPasswordUrl($this->selectorPassword->Save($this->login->GetPasswordUrl())); return $this->login; }
/** * Saves the element and returns it * @return ContentLogout */ protected function SaveElement() { $this->logout->SetNextUrl($this->selectorNext->Save($this->logout->GetNextUrl())); return $this->logout; }