MediaWiki
REL1_22
|
Update for the 'page_counter' field, when $wgDisableCounters is false. More...
Public Member Functions | |
__construct ($id) | |
Constructor. | |
doUpdate () | |
Run the update. | |
Protected Member Functions | |
collect () | |
Protected Attributes | |
$id |
Update for the 'page_counter' field, when $wgDisableCounters is false.
Depending on $wgHitcounterUpdateFreq, this will directly increment the 'page_counter' field or use the 'hitcounter' table and then collect the data from that table to update the 'page_counter' field in a batch operation.
Definition at line 30 of file ViewCountUpdate.php.
ViewCountUpdate::__construct | ( | $ | id | ) |
Constructor.
$id | Integer: page ID to increment the view count |
Definition at line 38 of file ViewCountUpdate.php.
References $id.
ViewCountUpdate::collect | ( | ) | [protected] |
Definition at line 65 of file ViewCountUpdate.php.
References array(), global, wfGetDB(), wfProfileIn(), and wfProfileOut().
Referenced by doUpdate().
ViewCountUpdate::$id [protected] |
Definition at line 31 of file ViewCountUpdate.php.
Referenced by __construct().