protected function runLayoutsGenerationProcess()
    {
        # Website creation
        if (null === $site = $this->entyMgr->find('BackBee\Site\Site', md5($this->siteLabel))) {
            $site = $this->createSite($this->siteLabel, $this->siteDomain);
        }
        $this->bbapp->getContainer()->set('site', $site);

        # Home layout
        if (null === $layout = $this->entyMgr->find('BackBee\Site\Layout', md5('defaultlayout-' . $this->siteLabel))) {
            $layout = $this->createHomeLayout($site);
        }

        # Creating site root page
        if (null === $root = $this->entyMgr->find('BackBee\NestedNode\Page', md5('root-' . $this->siteLabel))) {
            $root = $this->createRootPage($site, $layout);
        }        

        // Creating mediacenter root
        if (null === $mediafolder = $this->entyMgr->find('BackBee\NestedNode\MediaFolder', md5('media'))) {
            $this->createMediaFolder();
        }

        // Creating keyword
        if (null === $this->entyMgr->find('BackBee\NestedNode\KeyWord', md5('root'))) {
            $this->createKeyword();
        }

        return $this;
    }
protected function runLayoutsGenerationProcess()
    {
        # Website creation
        if (null === $site = $this->entyMgr->find('BackBee\Site\Site', md5($this->siteLabel))) {
            $site = $this->createSite($this->siteLabel, $this->siteDomain);
        }
        $this->bbapp->getContainer()->set('site', $site);

        # Home layout
        if (null === $layout = $this->entyMgr->find('BackBee\Site\Layout', md5('defaultlayout-' . $this->siteLabel))) {
            $layout = $this->createHomeLayout($site);
        }

        # Creating site root page
        if (null === $root = $this->entyMgr->find('BackBee\NestedNode\Page', md5('root-' . $this->siteLabel))) {
            $root = $this->createRootPage($site, $layout);
        }        

        // Creating mediacenter root
        if (null === $mediafolder = $this->entyMgr->find('BackBee\NestedNode\MediaFolder', md5('media'))) {
            $this->createMediaFolder();
        }

        // Creating keyword
        if (null === $this->entyMgr->find('BackBee\NestedNode\KeyWord', md5('root'))) {
            $this->createKeyword();
        }

        return $this;
    }
protected function runLayoutsGenerationProcess ( ) { # Website creation if ( null === $ site = $ this -> entyMgr -> find ( 'BackBee\Site\Site' , md5 ( $ this -> siteLabel ) ) ) { $ site = $ this -> createSite ( $ this -> siteLabel , $ this -> siteDomain ) ; } $ this -> bbapp -> getContainer ( ) -> set ( 'site' , $ site ) ; # Home layout if ( null === $ layout = $ this -> entyMgr -> find ( 'BackBee\Site\Layout' , md5 ( 'defaultlayout-' . $ this -> siteLabel ) ) ) { $ layout = $ this -> createHomeLayout ( $ site ) ; } # Creating site root page if ( null === $ root = $ this -> entyMgr -> find ( 'BackBee\NestedNode\Page' , md5 ( 'root-' . $ this -> siteLabel ) ) ) { $ root = $ this -> createRootPage ( $ site , $ layout ) ; } // Creating mediacenter root if ( null === $ mediafolder = $ this -> entyMgr -> find ( 'BackBee\NestedNode\MediaFolder' , md5 ( 'media' ) ) ) { $ this -> createMediaFolder ( ) ; } // Creating keyword if ( null === $ this -> entyMgr -> find ( 'BackBee\NestedNode\KeyWord' , md5 ( 'root' ) ) ) { $ this -> createKeyword ( ) ; } return $ this ; }
Create new site db entry, home layout, root page mediacenter and keyword

@return CreateSudoerCommand
Create new site db entry home layout root page mediacenter and keyword