FU r98405: various document cleanup

This commit is contained in:
Aaron Schulz 2011-09-29 21:17:43 +00:00
parent 8e5ff8f7a0
commit 6559b8bfcc
3 changed files with 23 additions and 8 deletions

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Contain the HTMLFileCache class * Contain the FileCacheBase class
* @file * @file
* @ingroup Cache * @ingroup Cache
*/ */
@ -128,7 +128,7 @@ abstract class FileCacheBase {
return $text; return $text;
} }
/* /**
* Clear the cache for this page * Clear the cache for this page
* @return void * @return void
*/ */
@ -138,7 +138,7 @@ abstract class FileCacheBase {
wfRestoreWarnings(); wfRestoreWarnings();
} }
/* /**
* Create parent directors of $this->cachePath() * Create parent directors of $this->cachePath()
* @TODO: why call wfMkdirParents() twice? * @TODO: why call wfMkdirParents() twice?
* @return void * @return void
@ -152,7 +152,7 @@ abstract class FileCacheBase {
wfMkdirParents( $mydir2, null, __METHOD__ ); wfMkdirParents( $mydir2, null, __METHOD__ );
} }
/* /**
* Return relative multi-level hash subdirectory with the trailing * Return relative multi-level hash subdirectory with the trailing
* slash or the empty string if $wgFileCacheDepth is off * slash or the empty string if $wgFileCacheDepth is off
* @return string * @return string

View file

@ -5,7 +5,12 @@
* @ingroup Cache * @ingroup Cache
*/ */
class HTMLFileCache extends FileCacheBase { class HTMLFileCache extends FileCacheBase {
/**
* Construct an ObjectFileCache from a Title and an action
* @param $title Title
* @param $action string
* @return HTMLFileCache
*/
public static function newFromTitle( Title $title, $action ) { public static function newFromTitle( Title $title, $action ) {
$cache = new self(); $cache = new self();
@ -20,7 +25,7 @@ class HTMLFileCache extends FileCacheBase {
return $cache; return $cache;
} }
/* /**
* Cacheable actions * Cacheable actions
* @return array * @return array
*/ */

View file

@ -1,6 +1,16 @@
<?php <?php
/**
* Contain the ObjectFileCache class
* @file
* @ingroup Cache
*/
class ObjectFileCache extends FileCacheBase { class ObjectFileCache extends FileCacheBase {
/**
* Construct an ObjectFileCache from a key and a type
* @param $key string
* @param $type string
* @return ObjectFileCache
*/
public static function newFromKey( $key, $type ) { public static function newFromKey( $key, $type ) {
$cache = new self(); $cache = new self();
@ -15,7 +25,7 @@ class ObjectFileCache extends FileCacheBase {
return $cache; return $cache;
} }
/* /**
* Get the type => extension mapping * Get the type => extension mapping
* @return array * @return array
*/ */