public function getLoggedInUser($mapperName = \Tx_Oelib_Mapper_BackEndUser::class)
    {
        if ($mapperName === '') {
            throw new \InvalidArgumentException('$mapperName must not be empty.', 1331318483);
        }
        if (!$this->isLoggedIn()) {
            return null;
        }
        if ($this->loggedInUser) {
            return $this->loggedInUser;
        }

        /** @var \Tx_Oelib_Mapper_BackEndUser $mapper */
        $mapper = \Tx_Oelib_MapperRegistry::get($mapperName);

        /** @var \Tx_Oelib_Model_BackEndUser $user */
        $user = $mapper->find($this->getBackEndUserAuthentication()->user['uid']);
        return $user;
    }
public function getLoggedInUser($mapperName = \Tx_Oelib_Mapper_BackEndUser::class)
    {
        if ($mapperName === '') {
            throw new \InvalidArgumentException('$mapperName must not be empty.', 1331318483);
        }
        if (!$this->isLoggedIn()) {
            return null;
        }
        if ($this->loggedInUser) {
            return $this->loggedInUser;
        }

        /** @var \Tx_Oelib_Mapper_BackEndUser $mapper */
        $mapper = \Tx_Oelib_MapperRegistry::get($mapperName);

        /** @var \Tx_Oelib_Model_BackEndUser $user */
        $user = $mapper->find($this->getBackEndUserAuthentication()->user['uid']);
        return $user;
    }
public function getLoggedInUser ( $ mapperName = \ Tx_Oelib_Mapper_BackEndUser :: class ) { if ( $ mapperName === '' ) { throw new \ InvalidArgumentException ( '$mapperName must not be empty.' , 1331318483 ) ; } if ( ! $ this -> isLoggedIn ( ) ) { return null ; } if ( $ this -> loggedInUser ) { return $ this -> loggedInUser ; } /** @var \Tx_Oelib_Mapper_BackEndUser $mapper */ $ mapper = \ Tx_Oelib_MapperRegistry :: get ( $ mapperName ) ; /** @var \Tx_Oelib_Model_BackEndUser $user */ $ user = $ mapper -> find ( $ this -> getBackEndUserAuthentication ( ) -> user [ 'uid' ] ) ; return $ user ; }
Gets the currently logged-in back-end user.

@param string $mapperName
the name of the mapper to use for getting the back-end user model, must not be empty

@return \Tx_Oelib_Model_BackEndUser the logged-in back-end user, will be NULL if no user is logged in
Gets the currently logged - in back - end user .