Class zhuravljov\yii\queue\debug\Panel
| Inheritance | zhuravljov\yii\queue\debug\Panel » yii\debug\Panel | 
|---|---|
| Implements | yii\base\ViewContextInterface | 
| Source Code | https://github.com/yiisoft/yii2-queue/blob/master/src/debug/Panel.php | 
Class Panel
Public Methods
Method Details
| public void getDetail ( ) | 
                public function getDetail()
{
    return Yii::$app->view->render('detail', [
        'jobs' => array_map(function ($serialized) {
            return unserialize($serialized);
        }, $this->data['jobs']),
    ], $this);
}
            
        
| public void getSummary ( ) | 
                public function getSummary()
{
    return Yii::$app->view->render('summary', [
        'url' => $this->getUrl(),
        'count' => count($this->data['jobs']),
    ], $this);
}
            
        
| public void init ( ) | 
                public function init()
{
    parent::init();
    Event::on(Queue::class, Queue::EVENT_ON_PUSH, function (Event $event) {
        $this->_jobs[] = serialize($event->job);
    });
}