OEModule\OphCoCvi\controllers\LocalAuthoritiesAdminController::actionList PHP Method

actionList() public method

Lists local authorities from Commissioning Body Service
public actionList ( )
    public function actionList()
    {
        \Audit::add('admin-CommissioningBodyService', 'list');
        if (!($commissioning_bt = \CommissioningBodyType::model()->findByAttributes(array('shortname' => 'LA')))) {
            throw new \CHttpException(500, 'Local Authority Commissioning Body Type is not configured.');
        }
        $service_type = \CommissioningBodyServiceType::model()->findByAttributes(array('shortname' => 'SSD'));
        $data['title'] = 'CVI Social Services Depts.';
        $data['commissioning_bt'] = $commissioning_bt;
        $data['service_type'] = $service_type;
        $data['return_url'] = '/OphCoCvi/localAuthoritiesAdmin/list';
        $data['base_data_url'] = 'OphCoCvi/localAuthoritiesAdmin/';
        $this->render('//admin/commissioning_body_services', $data);
    }
LocalAuthoritiesAdminController