FrontendModule/presenters/BasePresenter.php
private function getStructures($direct = true, $rootClass = 'nav navbar-nav', $dropDown = false, $rootId = '')
    {
        $repo = $this->em->getRepository('WebCMS\Entity\Page');

        $structs = $repo->findBy(array(
            'language' => $this->language,
            'parent' => NULL,
        ));

        $structures = array();
        foreach ($structs as $s) {
            $structures[$s->getTitle()] = $this->getStructure($this, $s, $repo, $direct, $rootClass, $dropDown, true, null, '', null, $rootId);
        }

        return $structures;
    }
private function getStructures($direct = true, $rootClass = 'nav navbar-nav', $dropDown = false, $rootId = '')
    {
        $repo = $this->em->getRepository('WebCMS\Entity\Page');

        $structs = $repo->findBy(array(
            'language' => $this->language,
            'parent' => NULL,
        ));

        $structures = array();
        foreach ($structs as $s) {
            $structures[$s->getTitle()] = $this->getStructure($this, $s, $repo, $direct, $rootClass, $dropDown, true, null, '', null, $rootId);
        }

        return $structures;
    }
private function getStructures ( $ direct = true , $ rootClass = 'nav navbar-nav' , $ dropDown = false , $ rootId = '' ) { $ repo = $ this -> em -> getRepository ( 'WebCMS\Entity\Page' ) ; $ structs = $ repo -> findBy ( array ( 'language' => $ this -> language , 'parent' => NULL , ) ) ; $ structures = array ( ) ; foreach ( $ structs as $ s ) { $ structures [ $ s -> getTitle ( ) ] = $ this -> getStructure ( $ this , $ s , $ repo , $ direct , $ rootClass , $ dropDown , true , null , '' , null , $ rootId ) ; } return $ structures ; }
Load all system structures.
@return type
Load all system structures .