aboutsummaryrefslogtreecommitdiffstats
path: root/includes/cache
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2012-10-08 01:35:26 +0200
committerGerrit Code Review <gerrit@wikimedia.org>2012-10-09 09:41:58 +0000
commitd4b046a8934d1206e5f6eb6b3d1ba206db814a46 (patch)
tree03c1533b478acd0c41da511dad8c94cd4b8e4448 /includes/cache
parent2b7464152bd5de7453bd44cf260e0bbab018ca32 (diff)
downloadmediawikicore-d4b046a8934d1206e5f6eb6b3d1ba206db814a46.tar.gz
mediawikicore-d4b046a8934d1206e5f6eb6b3d1ba206db814a46.zip
Update docs for return and exception info
* Removed some inline tabs in the process. * IDE fixed some incorrect leading spaces, too. Change-Id: Ic9303eff6db4424ac3f1fa2816839692b43e6190
Diffstat (limited to 'includes/cache')
-rw-r--r--includes/cache/HTMLFileCache.php1
-rw-r--r--includes/cache/MessageCache.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/includes/cache/HTMLFileCache.php b/includes/cache/HTMLFileCache.php
index 6bfeed32b123..fca071a12016 100644
--- a/includes/cache/HTMLFileCache.php
+++ b/includes/cache/HTMLFileCache.php
@@ -33,6 +33,7 @@ class HTMLFileCache extends FileCacheBase {
* Construct an ObjectFileCache from a Title and an action
* @param $title Title|string Title object or prefixed DB key string
* @param $action string
+ * @throws MWException
* @return HTMLFileCache
*/
public static function newFromTitle( $title, $action ) {
diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php
index af380506eaa2..e061101bc68e 100644
--- a/includes/cache/MessageCache.php
+++ b/includes/cache/MessageCache.php
@@ -596,7 +596,7 @@ class MessageCache {
* @param $key String: the message cache key
* @param $useDB Boolean: get the message from the DB, false to use only
* the localisation
- * @param $langcode String: code of the language to get the message for, if
+ * @param bool|string $langcode Code of the language to get the message for, if
* it is a valid code create a language for that language,
* if it is a string but not a valid code then make a basic
* language object, if it is a false boolean then use the
@@ -607,6 +607,7 @@ class MessageCache {
* @param $isFullKey Boolean: specifies whether $key is a two part key
* "msg/lang".
*
+ * @throws MWException
* @return string|bool
*/
function get( $key, $useDB = true, $langcode = true, $isFullKey = false ) {