Go to the documentation of this file.
96 if ( !is_null( $this->config ) ) {
118 if ( !is_null( $this->
request ) ) {
132 if (
$t !==
null && !
$t instanceof
Title ) {
133 throw new MWException( __METHOD__ .
" expects an instance of Title" );
144 if ( !is_null( $this->
title ) ) {
160 if ( $this->wikipage !==
null ) {
162 } elseif ( $this->
title !==
null ) {
163 return $this->
title->canExist();
176 $this->wikipage = $p;
189 if ( !is_null( $this->wikipage ) ) {
211 if ( !is_null( $this->
output ) ) {
233 if ( !is_null( $this->
user ) ) {
246 public function setLang( $l ) {
261 } elseif ( is_string( $l ) ) {
266 throw new MWException( __METHOD__ .
" was passed an invalid type of data." );
286 if ( !is_null( $this->lang ) ) {
309 if ( !is_null( $this->
skin ) ) {
327 public function msg() {
328 $args = func_get_args();
330 return call_user_func_array(
'wfMessage',
$args )->setContext( $this );
__construct(IContextSource $context)
Constructor.
getContext()
Get the RequestContext object.
static sanitizeLangCode( $code)
Accepts a language code and ensures it's sane.
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
setConfig(Config $s)
Set the SiteConfiguration object.
Class representing a MediaWiki article and history.
getWikiPage()
Get the WikiPage object.
getUser()
Get the User object.
getOutput()
Get the OutputPage object.
msg()
Get a message using the current context.
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
Interface for configuration instances.
An IContextSource implementation which will inherit context from another source but allow individual ...
setSkin(Skin $s)
Set the Skin object.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
setTitle( $t)
Set the Title object.
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and ...
setLang( $l)
Set the Language object.
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 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
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)
getConfig()
Get the Config object.
setWikiPage(WikiPage $p)
Set the WikiPage object.
getSkin()
Get the Skin object.
Interface for objects which can provide a context on request.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
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.
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.
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LoginAuthenticateAudit' this hook is for auditing only etc 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
Internationalisation code.
getLanguage()
Get the Language object.
setLanguage( $l)
Set the Language object.