Commit graph

16 commits

Author SHA1 Message Date
Niklas Laxström
f3511bbc69 Update syntax examples a bit 2010-07-08 09:03:47 +00:00
Niklas Laxström
f33313abdc Fixed a bug in __construct 2010-03-31 10:10:49 +00:00
Niklas Laxström
b4f9c12705 Fix syntax terrors 2010-03-29 19:18:58 +00:00
Max Semenik
3b1a10c0c6 Started tests for Message class, fixed one bug found by them 2010-03-29 14:30:42 +00:00
Niklas Laxström
206632ac47 Message::key() accepts message parameters as varargs. Renamed ::language() to ::inLanguage() 2010-03-29 14:08:23 +00:00
Roan Kattouw
d4cbde99eb Message.php fixes:
* Don't call params() for every param passed to the constructor
* Use self
* Use array_merge() instead of += , the latter behaves contrary to the documentation
* Fix capitalization of toString() calls
* Various style, typo fixes
2010-03-28 19:23:39 +00:00
Niklas Laxström
a92fb166fb Remove options array and move message fetching one level down.
Options is now to value members: format and useDatabase.
fetchMessage() can be overwritten to use other message source
like for example testing purposes.
2010-03-28 15:22:49 +00:00
Chad Horohoe
ecbd13d6e4 Factory functions are static 2010-03-28 14:53:01 +00:00
Alexandre Emsenhuber
77cfdb7bb2 Modified the documentation for better rendering in doxygen 2010-03-25 21:28:27 +00:00
Happy-melon
209fa62c8e Various tweaks and fixes. 2010-03-25 20:52:52 +00:00
Happy-melon
77c882769c Work on Message.php:
* Just one function for adding parameters, not three.  
* Implement an options framework: one extra widget (get-message-not-from-db) already in use in wfMsgNoDB(), others will probably follow, so set up something to keep them clean.
* Lay the groundwork for supporting __tostring() when MW stops supporting PHP < 5.2.0
* Fix various fatal and non-fatal errors
* Make use of r64178 to clean out any dependency on the wfMsg* functions.
2010-03-25 20:34:56 +00:00
Chad Horohoe
9bae2600f1 This is PHP, updating docs to reflect that 2010-03-25 13:10:26 +00:00
Niklas Laxström
e5941506f9 Tidy up the class
Added documentation and examples, fixed a bug with escaped() and better handling for languages.
2010-03-23 15:41:18 +00:00
Jack Phoenix
8f385c5bb0 braces, spacing + comment tweaks 2010-03-22 18:39:53 +00:00
Alexandre Emsenhuber
10a3197429 * Fixed examples (use -> for access to object's methods, not .)
* Formatted comment
* svn:eol-style native
2010-03-22 17:56:04 +00:00
Niklas Laxström
61095ced9f New message class up for discussion and development.
Not ment for use yet. It is just isolated file so it really doesn't need branch either.
2010-03-22 17:05:32 +00:00