/var/www/restricted/survey/application/third_party/xlsx_writer/xlsxwriter.class.php(53)
41 public function __destruct() 42 { 43 if (!empty($this->temp_files)) { 44 foreach($this->temp_files as $temp_file) { 45 @unlink($temp_file); 46 } 47 } 48 } 49 50 protected function tempFilename() 51 { 52 $tempdir = !empty($this->tempdir) ? $this->tempdir : sys_get_temp_dir(); 53 $filename = tempnam($tempdir, "xlsx_writer_"); 54 $this->temp_files[] = $filename; 55 return $filename; 56 } 57 58 public function writeToStdOut() 59 { 60 $temp_file = $this->tempFilename(); 61 self::writeToFile($temp_file); 62 readfile($temp_file); 63 } 64 65 public function writeToString()
#0 |
+
–
/var/www/restricted/survey/application/third_party/xlsx_writer/xlsxwriter.class.php(53): tempnam("/tmp", "xlsx_writer_") 48 } 49 50 protected function tempFilename() 51 { 52 $tempdir = !empty($this->tempdir) ? $this->tempdir : sys_get_temp_dir(); 53 $filename = tempnam($tempdir, "xlsx_writer_"); 54 $this->temp_files[] = $filename; 55 return $filename; 56 } 57 58 public function writeToStdOut() |
#1 |
+
–
/var/www/restricted/survey/application/third_party/xlsx_writer/xlsxwriter.class.php(117): XLSXWriter->tempFilename() 112 { 113 //if already initialized 114 if ($this->current_sheet==$sheet_name || isset($this->sheets[$sheet_name])) 115 return; 116 117 $sheet_filename = $this->tempFilename(); 118 $sheet_xmlname = 'sheet' . (count($this->sheets) + 1).".xml"; 119 $this->sheets[$sheet_name] = (object)array( 120 'filename' => $sheet_filename, 121 'sheetname' => $sheet_name, 122 'xmlname' => $sheet_xmlname, |
#2 |
+
–
/var/www/restricted/survey/application/third_party/xlsx_writer/xlsxwriter.class.php(205): XLSXWriter->initializeSheet("OLD SG GTS 2016") 200 public function writeSheetRow($sheet_name, array $row, $style=null) 201 { 202 if (empty($sheet_name) || empty($row)) 203 return; 204 205 self::initializeSheet($sheet_name); 206 $sheet = &$this->sheets[$sheet_name]; 207 if (empty($sheet->columns)) 208 { 209 $sheet->columns = $this->initializeColumnTypes( array_fill($from=0, $until=count($row), 'GENERAL') );//will map to n_auto 210 } |
#3 |
+
–
/var/www/restricted/survey/application/helpers/admin/export/ExcelWriter.php(62): XLSXWriter->writeSheetRow("OLD SG GTS 2016", array("Response ID", "Date submitted", "Last page", "Start language", ...)) 57 protected function outputRecord($headers, $values, FormattingOptions $oOptions) 58 { 59 if (!$this->hasOutputHeader) 60 { 61 $columnCounter = 0; 62 $this->workbook->writeSheetRow($this->currentSheet, $headers ); 63 $this->hasOutputHeader = true; 64 } 65 $this->workbook->writeSheetRow($this->currentSheet, $values ); 66 } 67 |
#4 |
+
–
/var/www/restricted/survey/application/helpers/admin/export/Writer.php(339): ExcelWriter->outputRecord(array("Response ID", "Date submitted", "Last page", "Start language", ...), array("1637", "2016-05-23 12:12:30", "1", "en", ...), FormattingOptions) 334 $elementArray[]=$value; 335 } 336 } 337 if ($oOptions->output=='display') 338 { 339 $this->outputRecord($headers, $elementArray, $oOptions); 340 } else { 341 $sFile.=$this->outputRecord($headers, $elementArray, $oOptions); 342 } 343 } 344 return $sFile; |
#5 |
+
–
/var/www/restricted/survey/application/helpers/admin/exportresults_helper.php(111): Writer->write(SurveyObj, "en", FormattingOptions, true) 106 $survey = $surveyDao->loadSurveyById($iSurveyId, $sLanguageCode); 107 $writer->init($survey, $sLanguageCode, $oOptions); 108 109 $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState); 110 111 $writer->write($survey, $sLanguageCode, $oOptions,true); 112 $result = $writer->close(); 113 114 // Close resultset if needed 115 if ($survey->responses instanceof CDbDataReader) { 116 $survey->responses->close(); |
#6 |
+
–
/var/www/restricted/survey/application/controllers/admin/export.php(315): ExportSurveyResultsService->exportSurvey("86654", "en", "xls", FormattingOptions, ...) 310 } 311 else 312 $sFilter=''; 313 314 viewHelper::disableHtmlLogging(); 315 $resultsService->exportSurvey($iSurveyID, $explang, $sExportType, $options, $sFilter); 316 317 exit; 318 } 319 320 /* |
#7 |
unknown(0): export->exportresults()
|
#8 |
+
–
/var/www/restricted/survey/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 } |
#9 |
+
–
/var/www/restricted/survey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(export, ReflectionMethod, array("sa" => "exportresults", "surveyid" => "86654", "statfilter" => "", "iSurveyId" => "86654", ...)) 094 $oMethod = new ReflectionMethod($this, $sDefault); 095 } 096 097 // We're all good to go, let's execute it 098 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 099 return parent::runWithParamsInternal($this, $oMethod, $params); 100 } 101 102 /** 103 * Some functions have different parameters, which are just an alias of the 104 * usual parameters we're getting in the url. This function just populates |
#10 |
+
–
/var/www/restricted/survey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "exportresults", "surveyid" => "86654", "statfilter" => "")) 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; |
#11 |
+
–
/var/www/restricted/survey/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(); |
#12 |
+
–
/var/www/restricted/survey/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); |
#13 |
+
–
/var/www/restricted/survey/application/controllers/AdminController.php(159): CController->run("export") 154 $this->redirect(array('/admin/authentication/sa/login')); 155 } 156 157 } 158 159 return parent::run($action); 160 } 161 162 /** 163 * Routes all the actions to their respective places 164 * |
#14 |
+
–
/var/www/restricted/survey/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))); |
#15 |
+
–
/var/www/restricted/survey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export") 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. |
#16 |
+
–
/var/www/restricted/survey/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#17 |
+
–
/var/www/restricted/survey/index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |