Daniel Barrett wrote:
- Stick to calling a class's public methods,
rather than accessing its $mFoobar members, whenever possible
- Don't depend on implementation details of MW's methods, just the public
interfaces
- Call methods on the extension's $parser parameter, rather than $wgParser,
when possible
These are just proper OO practice, not specific to MW. Good coding
practice is good coding practice. :)
Mike