예제 #1
0
 /**
  * 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]);
             }
         }
     }
 }
예제 #2
0
 /**
  * Check if the widget is visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && !(bool) \XLite\Core\Request::getInstance()->id;
 }
예제 #3
0
 /**
  * Checks whether the widget is visible, or not
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getMethod();
 }
예제 #4
0
 /**
  * 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'));
 }
예제 #5
0
 /**
  * Checks whether the widget is visible, or not
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Controller\Admin\TaxClasses::isEnabled();
 }
예제 #6
0
 /** 
  * 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;
 }
예제 #7
0
 /**
  * Init
  *
  * @return void
  */
 public function init()
 {
     parent::init();
 }