MediaWiki  1.23.6
ApiTestContext.php
Go to the documentation of this file.
1 <?php
2 
4 
12  public function newTestContext( WebRequest $request, User $user = null ) {
13  $context = new DerivativeContext( $this );
14  $context->setRequest( $request );
15  if ( $user !== null ) {
16  $context->setUser( $user );
17  }
18 
19  return $context;
20  }
21 }
php
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
Definition: skin.txt:62
RequestContext\$user
User $user
Definition: RequestContext.php:49
DerivativeContext
An IContextSource implementation which will inherit context from another source but allow individual ...
Definition: DerivativeContext.php:32
ApiTestContext\newTestContext
newTestContext(WebRequest $request, User $user=null)
Returns a DerivativeContext with the request variables in place.
Definition: ApiTestContext.php:12
RequestContext
Group all the pieces relevant to the context of a request into one instance.
Definition: RequestContext.php:30
ApiTestContext
Definition: ApiTestContext.php:3
RequestContext\$request
WebRequest $request
Definition: RequestContext.php:33
WebRequest
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
Definition: WebRequest.php:38
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:59