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();
 }
 protected function Init()
 {
     $this->prefix = Request::GetData('prefix');
     $this->page = Page::Schema()->ByID(Request::GetData('page'));
     if (!$this->page) {
         throw new \Exception('Required parameter page invalid or missing');
     }
     $this->serializer = new ArrayLinesSerializer();
     $this->oblParams = FrontendRouter::GatherParams($this->page->GetUrl());
     $this->params = $this->serializer->LinesToArray(Request::GetData('params'));
     $this->AddObligatoryFields();
     $this->AddOptionalParamsField();
     $this->AddFragmentField();
     $this->AddSubmit();
     return parent::Init();
 }