You have access to the variables using the framework’s variable system, or if you need access to those to modify the life-cycle events of the framework itself, you can write a plugin. The plugin system has access to lot more things.
Let me know if that answers your question.