public function getSelectedUser()
    {
        static $user = null;

        if ($user !== null) {
            return $user;
        }

        $staffId = $this->_getIdParam();
        if ($staffId) {
            $user   = $this->loader->getUserLoader()->getUserByStaffId($staffId);
            $source = $this->menu->getParameterSource();
            $user->applyToMenuSource($source);
        } else {
            $user = false;
        }

        return $user;
    }
public function getSelectedUser()
    {
        static $user = null;

        if ($user !== null) {
            return $user;
        }

        $staffId = $this->_getIdParam();
        if ($staffId) {
            $user   = $this->loader->getUserLoader()->getUserByStaffId($staffId);
            $source = $this->menu->getParameterSource();
            $user->applyToMenuSource($source);
        } else {
            $user = false;
        }

        return $user;
    }
public function getSelectedUser ( ) { static $ user = null ; if ( $ user !== null ) { return $ user ; } $ staffId = $ this -> _getIdParam ( ) ; if ( $ staffId ) { $ user = $ this -> loader -> getUserLoader ( ) -> getUserByStaffId ( $ staffId ) ; $ source = $ this -> menu -> getParameterSource ( ) ; $ user -> applyToMenuSource ( $ source ) ; } else { $ user = false ; } return $ user ; }
Load the user selected by the request - if any

@staticvar \Gems_User_User $user
@return \Gems_User_User or false when not available
Load the user selected by the request - if any