/** * init * * @return void */ public function init() { parent::init(); if (\XLite\Controller\Admin\Profile::getInstance()->isRegisterMode()) { foreach ($this->tabs as $key => $tab) { if ('profile' != $key) { unset($this->tabs[$key]); } } } }
/** * Check if the widget is visible * * @return boolean */ public function isVisible() { return parent::isVisible() && !(bool) \XLite\Core\Request::getInstance()->id; }
/** * Checks whether the widget is visible, or not * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getMethod(); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(self::PARAM_PRODUCT => new \XLite\Model\WidgetParam\Object('Product', null, false, '\\XLite\\Model\\Product')); }
/** * Checks whether the widget is visible, or not * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Controller\Admin\TaxClasses::isEnabled(); }
/** * Checks whether the tabs navigation is visible, or not * * @return boolean */ protected function isTabsNavigationVisible() { $visible = parent::isTabsNavigationVisible(); if (!\XLite\Core\Request::getInstance()->id && !\XLite\Core\Request::getInstance()->parent) { $visible = false; } return $visible; }
/** * Init * * @return void */ public function init() { parent::init(); }