MediaWiki
REL1_22
|
Class for dealing with PoolCounters using class members. More...
Public Member Functions | |
__construct ($type, $key) | |
doWork () | |
Actually perform the work, caching it if needed. | |
error ($status) | |
Do something with the error, like showing it to the user. | |
execute ($skipcache=false) | |
Get the result of the work (whatever it is), or the result of the error() function. | |
fallback () | |
A work not so good (eg. | |
getCachedWork () | |
Retrieve the work from cache. | |
logError ($status) | |
Log an error. | |
Protected Attributes | |
$cacheable = false |
Class for dealing with PoolCounters using class members.
Definition at line 137 of file PoolCounter.php.
PoolCounterWork::__construct | ( | $ | type, |
$ | key | ||
) |
string | $type | The type of PoolCounter to use |
string | $key | Key that identifies the queue this work is placed on |
Definition at line 144 of file PoolCounter.php.
PoolCounterWork::doWork | ( | ) | [abstract] |
Actually perform the work, caching it if needed.
Reimplemented in PoolWorkArticleView, and PoolCounterWorkViaCallback.
PoolCounterWork::error | ( | $ | status | ) |
Do something with the error, like showing it to the user.
Reimplemented in PoolWorkArticleView, and PoolCounterWorkViaCallback.
Definition at line 175 of file PoolCounter.php.
PoolCounterWork::execute | ( | $ | skipcache = false | ) |
Get the result of the work (whatever it is), or the result of the error() function.
This returns the result of the first applicable method that returns a non-false value, where the methods are checked in the following order:
$skipcache | bool |
Definition at line 204 of file PoolCounter.php.
A work not so good (eg.
expired one) but better than an error message.
Reimplemented in PoolWorkArticleView, and PoolCounterWorkViaCallback.
Definition at line 167 of file PoolCounter.php.
Retrieve the work from cache.
Reimplemented in PoolWorkArticleView, and PoolCounterWorkViaCallback.
Definition at line 158 of file PoolCounter.php.
PoolCounterWork::logError | ( | $ | status | ) |
Log an error.
$status | Status |
Definition at line 185 of file PoolCounter.php.
PoolCounterWork::$cacheable = false [protected] |
Definition at line 138 of file PoolCounter.php.