function _feedapi_stat_get in FeedAPI 6
Get one type of statistics for a given node. @todo: should live in FeedAPI module.
1 call to _feedapi_stat_get()
- feedapi_stat_get in feedapi_stat/
feedapi_stat.module - Get stats for a given feed node.
File
- feedapi_stat/
feedapi_stat.module, line 175 - Visualize standard FeedAPI statistics logs.
Code
function _feedapi_stat_get($id, $type) {
$result = db_query('SELECT timestamp, value FROM {feedapi_stat} WHERE id = %d AND type = "%s" ORDER BY timestamp ASC', $id, $type);
$values = array();
while ($row = db_fetch_object($result)) {
$values[$row->timestamp] = $row->value;
}
return $values;
}