74 $this->user =
$request->getRawVal(
'user' );
75 $this->debug =
$request->getFuzzyBool(
79 $this->only =
$request->getRawVal(
'only',
null );
81 $this->raw =
$request->getFuzzyBool(
'raw' );
84 $this->image =
$request->getRawVal(
'image' );
85 $this->variant =
$request->getRawVal(
'variant' );
86 $this->format =
$request->getRawVal(
'format' );
89 $skinnames = Skin::getSkinNames();
91 if ( !$this->
skin || !isset( $skinnames[$this->
skin] ) ) {
108 $exploded = explode(
'|',
$modules );
109 foreach ( $exploded as $group ) {
110 if ( strpos( $group,
',' ) ===
false ) {
116 $pos = strrpos( $group,
'.' );
117 if ( $pos ===
false ) {
122 $prefix = substr( $group, 0, $pos );
123 $suffixes = explode(
',', substr( $group, $pos + 1 ) );
124 foreach ( $suffixes as $suffix ) {
140 MediaWikiServices::getInstance()->getMainConfig(),
141 LoggerFactory::getInstance(
'resourceloader' )
164 return $this->logger;
183 if ( !Language::isValidBuiltInCode(
$lang ) ) {
188 return $this->language;
195 if ( $this->direction ===
null ) {
196 $this->direction = $this->
getRequest()->getRawVal(
'dir' );
197 if ( !$this->direction ) {
199 $this->direction = Language::factory( $this->
getLanguage() )->getDir();
202 return $this->direction;
228 public function msg( $key ) {
229 return call_user_func_array(
'wfMessage', func_get_args() )
234 ->title( Title::newFromText(
'Dwimmerlaik' ) );
244 if ( $this->userObj ===
null ) {
251 $this->userObj =
new User;
255 return $this->userObj;
278 return $this->version;
299 return $this->variant;
306 return $this->format;
316 if ( $this->imageObj ===
null ) {
317 $this->imageObj =
false;
319 if ( !$this->image ) {
320 return $this->imageObj;
325 return $this->imageObj;
330 return $this->imageObj;
333 $image = $module->getImage( $this->image, $this );
335 return $this->imageObj;
341 return $this->imageObj;
348 return $this->
getOnly() ===
null || $this->
getOnly() ===
'scripts';
355 return $this->
getOnly() ===
null || $this->
getOnly() ===
'styles';
362 return $this->
getOnly() ===
null;
377 if ( !isset( $this->hash ) ) {
378 $this->hash = implode(
'|', [
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
WebRequest clone which takes values from a provided array.
Object passed around to modules which contains information about the state of a specific loader reque...
__construct(ResourceLoader $resourceLoader, WebRequest $request)
getImageObj()
If this is a request for an image, get the ResourceLoaderImage object.
msg( $key)
Get a Message object with context set.
getUserObj()
Get the possibly-cached User object for the specified username.
getHash()
All factors that uniquely identify this request, except 'modules'.
static newDummyContext()
Return a dummy ResourceLoaderContext object suitable for passing into things that don't "really" need...
static expandModuleNames( $modules)
Expand a string of the form jquery.foo,bar|jquery.ui.baz,quux to an array of module names like ‘[ 'jq...
ResourceLoader module for generated and embedded images.
Dynamic JavaScript and CSS resource loading system.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
getRawVal( $name, $default=null)
Fetch a scalar from the input without normalization, or return $default if it's not set.
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)
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 and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser getSkin(). See also skin.txt. Language Represents the language used for incidental text
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account incomplete not yet checked for validity & $retval
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
this hook is for auditing only or null if authentication failed before getting that far $username
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned $skin
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output & $resourceLoader
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account $user
Interface for localizing messages in MediaWiki.
if(!isset( $args[0])) $lang