/media/www/limesurvey3/application/helpers/admin/exportresults_helper.php(109)
097 } 098 099 if (!($writer instanceof IWriter)) { 100 throw new Exception(sprintf('Writer for %s should implement IWriter', $sExportPlugin)); 101 } 102 103 $surveyDao = new SurveyDao(); 104 $survey = $surveyDao->loadSurveyById($iSurveyId, $sLanguageCode, $oOptions); 105 $writer->init($survey, $sLanguageCode, $oOptions); 106 107 $countResponsesCommand = $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses); 108 $countResponsesCommand->order = null; 109 $countResponsesCommand->select('count(*)'); 110 $reponsesCount = $countResponsesCommand->queryScalar(); 111 $maxRows = 100; 112 $maxPages = ceil($reponsesCount / $maxRows); 113 for ($i = 0; $i < $maxPages; $i++) { 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();
| #0 |
+
–
/media/www/limesurvey3/application/helpers/remotecontrol/remotecontrol_handle.php(3198): ExportSurveyResultsService->exportResponses("268599", "en", "json", FormattingOptions, ...) 3193 $oFormattingOptions->headingFormat = $sHeadingType; 3194 $oFormattingOptions->answerFormat = $sResponseType; 3195 $oFormattingOptions->output = 'file'; 3196 3197 $oExport = new ExportSurveyResultsService(); 3198 $sTempFile = $oExport->exportResponses($iSurveyID, $sLanguageCode, $sDocumentType, $oFormattingOptions, ''); 3199 return new BigFile($sTempFile, true, 'base64'); 3200 } 3201 3202 /** 3203 * Export token response in a survey. |
| #1 |
+
–
/media/www/limesurvey3/application/libraries/LSjsonRPCServer.php(36): remotecontrol_handle->export_responses("4XZSCbujaZPcd_zCKTq_6Po7KwK_BRgH", 268599, "json", "en", ...) 31 'result' => null, 32 'error' => sprintf('unable to decode malformed json') 33 ); 34 } else { 35 try { 36 $result = @call_user_func_array(array($object, $request['method']), $request['params']); 37 if ($result !== false) { 38 $response = array( 39 'id' => $request['id'], 40 'result' => $result, 41 'error' => null |
| #2 |
+
–
/media/www/limesurvey3/application/controllers/admin/remotecontrol.php(66): LSjsonRPCServer::handle(remotecontrol_handle) 61 Yii::app()->loadLibrary('LSjsonRPCServer'); 62 if (!isset($_SERVER['CONTENT_TYPE'])) { 63 $serverContentType = explode(';', $_SERVER['HTTP_CONTENT_TYPE']); 64 $_SERVER['CONTENT_TYPE'] = reset($serverContentType); 65 } 66 LSjsonRPCServer::handle($oHandler); 67 } 68 foreach (App()->log->routes as $route) { 69 $route->enabled = $route->enabled && !($route instanceof CWebLogRoute); 70 } 71 Yii::app()->session->destroy(); |
| #3 |
unknown(0): remotecontrol->run()
|
| #4 |
+
–
/media/www/limesurvey3/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(remotecontrol, 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 |
+
–
/media/www/limesurvey3/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(remotecontrol, ReflectionMethod, array()) 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 |
| #6 |
+
–
/media/www/limesurvey3/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array()) 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 |
+
–
/media/www/limesurvey3/framework/web/CController.php(286): CController->runAction(remotecontrol) 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 |
+
–
/media/www/limesurvey3/framework/web/CController.php(265): CController->runActionWithFilters(remotecontrol, 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 |
+
–
/media/www/limesurvey3/application/controllers/AdminController.php(202): CController->run("remotecontrol") 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 * |
| #10 |
+
–
/media/www/limesurvey3/framework/web/CWebApplication.php(282): AdminController->run("remotecontrol") 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 |
+
–
/media/www/limesurvey3/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/remotecontrol") 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 |
+
–
/media/www/limesurvey3/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 |
+
–
/media/www/limesurvey3/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 */ |