/data/webdev/master/application/helpers/admin/export/SurveyObj.php(130)
118 119 case Question::QT_R_RANKING_STYLE: //RANKING TYPE 120 $fullAnswer = $answer; 121 break; 122 123 case Question::QT_1_ARRAY_MULTISCALE: //Array dual scale 124 if (mb_substr($fieldName, -1) == 0) { 125 $answers = $this->getAnswers($questionId, 0); 126 } else { 127 $answers = $this->getAnswers($questionId, 1); 128 } 129 if (array_key_exists($answerCode, $answers)) { 130 $fullAnswer = $answers[$answerCode]['answer']; 131 } else { 132 $fullAnswer = null; 133 } 134 break; 135 136 case Question::QT_L_LIST_DROPDOWN: //DROPDOWN LIST 137 case Question::QT_EXCLAMATION_LIST_DROPDOWN: 138 if (mb_substr($fieldName, -5, 5) == 'other') { 139 $fullAnswer = $answerCode; 140 } else { 141 if ($answerCode == '-oth-') { 142 $fullAnswer = $translator->translate('Other', $sLanguageCode);
#0 |
+
–
/data/webdev/master/application/helpers/admin/export/Writer.php(185): SurveyObj->getFullAnswer("91424X16X285SQ01#1", "A2", Translator, "fr") 180 * @return string 181 */ 182 public function getLongAnswer(SurveyObj $oSurvey, FormattingOptions $oOptions, $fieldName, $sValue) 183 { 184 return $this->transformResponseValue( 185 $oSurvey->getFullAnswer($fieldName, $sValue, $this->translator, $this->languageCode), 186 $oSurvey->fieldMap[$fieldName]['type'], 187 $oOptions, 188 $fieldName 189 ); 190 } |
#1 |
+
–
/data/webdev/master/application/helpers/admin/export/Writer.php(323): Writer->getLongAnswer(SurveyObj, FormattingOptions, "91424X16X285SQ01#1", "A2") 318 foreach ($oOptions->selectedColumns as $column) { 319 $value = $aResponse[$column]; 320 if (isset($oSurvey->fieldMap[$column]) && $oSurvey->fieldMap[$column]['type'] != 'answer_time' && $oSurvey->fieldMap[$column]['type'] != 'page_time' && $oSurvey->fieldMap[$column]['type'] != 'interview_time') { 321 switch ($oOptions->answerFormat) { 322 case 'long': 323 $elementArray[] = $this->getLongAnswer($oSurvey, $oOptions, $column, $value); 324 break; 325 default: 326 case 'short': 327 $elementArray[] = $this->getShortAnswer($oSurvey, $oOptions, $column, $value); 328 break; |
#2 |
+
–
/data/webdev/master/application/helpers/admin/exportresults_helper.php(108): Writer->write(SurveyObj, "fr", FormattingOptions, true) 103 $surveyDao = new SurveyDao(); 104 $survey = $surveyDao->loadSurveyById($iSurveyId, $sLanguageCode, $oOptions); 105 $writer->init($survey, $sLanguageCode, $oOptions); 106 107 $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses); 108 $writer->write($survey, $sLanguageCode, $oOptions, true); 109 $result = $writer->close(); 110 111 // Close resultset if needed 112 if ($survey->responses instanceof CDbDataReader) { 113 $survey->responses->close(); |
#3 |
+
–
/data/webdev/master/application/controllers/admin/export.php(340): ExportSurveyResultsService->exportResponses("91424", "fr", "html", FormattingOptions, ...) 335 } else { 336 $sFilter = ''; 337 } 338 339 viewHelper::disableHtmlLogging(); 340 $resultsService->exportResponses($iSurveyID, $explang, $sExportType, $options, $sFilter); 341 342 Yii::app()->end(); 343 } 344 345 /* |
#4 |
unknown(0): export->exportresults()
|
#5 |
+
–
/data/webdev/master/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(export, array()) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#6 |
+
–
/data/webdev/master/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(export,
ReflectionMethod, array("r" =>
"admin/export/sa/exportresults/surveyid/91424", "sa" =>
"exportresults", "surveyid" => "91424", "iSurveyId" => "91424",
...)) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
#7 |
+
–
/data/webdev/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r"
=> "admin/export/sa/exportresults/surveyid/91424", "sa" =>
"exportresults", "surveyid" => "91424", "iSurveyId" => "91424",
...)) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#8 |
+
–
/data/webdev/master/framework/web/CController.php(286): CController->runAction(export) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/data/webdev/master/framework/web/CController.php(265): CController->runActionWithFilters(export, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#10 |
+
–
/data/webdev/master/application/controllers/AdminController.php(202): CController->run("export") 197 } 198 199 $this->runModuleController($action); 200 201 202 return parent::run($action); 203 } 204 205 /** 206 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 207 * |
#11 |
+
–
/data/webdev/master/framework/web/CWebApplication.php(282): AdminController->run("export") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#12 |
+
–
/data/webdev/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export/sa/exportresults/surveyid/91424") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#13 |
+
–
/data/webdev/master/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#14 |
+
–
/data/webdev/master/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |