public static function Notifications_Queue::queue_count in Notifications 6.4
Count the number of rows in queue
1 call to Notifications_Queue::queue_count()
- NotificationsTestCase::countQueued in tests/
notifications_test_case.inc - Helper function. Simple row counting with conditions, uses query builder
File
- includes/
notifications_queue.class.inc, line 736
Class
- Notifications_Queue
- Queue management and processing
Code
public static function queue_count($params = NULL) {
if ($params) {
$query = self::queue_query($params);
return db_result(db_query('SELECT COUNT(*) FROM {notifications_queue} WHERE ' . implode(' AND ', $query['where']), $query['args']));
}
else {
return db_result(db_query('SELECT COUNT(*) FROM {notifications_queue}'));
}
}