[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/resourceloader/ -> ResourceLoaderWikiModule.php (summary)

Abstraction for resource loader modules which pull from wiki pages. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Trevor Parscal
Author: Roan Kattouw
File Size: 267 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  getDB()
  getContent()
  getScript()
  getStyles()
  getModifiedTime()
  getDefinitionSummary()
  isKnownEmpty()
  getTitleInfo()

Functions
Functions that are not part of a class:

getDB()   X-Ref
Get the Database object used in getTitleMTimes(). Defaults to the local slave DB
but subclasses may want to override this to return a remote DB object, or to return
null if getTitleMTimes() shouldn't access the DB at all.

NOTE: This ONLY works for getTitleMTimes() and getModifiedTime(), NOT FOR ANYTHING ELSE.
In particular, it doesn't work for getting the content of JS and CSS pages. That functionality
will use the local DB irrespective of the return value of this method.

return: DatabaseBase|null

getContent( $title )   X-Ref

param: Title $title
return: null|string

getScript( ResourceLoaderContext $context )   X-Ref

param: ResourceLoaderContext $context
return: string

getStyles( ResourceLoaderContext $context )   X-Ref

param: ResourceLoaderContext $context
return: array

getModifiedTime( ResourceLoaderContext $context )   X-Ref

param: ResourceLoaderContext $context
return: int|mixed

getDefinitionSummary( ResourceLoaderContext $context )   X-Ref
Get the definition summary for this module.

param: ResourceLoaderContext $context
return: array

isKnownEmpty( ResourceLoaderContext $context )   X-Ref

param: ResourceLoaderContext $context
return: bool

getTitleInfo( ResourceLoaderContext $context )   X-Ref
Get the modification times of all titles that would be loaded for
a given context.

param: ResourceLoaderContext $context Context object
return: array keyed by page dbkey, with value is an array with 'length' and 'timestamp'



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1