STATISTICS

WIKINDX statistics

version 1
package wikindx4\core\miscellaneous
author Mark Grimshaw

 Methods

STATISTICS

__construct() 

Return views ratio for each resource

accessRatio(int $id) : int
author Mark Grimshaw

Parameters

$id

int

Resource ID

Returns

int

Check if statistics need compiling and emailing to registered users.

compile() 

Compiling is done if the date a user accesses wikindx is at least a month after the last compile time.

Return download ratio of attachments for each resource

downloadRatio(int $id) : int
author Mark Grimshaw

Parameters

$id

int

Resource ID

Returns

int

Calculate the maximum access ratio in the database

getMaxAccessRatio() : int
author Mark Grimshaw

Returns

int

Calculate the maximum download ratio in the database

getMaxDownloadRatio() : int
author Mark Grimshaw

Returns

int

return the popularity index for a resource

getPopularityIndex(int $id) : int
author Mark Grimshaw

Parameters

$id

int

Resource ID

Returns

int

Email users various stats

emailStats(array $resArray) 

Parameters

$resArray

array

Return the no.

getMaxAccesses() : int

views for the resource with the greatest number of views

Returns

int

Return the no.

getMaxDownloads() : int

attachment downloads for the resource with the greatest number of downloads

Returns

int

Run the statistics compilation and manage any emailing required

runCompile() 

 Properties

 

$list 
 

$AR 
 

$DR 
 

$MaxAR 
 

$MaxDR 
 

$db 
 

$maxAccesses 
 

$maxDownloads 
 

$messages 
 

$session 
 

$vars 
 

$wikindxTitle