public function QueueUISystemQueue::view in Queue UI 7.2
View the item data for a specified queue item.
Parameters
int $item_id:
Return value
string
Overrides QueueUIInterface::view
File
- lib/
QueueUISystemQueue.php, line 87
Class
Code
public function view($item_id) {
$queue_item = $this
->loadItem($item_id);
$rows[] = array(
'data' => array(
'header' => t('Item ID'),
'data' => $queue_item->item_id,
),
);
$rows[] = array(
'data' => array(
'header' => t('Queue name'),
'data' => $queue_item->name,
),
);
$rows[] = array(
'data' => array(
'header' => t('Expire'),
'data' => $queue_item->expire ? date(DATE_RSS, $queue_item->expire) : $queue_item->expire,
),
);
$rows[] = array(
'data' => array(
'header' => t('Created'),
'data' => date(DATE_RSS, $queue_item->created),
),
);
$rows[] = array(
'data' => array(
'header' => array(
'data' => t('Data'),
'style' => 'vertical-align:top',
),
'data' => '<pre>' . print_r(unserialize($queue_item->data), TRUE) . '</pre>',
),
);
return theme('table', array(
'rows' => $rows,
));
}