/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getModule()->callModuleMethod('showSettingsForm'); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getModule()->getEnabled() && $this->isDeveloperMode(); }
/** * 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)); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && !$this->getModule()->getEnabled(); }
/** * 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; }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getModule()->canUninstall(); }