protected function getControllerTargetModel($controller)
    {
        switch ($controller) {
            case 'respondent':
                $model = $this->loader->getModels()->getRespondentModel(true);
                $model->applyEditSettings();
                return $model;

            case 'calendar':
                $model = $this->loader->getModels()->createAppointmentModel();
                $this->applySource($model);
                $model->applyEditSettings();
                return $model;

            default:
                return null;
        }
    }
protected function getControllerTargetModel($controller)
    {
        switch ($controller) {
            case 'respondent':
                $model = $this->loader->getModels()->getRespondentModel(true);
                $model->applyEditSettings();
                return $model;

            case 'calendar':
                $model = $this->loader->getModels()->createAppointmentModel();
                $this->applySource($model);
                $model->applyEditSettings();
                return $model;

            default:
                return null;
        }
    }
protected function getControllerTargetModel ( $ controller ) { switch ( $ controller ) { case 'respondent' : $ model = $ this -> loader -> getModels ( ) -> getRespondentModel ( true ) ; $ model -> applyEditSettings ( ) ; return $ model ; case 'calendar' : $ model = $ this -> loader -> getModels ( ) -> createAppointmentModel ( ) ; $ this -> applySource ( $ model ) ; $ model -> applyEditSettings ( ) ; return $ model ; default : return null ; } }
The model to use with a controller

@param string $controller Name of controller (or other id)
@return \MUtil_Model_ModelAbstract or null when not found
The model to use with a controller