/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/libraries/admin/pear/OLE/PPS/File.php(88)
076 } 077 return false; 078 } 079 080 /** 081 * Initialization method. Has to be called right after OLE_PPS_File(). 082 * 083 * @access public 084 * @return mixed true on success. PEAR_Error on failure 085 */ 086 function init() 087 { 088 $this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_File"); 089 $fh = @fopen($this->_tmp_filename, "w+b"); 090 if ($fh == false) { 091 return $this->raiseError("Can't create temporary file"); 092 } 093 $this->_PPS_FILE = $fh; 094 if ($this->_PPS_FILE) { 095 fseek($this->_PPS_FILE, 0); 096 } 097 } 098 099 /** 100 * Append data to PPS
#0 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/libraries/admin/pear/OLE/PPS/File.php(88): tempnam("", "OLE_PPS_File") 83 * @access public 84 * @return mixed true on success. PEAR_Error on failure 85 */ 86 function init() 87 { 88 $this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_File"); 89 $fh = @fopen($this->_tmp_filename, "w+b"); 90 if ($fh == false) { 91 return $this->raiseError("Can't create temporary file"); 92 } 93 $this->_PPS_FILE = $fh; |
#1 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/libraries/admin/pear/Spreadsheet/Excel/Writer/Workbook.php(592): OLE_PPS_File->init() 587 { 588 $OLE = new OLE_PPS_File(OLE::Asc2Ucs('Book')); 589 if ($this->_tmp_dir != '') { 590 $OLE->setTempDir($this->_tmp_dir); 591 } 592 $res = $OLE->init(); 593 if ($this->isError($res)) { 594 return $this->raiseError("OLE Error: ".$res->getMessage()); 595 } 596 $OLE->append($this->_data); 597 |
#2 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/libraries/admin/pear/Spreadsheet/Excel/Writer/Workbook.php(557): Spreadsheet_Excel_Writer_Workbook->_storeOLEFile() 552 553 // End Workbook globals 554 $this->_storeEof(); 555 556 // Store the workbook in an OLE container 557 $res = $this->_storeOLEFile(); 558 if ($this->isError($res)) { 559 return $this->raiseError($res->getMessage()); 560 } 561 return true; 562 } |
#3 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/libraries/admin/pear/Spreadsheet/Excel/Writer/Workbook.php(227): Spreadsheet_Excel_Writer_Workbook->_storeWorkbook() 222 function close() 223 { 224 if ($this->_fileclosed) { // Prevent close() from being called twice. 225 return true; 226 } 227 $res = $this->_storeWorkbook(); 228 if ($this->isError($res)) { 229 return $this->raiseError($res->getMessage()); 230 } 231 $this->_fileclosed = 1; 232 return true; |
#4 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/helpers/admin/exportresults_helper.php(1574): Spreadsheet_Excel_Writer_Workbook->close() 1569 return $value; 1570 } 1571 1572 public function close() 1573 { 1574 $this->workbook->close(); 1575 return $this->workbook; 1576 } 1577 } 1578 1579 class PdfWriter extends Writer |
#5 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/helpers/admin/exportresults_helper.php(130): ExcelWriter->close() 125 $survey = $surveyDao->loadSurveyById($iSurveyId); 126 $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord); 127 128 $writer->write($survey, $sLanguageCode, $oOptions); 129 130 $output = $writer->close(); 131 132 if (($oOptions->format == 'csv' || $oOptions->format == 'doc') && $sOutputStyle='display') 133 { 134 echo $output; 135 } |
#6 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/controllers/admin/export.php(308): ExportSurveyResultsService->exportSurvey("437312", "fr", FormattingOptions) 303 } 304 } 305 } 306 307 $resultsService = new ExportSurveyResultsService(); 308 $resultsService->exportSurvey($iSurveyID, $explang, $options); 309 310 exit; 311 } 312 313 /* |
#7 |
unknown(0): export->exportresults()
|
#8 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(export, array()) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#9 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/core/Survey_Common_Action.php(82): CAction->runWithParamsInternal(export, ReflectionMethod, array("surveyid" => "437312", "sa" => "exportresults", "iSurveyId" => "437312", "iSurveyID" => "437312")) 77 $oMethod = new ReflectionMethod($this, $sDefault); 78 } 79 80 // We're all good to go, let's execute it 81 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 82 return parent::runWithParamsInternal($this, $oMethod, $params); 83 } 84 85 /** 86 * Some functions have different parameters, which are just an alias of the 87 * usual parameters we're getting in the url. This function just populates |
#10 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/web/CController.php(309): Survey_Common_Action->runWithParams(array("surveyid" => "437312", "sa" => "exportresults")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#11 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/web/CController.php(287): CController->runAction(export) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#12 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/web/CController.php(266): CController->runActionWithFilters(export, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#13 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/application/controllers/AdminController.php(158): CController->run("export") 153 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri; 154 155 $this->redirect($this->createUrl('/admin/authentication/login')); 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#14 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/web/CWebApplication.php(276): AdminController->run("export") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/web/CWebApplication.php(135): CWebApplication->runController("admin/export/sa/exportresults") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#16 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#17 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/survey/index.php(171): CApplication->run() 166 * 167 */ 168 require_once BASEPATH . 'yii' . EXT; 169 require_once APPPATH . 'core/LSYii_Application' . EXT; 170 171 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run(); 172 173 /* End of file index.php */ 174 /* Location: ./index.php */ |