This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_PageStatistics

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

Direct known subclasses

PageStatistics

Package: Pages
Category: Concrete
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/models/page_statistics.php

Methods summary

public static integer
# getTotalPageViews( date $date = null )

Gets total page views across the entire site.

public static integer
# getTotalPageViewsForOthers( User $u, date $date = null )

Gets total page views for everyone but the passed user object

public static integer
# getTotalPageVersions( )

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

public static datetime
# getSiteLastEdit( $type = 'system' )

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

public static integer
# getTotalPagesCheckedOut( )

Gets the total number of pages currently in edit mode

public static
# incrementParents( $cID )

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

public static
# decrementParents( $cID )

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

public static
# getTotalPagesCreated( $date )

Returns the total number of pages created for a given date