[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 85 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
saveSite( Site $site ) X-Ref |
Saves the provided site. param: Site $site return: bool Success indicator |
saveSites( array $sites ) X-Ref |
Saves the provided sites. param: Site[] $sites return: bool Success indicator |
getSite( $globalId, $source = 'cache' ) X-Ref |
Returns the site with provided global id, or null if there is no such site. param: string $globalId param: string $source Either 'cache' or 'recache'. return: Site|null |
getSites( $source = 'cache' ) X-Ref |
Returns a list of all sites. By default this site is fetched from the cache, which can be changed to loading the list from the database using the $useCache parameter. param: string $source Either 'cache' or 'recache'. return: SiteList |
clear() X-Ref |
Deletes all sites from the database. After calling clear(), getSites() will return an empty list and getSite() will return null until saveSite() or saveSites() is called. |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |