Creating a global (for now) object that records the state of WW processing, getting us away from using a bunch of global variables and static class methods.
Anway, so I'm going to make WW use a global $wwContext, which is an object with member variables $wwContext->wwInterface and $wwContext->wwStorage, and others to come.
I may want to move all the config variables $wwEnableWhatever into that object as well, at some point.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A problem with this is how to call the MW hooks. They are WWInterface class methods currently. I think maybe I'll redo that by putting anonymous functions in the hook data structure instead of names of class methods.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Should I build it into MediaWiki's RequestContext object, or keep it separate?
Well, the business of using it without MediaWiki seems to answer that one. Never mind.
Anway, so I'm going to make WW use a global $wwContext, which is an object with member variables $wwContext->wwInterface and $wwContext->wwStorage, and others to come.
I may want to move all the config variables $wwEnableWhatever into that object as well, at some point.
A problem with this is how to call the MW hooks. They are WWInterface class methods currently. I think maybe I'll redo that by putting anonymous functions in the hook data structure instead of names of class methods.
I am doing a replace of WWInterface:: to $wwContext->wwInterface->.
After that, I'll need to
Last edit: Lee Worden 2014-09-30
Occurrences of ->$
WWInterface:
wwStorage:
done
not done