class Statistics (View source)

Methods

static int
getTotalPageViews(date $date = null)

Gets total page views across the entire site.

static int
getTotalPageViewsForOthers(User $u, date $date = null)

Gets total page views for everyone but the passed user object.

static int
getTotalPageVersions()

Gets the total number of versions across all pages. Used in the dashboard.

static string
getSiteLastEdit($type = 'system')

Returns the datetime of the last edit to the site. Used in the dashboard.

static int
getTotalPagesCheckedOut()

Gets the total number of pages currently in edit mode.

static 
incrementParents($cID)

For a particular page ID, grabs all the pages of this page, and increments the cTotalChildren number for them.

static 
decrementParents($cID)

For a particular page ID, grabs all the pages of this page, and decrements the cTotalChildren number for them.

static 
getTotalPagesCreated($date)

Returns the total number of pages created for a given date.

Details

static int getTotalPageViews(date $date = null)

Gets total page views across the entire site.

Parameters

date $date

Return Value

int

static int getTotalPageViewsForOthers(User $u, date $date = null)

Gets total page views for everyone but the passed user object.

Parameters

User $u
date $date

Return Value

int

static int getTotalPageVersions()

Gets the total number of versions across all pages. Used in the dashboard.

It might be nice if this were a little more generalized

Return Value

int

static string getSiteLastEdit($type = 'system')

Returns the datetime of the last edit to the site. Used in the dashboard.

Parameters

$type

Return Value

string

date formated like: 2009-01-01 00:00:00

static int getTotalPagesCheckedOut()

Gets the total number of pages currently in edit mode.

Return Value

int

static incrementParents($cID)

For a particular page ID, grabs all the pages of this page, and increments the cTotalChildren number for them.

Parameters

$cID

static decrementParents($cID)

For a particular page ID, grabs all the pages of this page, and decrements the cTotalChildren number for them.

Parameters

$cID

static getTotalPagesCreated($date)

Returns the total number of pages created for a given date.

Parameters

$date