Open Journal Systems
3.3.0
|
Public Member Functions | |
& | getMetrics ($metricType, $columns=array(), $filters=array(), $orderBy=array(), $range=null, $nonAdditive=true) |
Public Member Functions inherited from PKPMetricsDAO | |
getLoadId ($assocType, $assocId, $metricType) | |
hasRecord ($metricType) | |
insertRecord ($record) | |
purgeLoadBatch ($loadId) | |
purgeRecords ($metricType, $toDate) | |
Public Member Functions inherited from DAO | |
__construct ($dataSource=null, $callHooks=true) | |
concat () | |
convertFromDB ($value, $type) | |
convertToDB ($value, &$type) | |
dateFromDB ($d) | |
datetimeFromDB ($dt) | |
datetimeToDB ($dt) | |
dateToDB ($d) | |
flushCache () | |
formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
getAdditionalFieldNames () | |
getAffectedRows () | |
getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
getDataSource () | |
getDirectionMapping ($direction) | |
getDriver () | |
getLocaleFieldNames () | |
getType ($value) | |
handleError ($dataSource, $sql) | |
nullOrInt ($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) | |
Protected Member Functions | |
foreignKeyLookup ($assocType, $assocId) | |
getAssocObjectInfo ($submissionId, $contextId) | |
Protected Member Functions inherited from DAO | |
_getInsertId ($table='', $id='') | |
Additional Inherited Members | |
Static Public Member Functions inherited from DAO | |
static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Data Fields inherited from DAO | |
$_dataSource | |
Operations for retrieving and adding statistics data.
Definition at line 18 of file MetricsDAO.inc.php.
|
protected |
Foreign key lookup for the published object dimension.
$assocType | int |
$assocId | int |
Reimplemented from PKPMetricsDAO.
Definition at line 45 of file MetricsDAO.inc.php.
References DAORegistry\getDAO().
|
protected |
Get the id and type of the object that the passed submission info is associated with. Default implementation returns null, subclasses have to implement it.
$submissionId | Submission id. |
$contextId | The submission context id. |
Reimplemented from PKPMetricsDAO.
Definition at line 90 of file MetricsDAO.inc.php.
References PKPServices\get().
& MetricsDAO::getMetrics | ( | $metricType, | |
$columns = array() , |
|||
$filters = array() , |
|||
$orderBy = array() , |
|||
$range = null , |
|||
$nonAdditive = true |
|||
) |
Retrieve a range of aggregate, filtered, ordered metric values, i.e. a statistics report.
$metricType | string|array metrics selection |
$columns | string|array column (aggregation level) selection |
$filters | array report-level filter selection |
$orderBy | array order criteria |
$range | null|DBResultRange paging specification |
$nonAdditive | boolean (optional) Whether the metric type dimension will be additive or not. This must be used with care, different metric types should not be additive because they may diverge in ways of counting usage events. |
Reimplemented from PKPMetricsDAO.
Definition at line 23 of file MetricsDAO.inc.php.