Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
JournalStatisticsDAO Class Reference
Inheritance diagram for JournalStatisticsDAO:
DAO

Public Member Functions

 getArticleStatistics ($journalId, $sectionIds=null, $dateStart=null, $dateEnd=null)
 
 getFirstActivityDate ($journalId)
 
 getIssueStatistics ($journalId, $dateStart=null, $dateEnd=null)
 
 getReviewerStatistics ($journalId, $sectionIds, $dateStart=null, $dateEnd=null)
 
 getSubscriptionStatistics ($journalId, $dateStart=null, $dateEnd=null)
 
 getUserStatistics ($journalId, $dateStart=null, $dateEnd=null)
 
- 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 journal statistics.

Definition at line 21 of file JournalStatisticsDAO.inc.php.

Member Function Documentation

JournalStatisticsDAO::getArticleStatistics (   $journalId,
  $sectionIds = null,
  $dateStart = null,
  $dateEnd = null 
)

Get statistics about articles in the system. Returns a map of name => value pairs.

Parameters
$journalIdint The journal to fetch statistics for
$sectionIdint The section to query stats for (optional)
$dateStartdate The submit date to search from; optional
$dateEnddate The submit date to search to; optional
Returns
array

Definition at line 59 of file JournalStatisticsDAO.inc.php.

References DAO\datetimeFromDB(), DAO\datetimeToDB(), and DAO\retrieve().

JournalStatisticsDAO::getFirstActivityDate (   $journalId)

Determine the first date the journal was active. (This is an approximation but needs to run quickly.)

Parameters
$journalIdint Journal ID
Returns
int|null Date in seconds since the UNIX epoch, or null if it could not be determined

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

References DAO\datetimeFromDB(), and DAO\retrieve().

JournalStatisticsDAO::getIssueStatistics (   $journalId,
  $dateStart = null,
  $dateEnd = null 
)

Get statistics about issues in the system. Returns a map of name => value pairs.

Parameters
$journalIdint The journal to fetch statistics for
$dateStartdate The publish date to search from; optional
$dateEnddate The publish date to search to; optional
Returns
array

Definition at line 260 of file JournalStatisticsDAO.inc.php.

References DAO\datetimeToDB(), and DAO\retrieve().

JournalStatisticsDAO::getReviewerStatistics (   $journalId,
  $sectionIds,
  $dateStart = null,
  $dateEnd = null 
)

Get statistics about reviewers in the system. Returns a map of name => value pairs.

Parameters
$journalIdint The journal to fetch statistics for
$dateStartdate The publish date to search from; optional
$dateEnddate The publish date to search to; optional
Returns
array

Definition at line 301 of file JournalStatisticsDAO.inc.php.

References DAO\datetimeFromDB(), DAO\datetimeToDB(), and DAO\retrieve().

JournalStatisticsDAO::getSubscriptionStatistics (   $journalId,
  $dateStart = null,
  $dateEnd = null 
)

Get statistics about subscriptions.

Parameters
$journalIdint The journal to fetch statistics for
$dateStartdate optional
$dateEnddate optional
Returns
array

Definition at line 219 of file JournalStatisticsDAO.inc.php.

References DAO\datetimeToDB(), and DAO\retrieve().

JournalStatisticsDAO::getUserStatistics (   $journalId,
  $dateStart = null,
  $dateEnd = null 
)

Get statistics about users in the system. Returns a map of name => value pairs.

Parameters
$journalIdint The journal to fetch statistics for
$dateStartdate optional
$dateEnddate optional
Returns
array

Definition at line 173 of file JournalStatisticsDAO.inc.php.

References DAO\datetimeToDB(), DAORegistry\getDAO(), and DAO\retrieve().


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