src/Controller/IndexController.php
public function dashboardAction()
    {
        /* @var $request \Zend\Http\Request */
        $request     = $this->getRequest();
        $params      = $request->getQuery();
        $isRecruiter = $this->Acl()->isRole(User::ROLE_RECRUITER);

        if ($isRecruiter) {
            $params->set('by', 'me');
        }

        $paginator = $this->paginator('Jobs/Job');

        return [
            'script' => 'jobs/index/dashboard',
            'type'   => $this->params('type'),
            'myJobs' => $this->jobRepository,
            'jobs'   => $paginator
        ];
    }
public function dashboardAction()
    {
        /* @var $request \Zend\Http\Request */
        $request     = $this->getRequest();
        $params      = $request->getQuery();
        $isRecruiter = $this->Acl()->isRole(User::ROLE_RECRUITER);

        if ($isRecruiter) {
            $params->set('by', 'me');
        }

        $paginator = $this->paginator('Jobs/Job');

        return [
            'script' => 'jobs/index/dashboard',
            'type'   => $this->params('type'),
            'myJobs' => $this->jobRepository,
            'jobs'   => $paginator
        ];
    }
public function dashboardAction ( ) { /* @var $request \Zend\Http\Request */ $ request = $ this -> getRequest ( ) ; $ params = $ request -> getQuery ( ) ; $ isRecruiter = $ this -> Acl ( ) -> isRole ( User :: ROLE_RECRUITER ) ; if ( $ isRecruiter ) { $ params -> set ( 'by' , 'me' ) ; } $ paginator = $ this -> paginator ( 'Jobs/Job' ) ; return [ 'script' => 'jobs/index/dashboard' , 'type' => $ this -> params ( 'type' ) , 'myJobs' => $ this -> jobRepository , 'jobs' => $ paginator ] ; }
Handles the dashboard widget for the jobs module.

@return array
Handles the dashboard widget for the jobs module .