Exemplo n.º 1
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('cron')) {
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Cron_Migrations_CreateCronTable');
     }
 }
Exemplo n.º 2
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('publications_list')) {
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Publications_Migrations_CreatePublicationListTable');
         $_migrationManager->upTo('Modules_Publications_Migrations_CreatePublicationFieldsTable');
     }
 }
Exemplo n.º 3
0
 public function bootstrap()
 {
     if (!System_Functions::tableExist('seo')) {
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Seo_Migrations_CreateTableSeo');
     }
     parent::bootstrap();
     $this->_registerPlugins();
 }
Exemplo n.º 4
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('blocks')) {
         $routerBootstrap = new Modules_Router_Bootstrap();
         $routerBootstrap->bootstrap();
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Blocks_Migrations_CreateBlocksTable');
     }
     $this->_registerPlugin();
 }
Exemplo n.º 5
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('menu')) {
         $routerBootstrap = new Modules_Router_Bootstrap();
         $routerBootstrap->bootstrap();
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Menu_Migrations_CreateMenuTable');
         $_migrationManager->upTo('Modules_Menu_Migrations_CreateItemsTable');
         $_migrationManager->upTo('Modules_Menu_Migrations_AddDefaultMenu');
     }
 }
Exemplo n.º 6
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('admin_panel_favorites')) {
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Admin_Migrations_CreatePanelFavoritesTable');
     }
     if (Zend_Controller_Front::getInstance()->getRequest()->isXmlHttpRequest()) {
         return false;
     }
     /* регистрируем плагин вывода панели администрирования на frontend */
     if (Zetta_Acl::getInstance()->isAllowed('admin')) {
         Zend_Controller_Front::getInstance()->registerPlugin(new Modules_Admin_Plugin_Panel());
     }
 }
Exemplo n.º 7
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('routes')) {
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Router_Migrations_CreateRoutesTable');
         $_migrationManager->upTo('Modules_Router_Migrations_AddDefaultRoutes');
     }
     $router = Zend_Controller_Front::getInstance()->getRouter();
     $router->addConfig(Zend_Registry::get('config')->Router, 'routes');
     Zend_Registry::set('Router', Modules_Router_Model_Router::getInstance());
     $currentRoute = Modules_Router_Model_Router::getInstance()->current();
     Zend_Registry::set('RouteCurrent', $currentRoute);
     Zend_Registry::set('RouteCurrentId', $currentRoute['route_id']);
     defined('ZETTA_FRONT') || define('ZETTA_FRONT', $currentRoute['route_id'] ? true : false);
 }
Exemplo n.º 8
0
 public function bootstrap()
 {
     parent::bootstrap();
     if (!System_Functions::tableExist('access_users')) {
         $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
         $_migrationManager->upTo('Modules_Access_Migrations_CreateResourceTable');
         $_migrationManager->upTo('Modules_Access_Migrations_CreateRolesTable');
         $_migrationManager->upTo('Modules_Access_Migrations_CreateRulesTable');
         $_migrationManager->upTo('Modules_Access_Migrations_CreateUsersTable');
         $_migrationManager->upTo('Modules_Access_Migrations_SetDefaultResource');
     }
     /* Авторизуем пользователя, теперь везде можем использоваеть Zend_Auth::getInstance() */
     Modules_Access_Framework_Auth::getInstance()->bootstrap();
     /* Расставляем права доступа */
     Modules_Access_Framework_Acl::getInstance()->bootstrap();
 }
Exemplo n.º 9
0
 public function bootstrap()
 {
     parent::bootstrap();
 }
Exemplo n.º 10
0
 public function bootstrap()
 {
     parent::bootstrap();
     Zend_Registry::get('config')->Dbmigrations = new Zend_Config_Ini('Dbmigrations/config.ini');
 }
Exemplo n.º 11
0
 public function bootstrap()
 {
     parent::bootstrap();
     Zend_Controller_Front::getInstance()->registerPlugin(new Zend_Controller_Plugin_ActionStack())->registerPlugin(new Modules_Default_Plugin_Referer())->registerPlugin(new Modules_Default_Plugin_CleanBaseUrl(), -999999)->registerPlugin(new Modules_Default_Plugin_Csrf(), -1000000);
     // защита от csrf атак должна отрабатываться самой первой
 }
Exemplo n.º 12
0
 public function bootstrap()
 {
     parent::bootstrap();
     Zend_Registry::set('SiteConfig', Modules_Settings_Model_Settings::getInstance());
 }
Exemplo n.º 13
0
 public function bootstrap()
 {
     parent::bootstrap();
     Zend_Controller_Front::getInstance()->registerPlugin(new Modules_Accessusers_Plugin_Widget(), 1000);
 }
Exemplo n.º 14
0
 public function bootstrap()
 {
     parent::bootstrap();
     $this->_registerPlugins();
 }