21use 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 ) ) {
275 $obj = Language::factory( $l );
278 throw new MWException( __METHOD__ .
" was passed an invalid type of data." );
289 if ( !is_null( $this->lang ) ) {
303 $this->
skin->setContext( $this );
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 );
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and ...
getSkin()
Get the Skin object.
getOutput()
Get the OutputPage object.
getContext()
Get the base IContextSource object.
setContext(IContextSource $context)
Set the IContextSource object.
An IContextSource implementation which will inherit context from another source but allow individual ...
getOutput()
Get the OutputPage object.
getConfig()
Get the Config object.
getTitle()
Get the Title object.
setSkin(Skin $s)
Set the Skin object.
setConfig(Config $s)
Set the SiteConfiguration object.
getWikiPage()
Get the WikiPage object.
__construct(IContextSource $context)
getLanguage()
Get the Language object.
setTitle(Title $t)
Set the Title object.
setUser(User $u)
Set the User object.
setLanguage( $l)
Set the Language object.
setWikiPage(WikiPage $p)
Set the WikiPage object.
getRequest()
Get the WebRequest object.
getUser()
Get the User object.
canUseWikiPage()
Check whether a WikiPage object can be get with getWikiPage().
setOutput(OutputPage $o)
Set the OutputPage object.
msg( $key)
Get a message using the current context.
setRequest(WebRequest $r)
Set the WebRequest object.
getSkin()
Get the Skin object.
getStats()
Get the stats object.
getTiming()
Get the timing object.
Internationalisation code.
This class should be covered by a general architecture document which does not exist as of January 20...
static sanitizeLangCode( $code)
Accepts a language code and ensures it's sane.
The main skin class which provides methods and properties for all other skins.
An interface to help developers measure the performance of their applications.
Represents a title within MediaWiki.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
Class representing a MediaWiki article and history.
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)
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
Interface for objects which can provide a MediaWiki context on request.