/**
  * 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]);
             }
         }
     }
 }
Beispiel #2
0
 /**
  * The "mode" parameter used to determine if we create new or modify existing profile
  *
  * @return boolean
  */
 public function isRegisterMode()
 {
     return \XLite\Controller\Admin\Profile::getInstance()->isRegisterMode();
 }