Example #1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getModule()->callModuleMethod('showSettingsForm');
 }
Example #2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getModule()->getEnabled() && $this->isDeveloperMode();
 }
Example #3
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_CAN_ENABLE => new \XLite\Model\WidgetParam\Bool('Module can enable flag', false));
 }
Example #4
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->getModule()->getEnabled();
 }
Example #5
0
 /**
  * Return JS files for the widget
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = 'items_list/module/install/parts/columns/info/actions/js/install.js';
     return $list;
 }
Example #6
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getModule()->canUninstall();
 }