Go to the documentation of this file.
43 global $wgFeed, $wgFeedClasses;
48 $this->
dieUsage(
'Syndication feeds are not available',
'feed-unavailable' );
51 if ( !isset( $wgFeedClasses[$this->params[
'feedformat']] ) ) {
52 $this->
dieUsage(
'Invalid subscription feed type',
'feed-invalid' );
55 $this->
getMain()->setCacheMode(
'public' );
58 $this->
getMain()->setCacheMaxAge( 15 );
61 $feedFormat = $this->params[
'feedformat'];
62 $specialClass = $this->params[
'target'] !==
null
63 ?
'SpecialRecentchangeslinked'
64 :
'SpecialRecentchanges';
66 $formatter = $this->
getFeedObject( $feedFormat, $specialClass );
70 $rc =
new $specialClass();
71 $rows = $rc->getRows();
87 if ( $specialClass ===
'SpecialRecentchangeslinked' ) {
94 $feedObj = $feed->getFeedObject(
95 $this->
msg(
'recentchangeslinked-title',
$title->getPrefixedText() )
96 ->inContentLanguage()->text(),
97 $this->
msg(
'recentchangeslinked-feed' )->inContentLanguage()->text(),
102 $feedObj = $feed->getFeedObject(
103 $this->
msg(
'recentchanges' )->inContentLanguage()->
text(),
104 $this->
msg(
'recentchanges-feed-description' )->inContentLanguage()->
text(),
113 global $wgFeedClasses, $wgAllowCategorizedRecentChanges, $wgFeedLimit;
114 $feedFormatNames = array_keys( $wgFeedClasses );
117 'feedformat' =>
array(
122 'namespace' =>
array(
126 'associated' =>
false,
143 'hideminor' =>
false,
145 'hideanons' =>
false,
147 'hidepatrolled' =>
false,
148 'hidemyself' =>
false,
150 'tagfilter' =>
array(
157 'showlinkedto' =>
false,
160 if ( $wgAllowCategorizedRecentChanges ) {
162 'categories' =>
array(
166 'categories_any' =>
false,
175 'feedformat' =>
'The format of the feed',
176 'namespace' =>
'Namespace to limit the results to',
177 'invert' =>
'All namespaces but the selected one',
178 'associated' =>
'Include associated (talk or main) namespace',
179 'days' =>
'Days to limit the results to',
180 'limit' =>
'Maximum number of results to return',
181 'from' =>
'Show changes since then',
182 'hideminor' =>
'Hide minor changes',
183 'hidebots' =>
'Hide changes made by bots',
184 'hideanons' =>
'Hide changes made by anonymous users',
185 'hideliu' =>
'Hide changes made by registered users',
186 'hidepatrolled' =>
'Hide patrolled changes',
187 'hidemyself' =>
'Hide changes made by yourself',
188 'tagfilter' =>
'Filter by tag',
189 'target' =>
'Show only changes on pages linked from this page',
190 'showlinkedto' =>
'Show changes on pages linked to the selected page instead',
191 'categories' =>
'Show only changes on pages in all of these categories',
192 'categories_any' =>
'Show only changes on pages in any of the categories instead',
197 return 'Returns a recent changes feed';
201 return array_merge( parent::getPossibleErrors(),
array(
202 array(
'code' =>
'feed-unavailable',
'info' =>
'Syndication feeds are not available' ),
203 array(
'code' =>
'feed-invalid',
'info' =>
'Invalid subscription feed type' ),
209 'api.php?action=feedrecentchanges',
210 'api.php?action=feedrecentchanges&days=30'
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
msg()
Get a Message object with context set Parameters are the same as wfMessage()
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
dieUsageMsg( $error)
Output the error message related to a certain array.
getResult()
Get the result object.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
getCustomPrinter()
This module uses a custom feed wrapper printer.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
getParamDescription()
Returns an array of parameter descriptions.
This abstract class implements many basic API functions, and is the base of all API classes.
getFeedObject( $feedFormat, $specialClass)
Return a ChannelFeed object.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
Feed to Special:RecentChanges and Special:RecentChangesLiked.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
presenting them properly to the user as errors is done by the caller $title
execute()
Format the rows (generated by SpecialRecentchanges or SpecialRecentchangeslinked) as an RSS/Atom feed...
getDescription()
Returns the description string for this module.
dieUsage( $description, $errorCode, $httpRespCode=0, $extradata=null)
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an...
getParameter( $paramName, $parseLimit=true)
Get a value for the given parameter.
getPossibleErrors()
Returns a list of all possible errors returned by the module.
static buildItems( $rows)
Generate the feed items given a row from the database.
getMain()
Get the main module.
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
getExamples()
Returns usage examples for this module.