function InstallFirstWebsiteSetup()
 {
     parent::InstallModule();
 }
 function InstallWelcome()
 {
     parent::InstallModule();
 }
 function InstallCreateTables()
 {
     parent::InstallModule();
 }
 function InstallGeneralSetup()
 {
     parent::InstallModule();
 }
 function InstallDisplayJavascriptCode()
 {
     parent::InstallModule();
 }
Пример #6
0
 /**
  * Init user localization
  *
  * @param object $e MvcEvent
  */
 public function initUserLocalization(MvcEvent $e)
 {
     // get a router
     $router = $this->serviceLocator->get('router');
     $matches = $e->getRouteMatch();
     if (!$matches->getParam('language') || !array_key_exists($matches->getParam('language'), self::$localizations)) {
         if (!$matches->getParam('language')) {
             // set default language
             $router->setDefaultParam('language', self::$defaultLocalization['language']);
             return;
         }
         // show a 404 page
         return $matches->setParam('action', 'not-found');
     }
     // init an user localization
     if (self::$defaultLocalization['language'] != $matches->getParam('language')) {
         $this->serviceLocator->get('translator')->setLocale(self::$localizations[$matches->getParam('language')]['locale']);
         self::$currentLocalization = self::$localizations[$matches->getParam('language')];
     }
     if ($this->intlLoaded) {
         Locale::setDefault(self::$localizations[$matches->getParam('language')]['locale']);
     }
     $router->setDefaultParam('language', $matches->getParam('language'));
 }
 function InstallSystemRequirements()
 {
     parent::InstallModule();
 }
 function InstallFinish()
 {
     parent::InstallModule();
 }
 function InstallDatabaseSetup()
 {
     parent::InstallModule();
 }