public function getWidgetJob($job_model, $job = null)
    {
        if (!isset($job)) {
            $job = $job_model->get($this->getQuery('job_id', ''));
        }

        $rendered = '';

        if (!empty($job['status'])) {
            $job += array('widget' => 'common/job');
            $rendered = $this->render($job['widget'], array('job' => $job));
        }

        return $rendered;
    }
public function getWidgetJob($job_model, $job = null)
    {
        if (!isset($job)) {
            $job = $job_model->get($this->getQuery('job_id', ''));
        }

        $rendered = '';

        if (!empty($job['status'])) {
            $job += array('widget' => 'common/job');
            $rendered = $this->render($job['widget'], array('job' => $job));
        }

        return $rendered;
    }
public function getWidgetJob ( $ job_model , $ job = null ) { if ( ! isset ( $ job ) ) { $ job = $ job_model -> get ( $ this -> getQuery ( 'job_id' , '' ) ) ; } $ rendered = '' ; if ( ! empty ( $ job [ 'status' ] ) ) { $ job += array ( 'widget' => 'common/job' ) ; $ rendered = $ this -> render ( $ job [ 'widget' ] , array ( 'job' => $ job ) ) ; } return $ rendered ; }
Returns the rendered job widget
@param \gplcart\core\models\Job $job_model
@param null|array $job
@return string
Returns the rendered job widget