Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
UsageStatsTemporaryRecordDAO Class Reference
Inheritance diagram for UsageStatsTemporaryRecordDAO:
DAO

Public Member Functions

_getGrouped ($loadId)
 
 deleteByLoadId ($loadId)
 
 deleteRecord ($assocType, $assocId, $time, $loadId)
 
getNextByLoadId ($loadId)
 
 insert ($assocType, $assocId, $day, $time, $countryCode, $region, $cityName, $fileType, $loadId)
 
 UsageStatsTemporaryRecordDAO ()
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Public Attributes

 $_loadId
 
 $_result
 
- Public Attributes inherited from DAO
 $_dataSource
 

Additional Inherited Members

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Detailed Description

Operations for retrieving and adding temporary usage statistics records.

Definition at line 17 of file UsageStatsTemporaryRecordDAO.inc.php.

Member Function Documentation

& UsageStatsTemporaryRecordDAO::_getGrouped (   $loadId)

Get all temporary records with the passed load id grouped.

Parameters
$loadIdstring
Returns
ADORecordSet

Definition at line 132 of file UsageStatsTemporaryRecordDAO.inc.php.

UsageStatsTemporaryRecordDAO::deleteByLoadId (   $loadId)

Delete all temporary records associated with the passed load id.

Parameters
$loadIdstring
Returns
boolean

Definition at line 104 of file UsageStatsTemporaryRecordDAO.inc.php.

UsageStatsTemporaryRecordDAO::deleteRecord (   $assocType,
  $assocId,
  $time,
  $loadId 
)

Delete the record with the passed assoc id and type with the most recent day value.

Parameters
$assocTypeint
$assocIdint
$timeint
$loadIdstring
Returns
boolean

Definition at line 117 of file UsageStatsTemporaryRecordDAO.inc.php.

References DAO\retrieve().

& UsageStatsTemporaryRecordDAO::getNextByLoadId (   $loadId)

Get next temporary stats record by load id.

Parameters
$loadIdstring
Returns
mixed array or false if the end of records is reached.

Definition at line 82 of file UsageStatsTemporaryRecordDAO.inc.php.

UsageStatsTemporaryRecordDAO::insert (   $assocType,
  $assocId,
  $day,
  $time,
  $countryCode,
  $region,
  $cityName,
  $fileType,
  $loadId 
)

Add the passed usage statistic record.

Parameters
$assocTypeint
$assocIdint
$daystring
$timeint
$countryCodestring
$regionint
$cityNamestring
$fileTypeint
$loadIdstring
Returns
boolean

Definition at line 54 of file UsageStatsTemporaryRecordDAO.inc.php.

UsageStatsTemporaryRecordDAO::UsageStatsTemporaryRecordDAO ( )

Constructor

Definition at line 34 of file UsageStatsTemporaryRecordDAO.inc.php.

References DAO\update().

Member Data Documentation

$_loadId UsageStatsTemporaryRecordDAO::$_loadId

string

Definition at line 29 of file UsageStatsTemporaryRecordDAO.inc.php.

$_result UsageStatsTemporaryRecordDAO::$_result

ADORecordSet

Definition at line 23 of file UsageStatsTemporaryRecordDAO.inc.php.


The documentation for this class was generated from the following file: