protected function Init() { $pageID = Request::GetData('page'); $this->pageOnly = (bool) Request::GetData('pageOnly'); $this->selected = Page::Schema()->ByID($pageID); $this->prefix = Request::GetData('prefix'); $this->disabledPageIDs = Request::GetArray('disabled'); $this->InitSites(); $this->AddSubmit(); return parent::Init(); }
/** * Initializes the confirm element * @return boolean Returns true if redirect happens */ protected function Init() { $this->confirm = ContentRegisterConfirm::Schema()->ByContent($this->Content()); $this->confirmer = new Confirmer(); $this->isValid = $this->confirmer->Check(Request::GetArray()); if ($this->isValid) { $this->OnSuccess(); } else { if ($this->confirm->GetErrorUrl()) { Response::Redirect(FrontendRouter::Url($this->confirm->GetErrorUrl())); return true; } } return parent::Init(); }
private function DoRedirect(ContentForm $contentForm) { $params = Request::GetArray(); Response::Redirect(BackendRouter::ModuleUrl($contentForm, $params)); }
private function ReplacePageUrl(Page $page, Token $token, $startPos, &$endPos) { $params = $token->PropertyParams; if ($page->Equals(PageRenderer::Page())) { //merge current GET parameters on current page $params = array_merge(Request::GetArray(), $params); } $url = FrontendRouter::PageUrl($page, $params); $this->InsertValue($url, $token, $startPos, $endPos); }