/home/surveyizsvenezie/public_html/application/helpers/admin/export/ExcelWriter.php(59)
47 { 48 if (!$this->hasOutputHeader) { 49 $this->workbook->writeSheetRow($this->currentSheet, $headers); 50 $this->hasOutputHeader = true; 51 } 52 $this->workbook->writeSheetRow($this->currentSheet, $values); 53 } 54 55 public function close() 56 { 57 $this->workbook->writeToFile($this->filename); 58 if ($this->forceDownload) { 59 header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); 60 header("Content-Disposition: attachment; filename=\"{$this->webfilename}.xlsx\""); 61 header('Content-Length: '.filesize($this->filename)); 62 readfile($this->filename); 63 } 64 return $this->workbook; 65 } 66 }
| #0 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/application/helpers/admin/export/ExcelWriter.php(59): header("Content-Type: application/vnd.openxmlformats-officedocument.spre...")				54 55 public function close() 56 { 57 $this->workbook->writeToFile($this->filename); 58 if ($this->forceDownload) { 59 header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); 60 header("Content-Disposition: attachment; filename=\"{$this->webfilename}.xlsx\""); 61 header('Content-Length: '.filesize($this->filename)); 62 readfile($this->filename); 63 } 64 return $this->workbook;  | 
		
| #1 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/application/helpers/admin/exportresults_helper.php(107): ExcelWriter->close()				102 $survey = $surveyDao->loadSurveyById($iSurveyId, $sLanguageCode, $oOptions); 103 $writer->init($survey, $sLanguageCode, $oOptions); 104 105 $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses); 106 $writer->write($survey, $sLanguageCode, $oOptions, true); 107 $result = $writer->close(); 108 109 // Close resultset if needed 110 if ($survey->responses instanceof CDbDataReader) { 111 $survey->responses->close(); 112 }  | 
		
| #2 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/application/controllers/admin/export.php(337): ExportSurveyResultsService->exportResponses("814439", "it", "xls", FormattingOptions, ...)				332 } else { 333 $sFilter = ''; 334 } 335 336 viewHelper::disableHtmlLogging(); 337 $resultsService->exportResponses($iSurveyID, $explang, $sExportType, $options, $sFilter); 338 339 Yii::app()->end(); 340 } 341 342 /*  | 
		
| #3 | 
				 
										 unknown(0): export->exportresults()				 
							 | 
		
| #4 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(export, array())				104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 }  | 
		
| #5 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(export, ReflectionMethod, array("surveyid" => "814439", "sa" => "exportresults", "iSurveyId" => "814439", "iSurveyID" => "814439", ...))				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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "814439", "sa" => "exportresults", "iSurveyId" => "814439", "iSurveyID" => "814439", ...))				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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/application/controllers/AdminController.php(165): CController->run("export")				160 } 161 162 $this->runModuleController($action); 163 164 165 return parent::run($action); 166 } 167 168 /** 169 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 170 */  | 
		
| #10 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/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 | 
				 + 
						– 
										 /home/surveyizsvenezie/public_html/index.php(195): CApplication->run()				190 require_once APPPATH . 'core/LSYii_Application' . EXT; 191 192 $config = require_once(APPPATH . 'config/internal' . EXT); 193 194 Yii::$enableIncludePath = false; 195 Yii::createApplication('LSYii_Application', $config)->run(); 196 197 /* End of file index.php */ 198 /* Location: ./index.php */  |