Commit graph

53 commits

Author SHA1 Message Date
Aryeh Gregor
11284695f1 Add <guid> to RSS to avoid duplicates
Bug 7346.  Patch by Jools Wills (buzz).
2010-01-15 18:00:56 +00:00
Alexandre Emsenhuber
36d2910fa9 * Document a bit
* Add new doxygen group "Feed"
* Fix some doxygen warnings
2010-01-09 21:59:40 +00:00
Aaron Schulz
cc554b1230 Add FeedItem::stripComment() and remove duplication 2008-11-19 00:11:14 +00:00
Roan Kattouw
6a2f8c1193 * (bug 15497) Removed encoding attribute from <?xml ?> tags 2008-09-10 13:39:24 +00:00
Aryeh Gregor
46727906bb (bug 15128) Documentation for xmlEncode is wrong, it's not static. 2008-08-13 01:53:03 +00:00
Brion Vibber
3937270fb1 Revert r39198 "* (bug 15128) Feed:xmlEncode() function now declared as static"
FeedItem::xmlEncode() is only called *non*-statically
2008-08-12 20:13:45 +00:00
Ryan Schmidt
d7139c4f35 * (bug 15128) Feed:xmlEncode() function now declared as static 2008-08-12 01:47:05 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Brion Vibber
8e476b31cc * (bug 12935, 12981) Fully-qualify archive URLs in delete, revert messages
Replaced a bunch of instances of 'if-this-is-not-fully-qualified-prepend-$wgServer' with a function, wfExpandUrl()
2008-02-13 05:59:14 +00:00
Brion Vibber
9c81db38d0 * (bug 5262) Fully-qualified $wgStylePath no longer corrupted on XML feeds 2008-02-12 22:34:43 +00:00
Aryeh Gregor
c8136cd6a2 Feeds for recent changes now provide URLs for the change (i.e., the diff), not just the page. This matches behavior of history feeds, which appears more correct. Incidentally, this code needs centralization, probably, say into a constructor method of Revision or Article. Logic is unnecessarily duplicated at present. (Also tweaked some docs, used __METHOD__ instead of $fname.) 2007-11-18 02:33:30 +00:00
Nick Jenkins
bd23ec29c6 Doc tweaks:
* Seems like an opportune time to introduce "@addtogroup Media" documentation tags.
* Merge "@addtogroup Metadata" (used by Exif.php) into "@addtogroup Media".
* Few more moving comment blocks to above classes.
2007-04-24 06:53:31 +00:00
Nick Jenkins
113bb1c772 Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor)
pick up the appropriate tags, and documentation blobs for classes. This is 
the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted.
Please be advised that more related documentation tweaks may follow later - e.g. 
Doxygen generates a log file of warnings that is 574 Kb in size, when run over 
the just the trunk/phase3 code ... eek! Thankfully, much of that is just 
whining about functions without documentation   ;-)
2007-04-04 05:22:37 +00:00
Brion Vibber
3a6ac5a3c3 Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.
If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :)
2007-03-28 14:16:43 +00:00
Nick Jenkins
5fef2333d4 PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation 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)
2007-03-28 08:53:02 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
b144fcb85d Rename constructors to __constructor 2007-01-20 13:34:31 +00:00
Brion Vibber
3af8ce82b9 * Added global $wgStyleVersion to centralize bumping CSS and JS file versions
for cache-friendly style and script updating
2006-10-13 21:48:19 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
3d4ea7c485 public / private / static stuff when loading Special:Recentchanges 2006-05-11 19:46:58 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Brion Vibber
f2c29baf9f Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Brion Vibber
1723dee5ae * (bug 3999) Change atom 1.0 feed id; had been unnecessarily complex due to
unclear language in the spec. Now using the URL, same as the permalink,
  which someone else will probably whine about because it's not 'perma'
  enough or something.
2005-11-17 00:17:30 +00:00
Brion Vibber
fb2064aed1 * (bug 2392) Fix Atom items content type, upgrade to Atom 1.0
* Allow $wgFeedCacheTimeout of 0 to disable feed caching
Hooray for gratuitou s changes from atom 0.3 to 1.0!
2005-11-05 10:38:46 +00:00
Ævar Arnfjörð Bjarmason
f2fec2e4b2 * Minor code refactoring 2005-09-08 13:17:55 +00:00
Ævar Arnfjörð Bjarmason
1158bb506e * Documentation 2005-07-18 03:28:58 +00:00
Ævar Arnfjörð Bjarmason
b526b908df * Cleanup syntax 2005-05-23 23:09:30 +00:00
Gabriel Wicke
8087dfc657 allow other content-types 2005-04-29 12:40:07 +00:00
Brion Vibber
6f5560867c Start removing the Latin-1 hacks. We're going pure UTF-8 for 1.5... 2005-03-26 22:23:48 +00:00
Brion Vibber
63cf8398ba * Trim old illegal characters from syndication feeds 2005-03-08 02:50:31 +00:00
Brion Vibber
8cd58f6551 Load limiting work for Recentchanges RSS/Atom feeds:
* Cache feeds for up to a day
* Maximum number of rows to show
* Minimum timeout between changes to re-cache
* Maximum article size to show diffs for (will show diff link instead for larger)
* Also, return 500 error if asked for an invalid feed format instead of silently showing the html
2004-12-12 04:13:19 +00:00
Evan Prodromou
4b42f18b66 Removed CVS keywords from files, to make merging between branches
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00
Zheng Zhu
f84493db51 First batch of files modified to switch wgLang to wgContLang. 2004-09-24 13:14:52 +00:00
Antoine Musso
e57ac87ceb Stop loading feed.php every time by moving available feeds classes in defines.php and removing call from skin.php 2004-09-17 23:08:22 +00:00
Domas Mituzas
5e1553cd41 timestamp fix 2004-09-07 06:56:44 +00:00
Antoine Musso
486a5a21c1 some comments 2004-09-03 23:53:56 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
7497367341 phpdocumentor comments placeholders 2004-09-03 16:51:45 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Antoine Musso
e511d7706e some double quoting replaced by single quoting 2004-06-09 00:03:26 +00:00
Brion Vibber
e341ccf044 Use dc:creator instead of author in RSS feeds, as RSS2's author must be an e-mail address and we have only usernames/ips 2004-04-29 01:41:40 +00:00
Brion Vibber
2980483565 Add a quickie style sheet to make the feeds semi-legible if someone loads
them into a browser instead of a syndicated news reader.

Some way to get at the info on a <link> in atom might be nice.
2004-04-28 07:02:53 +00:00
Brion Vibber
0ffaed11ff Add atom feed <link> when syndication is on.
Fix language marker on Atom feed head element.
Comment out empty dead fields in <author> in atom output.
2004-04-28 06:14:49 +00:00
Antoine Musso
72bdb334e0 +add the "comments" field to rss feeds
+Atom support !
2004-04-28 04:37:31 +00:00
Antoine Musso
549a38ec85 time need to follow RFC 822 format ( "r" ) 2004-04-27 23:35:44 +00:00
Brion Vibber
64bff5a33d Send cache-control headers with feeds, this makes 304 responses possible 2004-03-20 02:35:08 +00:00
Brion Vibber
8d0fcabe52 Fix stupid mistake in untested charset conversion code. 2004-03-19 05:39:42 +00:00