コード例 #1
0
 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();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
ファイル: ModuleForm.php プロジェクト: agentmedia/phine-core
 private function DoRedirect(ContentForm $contentForm)
 {
     $params = Request::GetArray();
     Response::Redirect(BackendRouter::ModuleUrl($contentForm, $params));
 }
コード例 #4
0
ファイル: Replacer.php プロジェクト: agentmedia/phine-core
 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);
 }