Пример #1
0
 /**
  * Initialises the variables iconPath and backPath
  *
  * @return self
  */
 public function __construct()
 {
     parent::__construct();
     $rootPathT3 = GeneralUtility::getIndpEnv('TYPO3_SITE_PATH');
     // If we don't have any data, set /
     if (empty($rootPathT3)) {
         $rootPathT3 = '/';
     }
     if ($GLOBALS['BACK_PATH']) {
         $this->backPath = $GLOBALS['BACK_PATH'];
     } else {
         $this->backPath = $rootPathT3 . TYPO3_mainDir;
     }
     $this->iconPath = $this->backPath . PATH_TXCOMMERCE_ICON_TREE_REL;
 }
Пример #2
0
 /**
  * Constructor - initializes the values
  *
  * @return self
  */
 public function __construct()
 {
     parent::__construct();
     $this->user_uid = 0;
     $this->mountlist = '';
     $this->mountdata = array();
     $this->pointer = 0;
     $this->user = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication');
     $this->group = 0;
     $this->byGroup = FALSE;
 }