Class PageStatistics

Description

PageStatistics functions as a name space containing functions that return page-level statistics.

Located in /models/page_statistics.php (line 25)


	
			
Method Summary
 static void decrementParents ( $cID)
 static datetime getSiteLastEdit ([ $type = 'system'])
 static int getTotalPagesCheckedOut ()
 static int getTotalPageVersions ()
 static int getTotalPageViews ([date $date = null])
 static int getTotalPageViewsForOthers (User $u, [date $date = null])
 static void incrementParents ( $cID)
Methods
static decrementParents (line 112)

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

  • access: public
void decrementParents ( $cID)
  • $cID
static getSiteLastEdit (line 72)

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

  • access: public
datetime getSiteLastEdit ([ $type = 'system'])
  • $type
static getTotalPagesCheckedOut (line 87)

Gets the total number of pages currently in edit mode

  • access: public
int getTotalPagesCheckedOut ()
static getTotalPageVersions (line 63)

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

  • todo: It might be nice if this were a little more generalized
  • access: public
int getTotalPageVersions ()
static getTotalPageViews (line 32)

Gets total page views across the entire site.

  • access: public
int getTotalPageViews ([date $date = null])
  • date $date
static getTotalPageViewsForOthers (line 47)

Gets total page views for everyone but the passed user object

  • access: public
int getTotalPageViewsForOthers (User $u, [date $date = null])
  • User $u
  • date $date
static incrementParents (line 96)

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

  • access: public
void incrementParents ( $cID)
  • $cID

Documentation generated on Thu, 15 Sep 2011 16:36:29 -0700 by phpDocumentor 1.4.1