Go to the documentation of this file.
49 if ( !$config->get(
'Feed' ) ) {
53 $feedClasses = $config->get(
'FeedClasses' );
54 if ( !isset( $feedClasses[$this->params[
'feedformat']] ) ) {
58 $this->
getMain()->setCacheMode(
'public' );
61 $this->
getMain()->setCacheMaxAge( 15 );
64 $feedFormat = $this->params[
'feedformat'];
65 $specialClass = $this->params[
'target'] !==
null
69 $formatter = $this->
getFeedObject( $feedFormat, $specialClass );
80 $rc =
new $specialClass();
82 $rows = $rc->getRows();
105 $feedObj = $feed->getFeedObject(
106 $this->
msg(
'recentchangeslinked-title',
$title->getPrefixedText() )
107 ->inContentLanguage()->text(),
108 $this->
msg(
'recentchangeslinked-feed' )->inContentLanguage()->text(),
113 $feedObj = $feed->getFeedObject(
114 $this->
msg(
'recentchanges' )->inContentLanguage()->
text(),
115 $this->
msg(
'recentchanges-feed-description' )->inContentLanguage()->
text(),
125 $feedFormatNames = array_keys( $config->get(
'FeedClasses' ) );
137 'associated' =>
false,
154 'hideminor' =>
false,
156 'hideanons' =>
false,
158 'hidepatrolled' =>
false,
159 'hidemyself' =>
false,
160 'hidecategorization' =>
false,
169 'showlinkedto' =>
false,
172 if ( $config->get(
'AllowCategorizedRecentChanges' ) ) {
178 'categories_any' =>
false,
187 'action=feedrecentchanges'
188 =>
'apihelp-feedrecentchanges-example-simple',
189 'action=feedrecentchanges&days=30'
190 =>
'apihelp-feedrecentchanges-example-30days',
Similar to FauxRequest, but only fakes URL parameters and method (POST or GET) and use the base reque...
getConfig()
Get the Config object.
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
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
dieWithError( $msg, $code=null, $data=null, $httpCode=null)
Abort execution with an error.
msg( $key)
Get a Message object with context set Parameters are the same as wfMessage()
const PARAM_TYPE
(string|string[]) Either an array of allowed value strings, or a string type as described below.
getResult()
Get the result object.
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 If you don't need a full Title object,...
getRequest()
Get the WebRequest object.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
This abstract class implements many basic API functions, and is the base of all API classes.
getFeedObject( $feedFormat, $specialClass)
Return a ChannelFeed object.
const PARAM_MIN
(integer) Lowest value allowed for the parameter, for PARAM_TYPE 'integer' and 'limit'.
An IContextSource implementation which will inherit context from another source but allow individual ...
namespace and then decline to actually register it file or subcat img or subcat $title
const PARAM_MAX
(integer) Max value allowed for the parameter, for PARAM_TYPE 'integer' and 'limit'.
Feed to Special:RecentChanges and Special:RecentChangesLiked.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
execute()
Format the rows (generated by SpecialRecentchanges or SpecialRecentchangeslinked) as an RSS/Atom feed...
wfEscapeWikiText( $text)
Escapes the given text so that it may be output using addWikiText() without any linking,...
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
getExamplesMessages()
Returns usage examples for this module.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
const PARAM_DFLT
(null|boolean|integer|string) Default value of the parameter.
getParameter( $paramName, $parseLimit=true)
Get a value for the given parameter.
const PARAM_ISMULTI
(boolean) Accept multiple pipe-separated values for this parameter (e.g.
static buildItems( $rows)
Generate the feed items given a row from the database.
getMain()
Get the main module.
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...