Statistics Class Reference

Inheritance diagram for Statistics:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 addPageview ()
 expungeReferers ()
 getContentOverview ($pParamHash=NULL)
 getContentStats ()
 getContentTypeChartData ($pContentTypeGuid=NULL)
 getPageviewChartData ($pDays=7)
 getRefererList (&$pListHash)
 getSiteStats ()
 getUsageChartData ()
 registrationStats ($pPeriod)
 Statistics ()
 storeReferer ()

Detailed Description

Definition at line 13 of file Statistics.php.


Member Function Documentation

Statistics::addPageview (  ) 

addPageview to the pageview count

public

Returns:
void

Definition at line 99 of file Statistics.php.

References $query, date, and mDb.

Statistics::expungeReferers (  ) 

expungeReferers will remove all referers unconditionally

public

Returns:
TRUE on success, FALSE on failure

Definition at line 61 of file Statistics.php.

References mDb.

Statistics::getContentOverview ( pParamHash = NULL  ) 

getContentOverview will get a simple overview based on stats available available in liberty

Parameters:
array $pParamHash public
Returns:
array with content type stats

Definition at line 177 of file Statistics.php.

References $gLibertySystem, $pParamHash, $query, $ret, and mDb.

Statistics::getContentStats (  ) 

getContentStats will check all available content for the method Object::getStats() and will call and include the data

public

Returns:
array with content-specific stats

Definition at line 200 of file Statistics.php.

References $gLibertySystem, $guid, $ret, and $type.

Statistics::getContentTypeChartData ( pContentTypeGuid = NULL  ) 

getContentTypeChartData will fetch all data needed to create a graph with PHPlot

Parameters:
array $pContentTypeGuid specify the content_type_guid you want to create a graph for public
Returns:
array for PHPlot graph

Definition at line 287 of file Statistics.php.

References $contentType, $gLibertySystem, $i, $query, $res, $result, $ret, mDb, and title.

Statistics::getPageviewChartData ( pDays = 7  ) 

getPageviewChartData will fetch all data needed to create a graph with PHPlot

Parameters:
numeric $pDays Number of days we will use to create a graph public
Returns:
array for PHPlot graph

Definition at line 223 of file Statistics.php.

References $data, $i, $now, $query, $res, $result, $ret, date, and mDb.

Statistics::getRefererList ( &$  pListHash  ) 

getRefererList gets a list of referers

Parameters:
array $pListHash public
Returns:
array of referers

Definition at line 29 of file Statistics.php.

References $query, $ret, mDb, BitBase::postGetList(), and LibertyContent::prepGetList().

Here is the call graph for this function:

Statistics::getSiteStats (  ) 

getSiteStats will get a brief overview over the site

public

Returns:
array with site stats

Definition at line 158 of file Statistics.php.

References $ret, and mDb.

Statistics::getUsageChartData (  ) 

getUsageChartData will fetch all data needed to create a graph with PHPlot

public

Returns:
array for PHPlot graph

Definition at line 259 of file Statistics.php.

References $contentType, $gBitSystem, $gLibertySystem, $ret, mDb, and tra().

Here is the call graph for this function:

Statistics::registrationStats ( pPeriod  ) 

registrationStats

Parameters:
array $pPeriod public
Returns:
TRUE on success, FALSE on failure - mErrors will contain reason for failure

Definition at line 118 of file Statistics.php.

References $gBitDbType, $query, $ret, and mDb.

Statistics::Statistics (  ) 

Initiate class

Definition at line 18 of file Statistics.php.

References BitBase::BitBase().

Here is the call graph for this function:

Statistics::storeReferer (  ) 

storeReferer will insert new record in referer table

public

Returns:
TRUE on success, FALSE on failure - mErrors will contain reason for failure

Definition at line 71 of file Statistics.php.

References $_SERVER, $gBitSystem, $now, $parsed, $query, and mDb.


The documentation for this class was generated from the following file:
Generated on Wed Aug 22 19:34:54 2007 for bitweaver by  doxygen 1.5.2