Example #1
0
 /**
  * Check if the module can be enabled
  *
  * @param \XLite\Model\Module $module    Module
  * @param boolean             $safeCheck True - check if dependent modules can be enabled, false - dependent modules must be active
  *
  * @return boolean
  */
 protected function canEnable(\XLite\Model\Module $module, $safeCheck = false)
 {
     return $module->canEnable($safeCheck);
 }
 /**
  * {@inheritDoc}
  */
 public function canEnable($safeCheck = false)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'canEnable', array($safeCheck));
     return parent::canEnable($safeCheck);
 }
Example #3
0
 /**
  * Alias for canEnable() method
  *
  * @param \XLite\Model\Module $module Module model
  *
  * @return boolean
  */
 protected function canEnable($module)
 {
     return $module->canEnable(true);
 }