94 if ( !is_null( $this->config ) ) {
107 return MediaWikiServices::getInstance()->getStatsdDataFactory();
114 if ( !is_null( $this->timing ) ) {
132 if ( !is_null( $this->request ) ) {
150 if ( !is_null( $this->title ) ) {
166 if ( $this->wikipage !==
null ) {
168 } elseif ( $this->title !==
null ) {
169 return $this->title->canExist();
180 $this->wikipage = $wikiPage;
193 if ( !is_null( $this->wikipage ) ) {
211 if ( !is_null( $this->
output ) ) {
229 if ( !is_null( $this->user ) ) {
242 if ( $language instanceof
Language ) {
243 $this->lang = $language;
244 } elseif ( is_string( $language ) ) {
246 $obj = Language::factory( $language );
249 throw new MWException( __METHOD__ .
" was passed an invalid type of data." );
258 if ( !is_null( $this->lang ) ) {
270 $this->
skin->setContext( $this );
277 if ( !is_null( $this->
skin ) ) {
296 public function msg( $key ) {
297 $args = func_get_args();
299 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 ...
getContext()
Get the base IContextSource object.
setContext(IContextSource $context)
An IContextSource implementation which will inherit context from another source but allow individual ...
setRequest(WebRequest $request)
setWikiPage(WikiPage $wikiPage)
getWikiPage()
Get the WikiPage object.
__construct(IContextSource $context)
setConfig(Config $config)
canUseWikiPage()
Check whether a WikiPage object can be get with getWikiPage().
setOutput(OutputPage $output)
msg( $key)
Get a message using the current context.
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 configuration instances.
Interface for objects which can provide a MediaWiki context on request.