Number of elements in each nodequeue,
Number of elements before the nodequeue is full,
Number of elements added by month...

Which are the counters and statistics available about a nodequeue object ?

Comments

julma’s picture

Title: Which functions can we use to query the state of a nodequeue object ? Which are the counters and statistics ? » Counters and statistics about nodequeue object ?
ezra-g’s picture

Category: support » task

These could be added to the Nodequeue documentation:

Of course, you could also do direct database queries for these.
Number of elements in each nodequeue: $subqueue->count
Number of elements before the nodequeue is full. calculate count - $subqueue->count minus $queue->size (unless the size is zero in which case the subqueue has infinite capacity.
Number of elements added by month... Do a custom query against nodequeue_nodes.

amateescu’s picture

Status: Active » Closed (won't fix)

I think these counters are pretty obvious if you inspect a $queue object...