class Statistics (View source)

Methods

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 getTotalPageVersions()

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

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