public static function getUser($userId)
    {
        /** @var \tao_models_classes_UserService $userService */
        $userService = ServiceManager::getServiceManager()->get(\tao_models_classes_UserService::SERVICE_ID);
        $user = $userService->getUserById($userId);
        return $user;
    }
public static function getUser($userId)
    {
        /** @var \tao_models_classes_UserService $userService */
        $userService = ServiceManager::getServiceManager()->get(\tao_models_classes_UserService::SERVICE_ID);
        $user = $userService->getUserById($userId);
        return $user;
    }
public static function getUser ( $ userId ) { /** @var \tao_models_classes_UserService $userService */ $ userService = ServiceManager :: getServiceManager ( ) -> get ( \ tao_models_classes_UserService :: SERVICE_ID ) ; $ user = $ userService -> getUserById ( $ userId ) ; return $ user ; }
Gets a user from a URI

@todo Make a stronger helper which take care of provider (LDAP, OAUTH, etc.)

@param string $userId
@return User
Gets a user from a URI