/limeservice/instances/25/limesurvey/application/core/plugins/ExportSTATAxml/STATAxmlWriter.php(130)
118 } 119 $aFieldmap['answers'] = array_intersect_key($survey->answers, array_flip($aUsedQIDs)); 120 121 // add per-survey info 122 $aFieldmap['info'] = $survey->info; 123 124 // STATA only uses value labels on numerical variables. If the answer codes are not numerical we later replace them with the text-answer 125 // here we go through the answers-array and check whether answer-codes are numerical. If they are not, we save the respective QIDs 126 // so responses can later be set to full answer test of Question or SQ' 127 foreach ($aFieldmap['answers'] as $qid => $aScale) { 128 foreach ($aFieldmap['answers'][$qid] as $iScale => $aAnswers) { 129 foreach ($aFieldmap['answers'][$qid][$iScale] as $iAnswercode => $aAnswer) { 130 if (!is_numeric($aAnswer['code'])) { 131 $this->aQIDnonumericalAnswers[$aAnswer['qid']] = true; 132 } 133 } 134 } 135 } 136 137 // go through the questions array and create/modify vars for STATA-output 138 foreach ($aFieldmap['questions'] as $sSGQAkey => $aQuestion) { 139 // STATA does not support attaching value labels to non-numerical values 140 // We therefore set a flag in questions array for non-numerical answer codes. 141 // The respective codes are later recoded to contain the full answers 142 if (array_key_exists($aQuestion['qid'], $this->aQIDnonumericalAnswers)) {
#0 |
+
–
/limeservice/instances/25/limesurvey/application/core/plugins/ExportSTATAxml/STATAxmlWriter.php(62): STATAxmlWriter->createStataFieldmap(SurveyObj, "de", FormattingOptions) 57 $this->handle = fopen($this->filename, 'w'); 58 } 59 $this->headersSGQA = $oOptions->selectedColumns; 60 $oOptions->headingFormat = 'code'; // Always use fieldcodes 61 62 $this->customFieldmap = $this->createStataFieldmap($survey, $sLanguageCode, $oOptions); 63 } 64 65 66 /** 67 * @param string $content |
#1 |
+
–
/limeservice/instances/25/limesurvey/application/helpers/admin/exportresults_helper.php(108): STATAxmlWriter->init(SurveyObj, "de", FormattingOptions) 103 throw new Exception(sprintf('Writer for %s should implement IWriter', $sExportPlugin)); 104 } 105 106 $surveyDao = new SurveyDao(); 107 $survey = $surveyDao->loadSurveyById($iSurveyId, $sLanguageCode, $oOptions); 108 $writer->init($survey, $sLanguageCode, $oOptions); 109 110 $countResponsesCommand = $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses); 111 $countResponsesCommand->order = null; 112 $countResponsesCommand->select('count(*)'); 113 $responseCount = $countResponsesCommand->queryScalar(); |
#2 |
+
–
/limeservice/instances/25/limesurvey/application/controllers/admin/Export.php(359): ExportSurveyResultsService->exportResponses(289415, "de", "stataxml", FormattingOptions, ...) 354 } else { 355 $sFilter = ''; 356 } 357 358 viewHelper::disableHtmlLogging(); 359 $resultsService->exportResponses($iSurveyID, $explang, $sExportType, $options, $sFilter); 360 361 Yii::app()->end(); 362 } 363 364 /** |
#3 |
unknown(0): Export->exportresults()
|
#4 |
+
–
/limeservice/instances/25/limesurvey/third_party/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 } |
#5 |
+
–
/limeservice/instances/25/limesurvey/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(Export, ReflectionMethod, array("surveyid" => "289415", "sa" => "exportresults", "iSurveyId" => "289415", "iSurveyID" => "289415", ...)) 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 |
#6 |
+
–
/limeservice/instances/25/limesurvey/third_party/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("surveyid" => "289415", "sa" => "exportresults", "iSurveyId" => "289415", "iSurveyID" => "289415", ...)) 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; |
#7 |
+
–
/limeservice/instances/25/limesurvey/third_party/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(); |
#8 |
+
–
/limeservice/instances/25/limesurvey/third_party/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); |
#9 |
+
–
/limeservice/instances/25/limesurvey/application/controllers/AdminController.php(226): CController->run("export") 221 } 222 223 $this->runModuleController($action); 224 225 226 return parent::run($action); 227 } 228 229 /** 230 * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers. 231 * |
#10 |
+
–
/limeservice/instances/25/limesurvey/third_party/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))); |
#11 |
+
–
/limeservice/instances/25/limesurvey/third_party/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export/sa/exportresults") 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. |
#12 |
+
–
/limeservice/instances/25/limesurvey/third_party/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 /** |
#13 |
+
–
/limeservice/instances/25/limesurvey/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |