Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Cache $cache, $id) | |
makeCacheKey ( $id) | |
initRecord () | |
shouldRecord ( $shouldRecord) | |
getStats () | |
incr ( $key) | |
init ( $key, $default) | |
set ( $key, $value) | |
calcMedian ( $key, $value) | |
saveStats () | |
recordStats ( $asPending=false) | |
Public Attributes | |
const | VERSION = '0.2' |
const | STATS_INIT = 'init' |
const | STATS_INCR = 'incr' |
const | STATS_SET = 'set' |
const | STATS_MEDIAN = 'median' |
const | CACHE_NAMESPACE = 'smw:stats' |
Collect statistics in a provisional schema-free storage that depends on the availability of the cache back-end.
GNU GPL v2+
SMW\Utils\Stats::__construct | ( | Cache | $cache, |
$id | |||
) |
Cache | $cache | |
string | $id |
SMW\Utils\Stats::calcMedian | ( | $key, | |
$value | |||
) |
string | array | $key | |
integer | $value |
SMW\Utils\Stats::getStats | ( | ) |
SMW\Utils\Stats::incr | ( | $key | ) |
string | array | $key |
SMW\Utils\Stats::init | ( | $key, | |
$default | |||
) |
string | array | $key | |
string | integer | $default |
SMW\Utils\Stats::initRecord | ( | ) |
SMW\Utils\Stats::makeCacheKey | ( | $id | ) |
SMW\Utils\Stats::recordStats | ( | $asPending = false | ) |
boolean | $asPending |
SMW\Utils\Stats::saveStats | ( | ) |
SMW\Utils\Stats::set | ( | $key, | |
$value | |||
) |
string | array | $key | |
string | integer | $value |
SMW\Utils\Stats::shouldRecord | ( | $shouldRecord | ) |
boolean | $shouldRecord |
const SMW\Utils\Stats::CACHE_NAMESPACE = 'smw:stats' |
Namespace occupied by the Cache
const SMW\Utils\Stats::STATS_INIT = 'init' |
Available operations
const SMW\Utils\Stats::VERSION = '0.2' |
Update this version number when the serialization format changes.