/** * Initializes the Mounts for a user * Overwrite this function if you plan to not * read Mountpoints from the be_users table * * @param int $uid User UID * * @return void */ public function init($uid) { // Return if the UID is not numeric - could also be because we have a new user if (!is_numeric($uid) || $this->field == NULL) { if (TYPO3_DLOG) { \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('init (Tx_Commerce_Tree_Leaf_Mounts) gets passed invalid parameters. Script is aborted.', COMMERCE_EXTKEY, 2); } return; } $this->user_uid = $uid; $this->user->setBeUserByUid($uid); $mounts = $this->getMounts(); // If neither User nor Group have mounts, return if ($mounts == NULL) { return; } // Store the results $this->mountlist = \TYPO3\CMS\Core\Utility\GeneralUtility::uniqueList($mounts); // Clean duplicates $this->mountdata = explode(',', $this->mountlist); }