/** * Initializes the html frontend module * @return boolean */ protected function Init() { $htmlWrap = ContentHtmlWrap::Schema()->ByContent($this->content); $this->html = $htmlWrap->GetHtml(); $this->currentChild = $this->tree->FirstChildOf($this->item); return parent::Init(); }
/** * Initializes the repeater frontend module * @return boolean Returns tru */ protected function Init() { $this->repeater = ContentRepeater::Schema()->ByContent($this->content); $this->current = $this->tree->FirstChildOf($this->item); $this->isEmpty = !$this->current; return parent::Init(); }
/** * Initializes the html frontend module * @return boolean */ protected function Init() { $contentContainer = ContentContainer::Schema()->ByContent($this->content); $tree = new ContainerContentTreeProvider($contentContainer->GetContainer()); $renderer = new ContentsRenderer($tree->TopMost(), $tree); $this->contents = $renderer->Render(); return parent::Init(); }
protected function Init() { $this->navi = ContentNavigation::Schema()->ByContent($this->content); $this->naviTree = new NavigationTreeProvider($this->navi); $this->level = 0; $this->naviItem = $this->naviTree->FirstChildOf($this->naviParent); $this->isEmpty = $this->naviItem == null; $this->CalcLevel(); return parent::Init(); }
protected function Init() { if (self::Guard()->Accessor()->IsUndefined()) { return true; } $this->logout = ContentLogout::Schema()->ByContent($this->Content()); $this->triggerName = 'Logout-' . $this->Content()->GetID(); $this->HandlePost(); 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(); }
/** * * @return type */ protected final function Init() { $this->result = \json_encode($this->FillObject()); return parent::Init(); }
/** * Initializes the html code frontend module * @return boolean */ protected function Init() { $htmlCode = ContentHtmlCode::Schema()->ByContent($this->content); $this->code = $htmlCode->GetCode(); return parent::Init(); }
/** * Initializes the html frontend module * @return boolean */ protected function Init() { $html = ContentHtml::Schema()->ByContent($this->content); $this->html = $html->GetHtml(); return parent::Init(); }
/** * Initializes the html frontend module * @return boolean */ protected function Init() { $block = ContentBlock::Schema()->ByContent($this->content); $this->tag = $block->GetTagName(); return parent::Init(); }