2010/4/1 Niklas Laxström niklas.laxstrom@gmail.com:
With objects functions can see that they are getting a message instead of just any random string. There is also many places in the code where messages are passed to functions. We could pass Message objects there instead of array( 'key', 'param', 'param' ), which is quite inflexible.
What do others think of the above?
This'd be very nice, and would kind of supersede the Status class currently used to shove a message key and some params in so the callee can either get it automatically processed by wfMsg() (UI functions) or grab the raw message key + params and process that in their own way (API). This would require the Message class have getters for both of these though (does it currently?).
Roan Kattouw (Catrope)