Class Statistics

Namespace: Concrete\Core\Page
Located at src/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 string
# 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