public function executeEditorTools()
 {
     $this->page_names = sfSimpleCMSPagePeer::getAllPagesWithLevel();
     $this->slug = $this->getRequestParameter('slug');
     $this->culture = $this->getRequestParameter('sf_culture', sfConfig::get('app_sfSimpleCMS_default_culture', 'en'));
     $publisher_credentials = sfConfig::get('app_sfSimpleCMS_publisher_credential', false);
     $this->is_publisher = !$publisher_credentials || $this->getUser()->hasCredential($publisher_credentials);
 }
 public function executeList()
 {
     parent::executeList();
     $this->getRequest()->setAttribute('page_names', sfSimpleCMSPagePeer::getAllPagesWithLevel());
 }