private function QueueUISystemQueue::loadItem in Queue UI 7.2
Load a specified SystemQueue queue item from the database.
Parameters
$item_id: The item id to load
Return value
Result of the database query loading the queue item.
1 call to QueueUISystemQueue::loadItem()
- QueueUISystemQueue::view in lib/
QueueUISystemQueue.php - View the item data for a specified queue item.
File
- lib/
QueueUISystemQueue.php, line 156
Class
Code
private function loadItem($item_id) {
// Load the specified queue item from the queue table.
$query = db_select('queue', 'q')
->fields('q', array(
'item_id',
'name',
'data',
'expire',
'created',
))
->condition('q.item_id', $item_id)
->range(0, 1)
->execute();
$result = array();
foreach ($query as $record) {
$result[] = $record;
}
return $result[0];
}