function Init() { $sql = Access::SqlBuilder(); $tblContainer = Container::Schema()->Table(); $orderBy = $sql->OrderList($sql->OrderAsc($tblContainer->Field('Name'))); $this->containers = Container::Schema()->Fetch(false, null, $orderBy); return parent::Init(); }
/** * Initiaizes the set of groups */ protected function Init() { $sql = Access::SqlBuilder(); $tbl = Membergroup::Schema()->Table(); $order = $sql->OrderList($sql->OrderAsc($tbl->Field('Name'))); $this->groups = Membergroup::Schema()->Fetch(false, null, $order); return parent::Init(); }
function Init() { $sql = Access::SqlBuilder(); $tblLayout = Layout::Schema()->Table(); $orderBy = $sql->OrderList($sql->OrderAsc($tblLayout->Field('Name'))); $this->layouts = Layout::Schema()->Fetch(false, null, $orderBy); return parent::Init(); }
protected function Init() { $this->bundlesModules = ClassFinder::BackendNavModules(); $coreModules = $this->bundlesModules['Core']; //unset overview module unset($coreModules[0]); $this->bundlesModules['Core'] = array_values($coreModules); return parent::Init(); }
/** * Initializes the list * @return boolean */ protected function Init() { $this->layout = new Layout(Request::GetData('layout')); if (!$this->layout->Exists()) { Response::Redirect(BackendRouter::ModuleUrl(new LayoutList())); return true; } $this->listProvider = new AreaListProvider($this->layout); $this->area = $this->listProvider->TopMost(); $this->hasAreas = (bool) $this->area; return parent::Init(); }
protected function Init() { $this->navigation = new ContentNavigation(Request::GetData('navigation')); if (!$this->navigation->Exists()) { Response::Redirect(BackendRouter::ModuleUrl(new Overview())); return true; } $this->tree = new NavigationTreeProvider($this->navigation); $this->item = $this->tree->TopMost(); $this->hasItems = (bool) $this->item; return parent::Init(); }
/** * Initiaizes the set of sites */ protected function Init() { $sql = Access::SqlBuilder(); $tbl = Site::Schema()->Table(); $order = $sql->OrderList($sql->OrderAsc($tbl->Field('Name'))); $sites = Site::Schema()->Fetch(false, null, $order); $this->sites = array(); foreach ($sites as $site) { if (self::Guard()->Allow(BackendAction::Read(), $site)) { $this->sites[] = $site; } } return parent::Init(); }
protected function Init() { $this->site = new Site(Request::GetData('site')); $selectedID = Request::GetData('selected'); $this->selected = $selectedID ? Page::Schema()->ByID($selectedID) : null; if (!$this->site->Exists()) { Response::Redirect(BackendRouter::ModuleUrl(new SiteList())); return true; } $this->tree = new PageTreeProvider($this->site); $this->page = $this->tree->TopMost(); $this->hasPages = (bool) $this->page; return parent::Init(); }
protected function Init() { $this->area = new Area(Request::GetData('area')); $selectedID = Request::GetData('selected'); $this->selected = $selectedID ? LayoutContent::Schema()->ByID($selectedID) : null; if (!$this->area->Exists()) { Response::Redirect(BackendRouter::ModuleUrl(new LayoutList())); return true; } $this->tree = new LayoutContentTreeProvider($this->area); $this->layoutContent = $this->tree->TopMost(); $this->hasContents = (bool) $this->layoutContent; return parent::Init(); }
protected function Init() { $this->container = new Container(Request::GetData('container')); $selectedID = Request::GetData('selected'); $this->selected = $selectedID ? ContainerContent::Schema()->ByID($selectedID) : null; if (!$this->container->Exists()) { //TODO: error Response::Redirect(BackendRouter::ModuleUrl(new ContainerList())); return true; } $this->tree = new ContainerContentTreeProvider($this->container); $this->containerContent = $this->tree->TopMost(); $this->hasContents = (bool) $this->containerContent; return parent::Init(); }
protected function Init() { $this->page = new Page(Request::GetData('page')); $selectedID = Request::GetData('selected'); $this->selected = $selectedID ? PageContent::Schema()->ByID($selectedID) : null; if (!$this->page->Exists()) { Response::Redirect(BackendRouter::ModuleUrl(new SiteList())); return true; } $this->area = new Area(Request::GetData('area')); if (!$this->area->Exists()) { $params = array('site' => $this->page->GetSite()->GetID()); Response::Redirect(BackendRouter::ModuleUrl(new PageTree(), $params)); return true; } $this->tree = new PageContentTreeProvider($this->page, $this->area); $this->pageContent = $this->tree->TopMost(); $this->hasContents = (bool) $this->pageContent; return parent::Init(); }
/** * Initializes the template list * @return boolean Returns false if anything is OK */ protected function Init() { $this->InitBundles(); return parent::Init(); }
protected function Init() { $this->InitGroups(); return parent::Init(); }
/** * Initializes the side navigation */ protected function Init() { $this->bundleModules = ClassFinder::BackendNavModules(); return parent::Init(); }
/** * Initializes the set of users */ protected function Init() { $this->InitUsers(); return parent::Init(); }