public function refreshRatingAction()
    {
        $model = new ViewModel();
        $model->setTemplate('applications/manage/_rating');
        
        $application = $this->repositories->get('Applications/Application')
                        ->find($this->params('id', 0));
        
        if (!$application) {
            throw new \DomainException('Invalid application id.');
        }
        
        $model->setVariable('application', $application);
        return $model;
    }
public function refreshRatingAction()
    {
        $model = new ViewModel();
        $model->setTemplate('applications/manage/_rating');
        
        $application = $this->repositories->get('Applications/Application')
                        ->find($this->params('id', 0));
        
        if (!$application) {
            throw new \DomainException('Invalid application id.');
        }
        
        $model->setVariable('application', $application);
        return $model;
    }
public function refreshRatingAction ( ) { $ model = new ViewModel ( ) ; $ model -> setTemplate ( 'applications/manage/_rating' ) ; $ application = $ this -> repositories -> get ( 'Applications/Application' ) -> find ( $ this -> params ( 'id' , 0 ) ) ; if ( ! $ application ) { throw new \ DomainException ( 'Invalid application id.' ) ; } $ model -> setVariable ( 'application' , $ application ) ; return $ model ; }
Refreshes the rating of an application

@throws \DomainException
@return \Zend\View\Model\ViewModel
Refreshes the rating of an application