Ejemplo n.º 1
0
 /**
  * Execute certain hook handler
  *
  * @return void
  */
 public function executeHookHandler()
 {
     // Delete old and rename new
     if (\Includes\Decorator\Utils\CacheManager::isCapsular()) {
         \XLite\Model\ViewList::setVersionKey(null);
         $repo = \XLite\Core\Database::getRepo('XLite\\Model\\ViewList');
         $key = \Includes\Decorator\Utils\CacheManager::getKey();
         $repo->deleteObsolete($key);
         $repo->markCurrentVersion($key);
     }
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function prepareEntityBeforeCommit($type)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type));
     return parent::prepareEntityBeforeCommit($type);
 }