/media/shnoulle/data/webdev/master/application/helpers/admin/export/SurveyObj.php(104)
092 if ($questionId) { 093 $answers = $this->getAnswers($questionId); 094 if (isset($answers[$answerCode])) { 095 $answer = $answers[$answerCode]; 096 } 097 } 098 099 //echo "\n$fieldName: $fieldType = $answerCode"; 100 switch ($fieldType) { 101 case Question::QT_K_MULTIPLE_NUMERICAL: 102 case Question::QT_N_NUMERICAL: 103 $fullAnswer = $answerCode; 104 if (trim($fullAnswer) !== '') { 105 // SQL DECIMAL 106 if ($fullAnswer[0] === ".") { 107 $fullAnswer = "0" . $fullAnswer; 108 } 109 if (strpos($fullAnswer, ".") !== false) { 110 $fullAnswer = rtrim(rtrim($fullAnswer, "0"), "."); 111 } 112 $qidattributes = QuestionAttribute::model()->getQuestionAttributes($questionId); 113 if (isset($qidattributes['num_value_int_only']) && $qidattributes['num_value_int_only']) { 114 $fullAnswer = number_format($fullAnswer, 0, '', ''); 115 } 116 }
#0 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/export/SurveyObj.php(104): trim(null) 099 //echo "\n$fieldName: $fieldType = $answerCode"; 100 switch ($fieldType) { 101 case Question::QT_K_MULTIPLE_NUMERICAL: 102 case Question::QT_N_NUMERICAL: 103 $fullAnswer = $answerCode; 104 if (trim($fullAnswer) !== '') { 105 // SQL DECIMAL 106 if ($fullAnswer[0] === ".") { 107 $fullAnswer = "0" . $fullAnswer; 108 } 109 if (strpos($fullAnswer, ".") !== false) { |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/export/Writer.php(185): SurveyObj->getFullAnswer("282267X4X11", null, Translator, "en") 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 } |
#2 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/export/Writer.php(323): Writer->getLongAnswer(SurveyObj, FormattingOptions, "282267X4X11", null) 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; |
#3 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/exportresults_helper.php(119): Writer->write(SurveyObj, "en", FormattingOptions, true) 114 $offset = $i * $maxRows; 115 $responsesQuery = $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses); 116 $responsesQuery->offset($offset); 117 $responsesQuery->limit($maxRows); 118 $survey->responses = $responsesQuery->query(); 119 $writer->write($survey, $sLanguageCode, $oOptions, true); 120 } 121 $result = $writer->close(); 122 123 // Close resultset if needed 124 if ($survey->responses instanceof CDbDataReader) { |
#4 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/admin/Export.php(352): ExportSurveyResultsService->exportResponses(282267, "en", "csv", FormattingOptions, ...) 347 } else { 348 $sFilter = ''; 349 } 350 351 viewHelper::disableHtmlLogging(); 352 $resultsService->exportResponses($iSurveyID, $explang, $sExportType, $options, $sFilter); 353 354 Yii::app()->end(); 355 } 356 357 /** |
#5 |
unknown(0): Export->exportresults()
|
#6 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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 } |
#7 |
+
–
/media/shnoulle/data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(Export,
ReflectionMethod, array("r" =>
"admin/export/sa/exportresults/surveyid/282267", "sa" =>
"exportresults", "surveyid" => 282267, "iSurveyId" => 282267,
...)) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#8 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("r"
=> "admin/export/sa/exportresults/surveyid/282267", "sa" =>
"exportresults", "surveyid" => 282267, "iSurveyId" => 282267,
...)) 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; |
#9 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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(); |
#10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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); |
#11 |
+
–
/media/shnoulle/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 developer can extends any of the LimeSurve controllers. 207 * |
#12 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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))); |
#13 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export/sa/exportresults/surveyid/282267") 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. |
#14 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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 /** |
#15 |
+
–
/media/shnoulle/data/webdev/master/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |