/var/www/html/lime_app/limesurvey_230116/application/core/plugins/ExportSTATAxml/STATAxmlWriter.php(404)
392 '1', 393 '0', 394 '-1' 395 ), $response); 396 break; 397 case Question::QT_D_DATE: //replace in customResponsemap: date/time as string with STATA-timestamp 398 $response = strtotime($response . ' GMT') * 1000 + 315619200000; // convert seconds since 1970 (UNIX) to milliseconds since 1960 (STATA) 399 break; 400 case Question::QT_L_LIST: 401 // For radio lists, user wants code, not label 402 // TODO: We could skip this loop if we had answer code 403 foreach ($this->customFieldmap['answers'][$iQID][$iScaleID] as $answer) { 404 if ($answer['answer'] == $response) { 405 $response = $answer['code']; 406 break; 407 } 408 } 409 break; 410 } 411 412 /* look at each of the responses and determine STATA data type and format of the respective variables 413 datatypes coded as follows: 414 1="" 415 2=byte 416 3=int
#0 |
+
–
/var/www/html/lime_app/limesurvey_230116/application/core/plugins/ExportSTATAxml/STATAxmlWriter.php(528): STATAxmlWriter->updateCustomresponsemap() 523 * - value labels 524 */ 525 public function close() 526 { 527 528 $this->updateCustomresponsemap(); 529 530 $xml = new XMLWriter(); 531 $xml->openMemory(); 532 $xml->setIndent(true); 533 |
#1 |
+
–
/var/www/html/lime_app/limesurvey_230116/application/helpers/admin/exportresults_helper.php(121): STATAxmlWriter->close() 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) { 125 $survey->responses->close(); 126 } |
#2 |
+
–
/var/www/html/lime_app/limesurvey_230116/application/controllers/admin/Export.php(352): ExportSurveyResultsService->exportResponses() 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 /** |
#3 |
unknown(0): Export->exportresults()
|
#4 |
+
–
/var/www/html/lime_app/limesurvey_230116/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/application/controllers/AdminController.php(202): CController->run() 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 * |
#10 |
+
–
/var/www/html/lime_app/limesurvey_230116/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController() 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 |
+
–
/var/www/html/lime_app/limesurvey_230116/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 /** |
#13 |
+
–
/var/www/html/lime_app/limesurvey_230116/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 */ |