aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiFormatYaml_spyc.php
Commit message (Collapse)AuthorAgeFilesLines
* Move ApiFormatYaml_spyc.php to spyc.php as per r71763Sam Reed2010-08-261-248/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/71769
* Standardised file description headers, added @fileAlexandre Emsenhuber2010-08-071-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70647
* Minor comment improvement to r69757Sam Reed2010-07-231-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69778
* Stylize API up to dateSam Reed2010-07-231-1/+1
| | | | | | | | | Fix spaces from r69755 Minor update to RELEASE-NOTES per r69753 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69777
* Remove various unused parametersSam Reed2010-07-221-0/+2
| | | | | | | Only comment them out in ApiFormatYaml_spyc.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69757
* Fixed some doxygen warningsAlexandre Emsenhuber2010-07-111-24/+30
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69269
* Stylize Api upto dateSam Reed2010-04-171-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/65183
* Revert changes to Spyc in r61756: changes tabs to spaces, so it actually ↵Roan Kattouw2010-01-311-951/+198
| | | | | | | makes it worse. Also, I believe that we don't stylize libraries from external sources as a general rule Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61757
* Stylize.php on APISam Reed2010-01-311-198/+951
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61756
* Minor followup to r61609Sam Reed2010-01-281-2/+2
| | | | | | | If we're checking the key is *, no point reusing it, as we know what it is. Simplfy bug link/reference Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61624
* * (bug 21922) YAML output should quote asterisk when used as keySam Reed2010-01-271-0/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61609
* Normalise comment usage (# --> //)Sam Reed2010-01-231-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61444
* Add/remove whitelines to increase readability in API code filesSam Reed2010-01-231-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61437
* stylize.php on API codeAryeh Gregor2010-01-111-43/+43
| | | | | | | | | | | | "I wouldn't object to stylizing the API code to bring it in line with the rest of MW on principle, but I'm not gonna bother myself." --Roan <http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60657#c5108> If you're seeing this commit in blames, tell your blame tool to ignore whitespace, e.g., git blame -w or svn blame -x -w. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60930
* API: (bug 21945) Add chomp control in YAMLRoan Kattouw2009-12-241-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60367
* Mass convert NULL -> null. Left strings and comments alone, obviously.Chad Horohoe2009-12-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/59969
* * fix doxygen warningsAlexandre Emsenhuber2008-12-081-248/+231
| | | | | | | * fix whitespaces Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44313
* Removed scary YAML parsing code, the function of which is to load from a ↵Tim Starling2008-10-251-632/+0
| | | | | | | user input string, except if the string has no line breaks in it, in which case an arbitrary local file/URL is loaded and handed to the attacker on a nicely encapsulated silver platter. Doesn't appear to be used either by core or extensions, but you never know when someone might try. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42547
* (bug 15448) YAML output returns empty strings instead of 0. Surprisingly, ↵Roan Kattouw2008-09-031-4/+4
| | | | | | | this was not caused by PHP's "helpful" 0=='' ; research shows this was a regression from r32485 that no one ever noticed Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/40384
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-2/+2
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-108/+107
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* doc tweaks: link to http://www.php.net instead of mirrors.Alexandre Emsenhuber2008-03-271-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32518
* API: (bug 11719) Remove trailing blanks in YAML output.Daniel Cannon2008-03-261-3/+9
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32485
* API: Avoid number/string confusion in YAMLRoan Kattouw2008-03-131-2/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31940
* (bug 12120) Unescaped quote in YAML outputRoan Kattouw2008-03-131-1/+13
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31927
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* Yet more doc tweaks:Nick Jenkins2007-04-201-3/+2
| | | | | | | | | * Add @addtogroup tags to various classes, to try and group conceptually-related classes together. * Add brief descriptions to various Special pages, thanks to Phil Boswell. * Moving some docs to be right above the classes they represent, so that they are picked up. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21402
* Some small doc tweaks to reduce Doxygen warnings, namely:Nick Jenkins2007-04-181-4/+4
| | | | | | | | | | | | | | | | | | * @link. You might think @link would surely mean "here comes a web URL" ... but @link is a valid command in Doxygen, which means an entirely different kind of link (an internal link to somewhere, so that you can separate documentation and implementation). The result is a mess, and the best solution I can see is to use "@see" instead of "@link". * Warning: argument `nourl' of command @param is not found in the argument list of Linker::makeMediaLinkObj($title,$text='') * Moving few class descriptions to right above classes, and/or formatting into Javadoc style. * "@addtogroup Special Pages" --> "@addtogroup SpecialPage" so that all special pages have the same @addtogroup tag. * @fixme --> @todo (must have missed these before) * "@param $specialPage @see" remove the "@" in the "@see" to stop warning. * @throws wants type, then a brief description, to stop warning. This last one is for PHPdocumentor only, but it fixes something for PHPDocumentor, and should be neutral for Doxygen: * WARNING in includes/api/ApiFormatYaml_spyc.php on line 860: docblock template never terminated with /**#@-*/ Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21343
* Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.Brion Vibber2007-03-281-2/+4
| | | | | | | If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20771
* PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation ↵Nick Jenkins2007-03-281-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | tweaking stuff. Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made: * @url becomes @link * @fixme becomes @todo * HTML tags in descriptions must be closed / balanced. * @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending) * @obsolete becomes @deprecated * Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed * @access must be a valid access level. * @desc tag not needed, removed. * Doesn't seem to like @licence, will accept @license however. * Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */") Then additional to this, to get some class docs associated with their respective classes: * Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers) * Marked some classes without docs as "@todo document" * (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20769
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* Code housekeeping stuff (and barring any stuff-ups on my behalf, there ↵Nick Jenkins2006-11-231-1/+8
| | | | | | | | | | | | | | | | | | should be no changes in behaviour whatsoever after this) - * removing some unused global declarations. * removing or commenting out or adding comments for unused local vars. * Adding one or two local var declarations. * Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness]. * remove one or two pass-by-reference function declarations where the value is not modified. * Adding some braces to if-else blocks. * In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether. * Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences. ... up to "LinksUpdate.php" in the includes/ directory. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17880
* * API: major refactoringYuri Astrakhan2006-09-231-0/+854
* API: added login functionality * API: added several output formats (needs optimization) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16618