FOFPlatformInterface::getUserStateFromRequest

This method will try retrieving a variable from the request (input) data.

If it doesn't exist it will be loaded from the user state, typically stored in the session. If it doesn't exist there either, the $default value will be used. If $setUserState is set to true, the retrieved variable will be stored in the user session.