protected function savePages(Theme $theme, array $options)
    {
        $pages = $this->pageTreeCollection->getPages();
        $basePages = $this->pageTreeCollection->getBasePages();

        $options["type"] = "Pages";
        if ( ! $this->doSavePages($pages, $theme, $options)) {
            return false;
        }

        $options["type"] = "Base";
        if ( ! $this->doSavePages($basePages, $theme, $options)) {
            return false;
        }

        return true;
    }
protected function savePages(Theme $theme, array $options)
    {
        $pages = $this->pageTreeCollection->getPages();
        $basePages = $this->pageTreeCollection->getBasePages();

        $options["type"] = "Pages";
        if ( ! $this->doSavePages($pages, $theme, $options)) {
            return false;
        }

        $options["type"] = "Base";
        if ( ! $this->doSavePages($basePages, $theme, $options)) {
            return false;
        }

        return true;
    }
protected function savePages ( Theme $ theme , array $ options ) { $ pages = $ this -> pageTreeCollection -> getPages ( ) ; $ basePages = $ this -> pageTreeCollection -> getBasePages ( ) ; $ options [ "type" ] = "Pages" ; if ( ! $ this -> doSavePages ( $ pages , $ theme , $ options ) ) { return false ; } $ options [ "type" ] = "Base" ; if ( ! $ this -> doSavePages ( $ basePages , $ theme , $ options ) ) { return false ; } return true ; }
Saves the pages instantiating an PageTreeCollection object

@param  \RedKiteLabs\ThemeEngineBundle\Core\Theme\Theme $theme
@param  array                                             $options An array of options
@return boolean
Saves the pages instantiating an PageTreeCollection object