private function loadFrontSection() { $selection = $this->moduleFilter->filterCode($this->sectionFacade->all(), ModuleConst::FRONT); $record = $selection->fetch(); if (!$record) { return; } $this->frontSectionId = (int) $record->id; }
/** * @param \Nette\Database\Table\Selection $selection * @return \Nette\Database\Table\Selection */ private function filterSections(Selection $selection) { if ($this->withoutHome) { $this->moduleFilter->filterNotModule($selection, ModuleConst::FRONT); } return $selection; }
/** * @return array */ public function getOptionsWithoutHome() { $context = $this->moduleFilter->filterNotModule($this->sectionFacade->all(), ModuleConst::FRONT); return $this->orderAndFetch($context); }