This topic has been going on for a while, where some people have come up with the idea of having a private request collection that is unaffected by the incoming URL/FORM/REMOTE variables but still have access to it via the request context object. You already CAN do this by just building a simple request context decorator. However, some people think that this could be a cool core addition. I am starting to think so also, so here are my thoughts on the topic.
The purpose of this post is for all ColdBox users to have an opinion on this feature and brainstorm as a community.
The request context object will be modified to support an internal private collection that can be accessible by the following methods; basically the same methods for the normal collection but with a private argument:
- getValue(key,[default],[private:boolean='false'])) and getTrimValue()
- getCollection([private:boolean='false']) or getPrivateCollection()
Also, all views and layouts inherit an 'rc' scope for easy request collection access. Now, a secondary scope will be added in order to leverage the separate private collection, so help choose the name:
- $rc (MyFavorite)
- None of the above? Then put a comment for it?
That's it folks. This is the roadmap for this feature. What do you like, what don't you like? What would you change? What would you like to see?