Commit graph

21 commits

Author SHA1 Message Date
Chad Horohoe
9ee17e43f6 Simplify $assoc check 2011-12-20 20:15:42 +00:00
Sam Reed
4622da783c More documentation! 2011-10-26 04:15:09 +00:00
Siebrand Mazeland
75c6696aa8 Use consistent notation for "@todo FIXME". Should update http://svn.wikimedia.org/doc/todo.html nicely. 2011-05-17 22:03:20 +00:00
Roan Kattouw
e77aa77cd8 Remove debugging code accidentally committed in r86253 2011-04-17 10:49:27 +00:00
Roan Kattouw
3a7731a6f0 Fix broken check for bad JSON encoders, had been broken since inception and caused the native JSON encoder to always be bypassed in favor of Services_JSON. 2011-04-17 10:48:17 +00:00
Bryan Tong Minh
cd311a1678 Revert r83647, was based on the inability to read the function signature 2011-03-10 12:04:38 +00:00
Bryan Tong Minh
e018563918 Add wfObjectToArray to json_decode to ensure that the return value is an array 2011-03-10 12:02:35 +00:00
Platonides
e98e6abdbd Follow up r82091, which uses the local file constant SERVICES_JSON_LOOSE_TYPE. 2011-02-19 16:59:34 +00:00
Brion Vibber
8982ac25b7 * (bug 23817, bug 26250) User Service_JSON's native associative array mode in FormatJson::decode(), bypassing wfObjectToArray (which is also fixed)
Patches from Tim Yates on https://bugzilla.wikimedia.org/show_bug.cgi?id=23817
2011-02-13 23:08:28 +00:00
Brion Vibber
d10a408d5f Add a @fixme comment on FormatJson::encode(); the '$isHtml' parameter's purpose and function is not documented, but it seems to map to a pretty-printing parameter on Services_JSON(). If that's its purpose, it should be renamed and documented. Since it's a bare boolean parameter with no clear purpose in calls when "true" or "false" is passed bare, it probably also wants a nice legible constant value or two. 2011-02-05 21:06:44 +00:00
Alexandre Emsenhuber
dc50e1a4bf * Added file description headers
* Added @file where needed
2010-08-22 14:31:05 +00:00
Jeroen De Dauw
539ab6f5e5 Documentation o_O 2010-08-12 07:27:48 +00:00
Chad Horohoe
ddbca1b039 Followup r70875, fix default value for decode() 2010-08-11 13:03:45 +00:00
Chad Horohoe
50fe92ffb8 Revert r70874: <RoanKattouw> Dude that just looks kinda ugly 2010-08-11 12:45:59 +00:00
Chad Horohoe
fe72845c82 Boolean parameters suck, but we can make them suck less by adding constants you can use. Also doc, spacing, etc 2010-08-11 12:42:40 +00:00
Jack Phoenix
4bc6efd5be coding style tweaks 2010-05-15 10:39:41 +00:00
Platonides
21a58342fb json_decode -> FormatJson::decode 2010-05-04 15:29:17 +00:00
Michael Dale
3d958564ec * Enhanced OutputPage to support js2 style javascript without scriptloader enabled
** loadGM output
** unique request id based on wikiTitle revision / file time
* Moved jsAutoLoadClasses to setup.php ( made conditional )
2009-09-17 01:19:02 +00:00
Michael Dale
f6a57deb50 * 3983#c3983 array casting does not work so well on json_decode arrays... object2array should work 2009-09-10 19:24:56 +00:00
Michael Dale
df1c7e2055 * should use <?php instead of <?
* and end with \n
2009-09-10 16:56:58 +00:00
Michael Dale
1e4165061b more (bug 20336)
* added json folder 
* moved Services_JSON.php there
* moved Format JSON into its own class
* updated AutoLoader
2009-09-10 14:33:25 +00:00