Open Journal Systems  2.4.4
 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 ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 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)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

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 126 of file UsageStatsTemporaryRecordDAO.inc.php.

References DAO\retrieve().

Referenced by getNextByLoadId().

UsageStatsTemporaryRecordDAO::deleteByLoadId (   $loadId)

Delete all temporary records associated with the passed load id.

Parameters
$loadIdstring
Returns
boolean

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

References DAO\update().

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 111 of file UsageStatsTemporaryRecordDAO.inc.php.

References DAO\update().

& 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 76 of file UsageStatsTemporaryRecordDAO.inc.php.

References _getGrouped().

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 48 of file UsageStatsTemporaryRecordDAO.inc.php.

References DAO\update().

UsageStatsTemporaryRecordDAO::UsageStatsTemporaryRecordDAO ( )

Constructor

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


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