Exemplo n.º 1
0
Arquivo: Main.php Projeto: kingsj/core
 /**
  * Decorator run this method at the end of cache rebuild
  *
  * @return void
  */
 public static function runBuildCacheHandler()
 {
     parent::runBuildCacheHandler();
     $enabledRole = \XLite\Core\Database::getRepo('XLite\\Model\\Role')->findOneBy(array('enabled' => true));
     if (!$enabledRole) {
         $permanent = \XLite\Core\Database::getRepo('XLite\\Model\\Role')->getPermanentRole();
         if (!$permanent) {
             $permanent = \XLite\Core\Database::getRepo('XLite\\Model\\Role')->findFrame(0, 1);
             $permanent = 0 < count($permanent) ? array_shift($permanent) : null;
         }
         if ($permanent) {
             $permanent->setEnabled(true);
             \XLite\Core\Database::getEM()->flush();
         }
     }
 }
Exemplo n.º 2
0
 public static function runBuildCacheHandler()
 {
     parent::runBuildCacheHandler();
 }
Exemplo n.º 3
0
Arquivo: Main.php Projeto: kingsj/core
 /**
  * Decorator run this method at the end of cache rebuild
  *
  * @return void
  */
 public static function runBuildCacheHandler()
 {
     parent::runBuildCacheHandler();
     \XLite\View\AView::removeWidgetFromList('modules/CDev/XMLSitemap/menu.tpl', true, 'menu.settings', \XLite\Model\ViewList::INTERFACE_ADMIN);
 }
Exemplo n.º 4
0
 /**
  * Decorator run this method at the end of cache rebuild
  *
  * @return void
  */
 public static function runBuildCacheHandler()
 {
     parent::runBuildCacheHandler();
     RegistrationScheduler::getInstance()->schedule();
 }