Go to the documentation of this file.
21 use Liuggio\StatsdClient\Factory\StatsdDataFactory;
99 if ( !is_null( $this->config ) ) {
114 return MediaWikiServices::getInstance()->getStatsdDataFactory();
123 if ( !is_null( $this->timing ) ) {
145 if ( !is_null( $this->
request ) ) {
167 if ( !is_null( $this->
title ) ) {
183 if ( $this->wikipage !==
null ) {
185 } elseif ( $this->
title !==
null ) {
186 return $this->
title->canExist();
199 $this->wikipage = $p;
212 if ( !is_null( $this->wikipage ) ) {
234 if ( !is_null( $this->
output ) ) {
256 if ( !is_null( $this->
user ) ) {
273 } elseif ( is_string( $l ) ) {
278 throw new MWException( __METHOD__ .
" was passed an invalid type of data." );
289 if ( !is_null( $this->lang ) ) {
312 if ( !is_null( $this->
skin ) ) {
331 public function msg( $key ) {
332 $args = func_get_args();
334 return call_user_func_array(
'wfMessage',
$args )->setContext( $this );
msg( $key)
Get a message using the current context.
__construct(IContextSource $context)
getContext()
Get the base IContextSource object.
static sanitizeLangCode( $code)
Accepts a language code and ensures it's sane.
setConfig(Config $s)
Set the SiteConfiguration object.
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Class representing a MediaWiki article and history.
getWikiPage()
Get the WikiPage object.
getStats()
Get the stats object.
getUser()
Get the User object.
getOutput()
Get the OutputPage 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
getTitle()
Get the Title object.
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
An IContextSource implementation which will inherit context from another source but allow individual ...
setSkin(Skin $s)
Set the Skin object.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
getTiming()
Get the timing object.
An interface to help developers measure the performance of their applications.
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and ...
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment this hook should only be used to add variables that depend on the current page request
getRequest()
Get the WebRequest object.
setContext(IContextSource $context)
Set the IContextSource object.
This class should be covered by a general architecture document which does not exist as of January 20...
canUseWikiPage()
Check whether a WikiPage object can be get with getWikiPage().
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a skin(according to that user 's preference)
setTitle(Title $t)
Set the Title object.
getConfig()
Get the Config object.
setWikiPage(WikiPage $p)
Set the WikiPage object.
getSkin()
Get the Skin object.
Interface for objects which can provide a MediaWiki context on request.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
Represents a title within MediaWiki.
setUser(User $u)
Set the User object.
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 in any and then calling output() to send it all. It could be easily changed to send incrementally if that becomes useful
setRequest(WebRequest $r)
Set the WebRequest object.
static factory( $code)
Get a cached or new language object for a given language code.
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 MediaWikiServices
The main skin class which provides methods and properties for all other skins.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
setOutput(OutputPage $o)
Set the OutputPage object.
Internationalisation code.
getLanguage()
Get the Language object.
setLanguage( $l)
Set the Language object.