/media/shnoulle/data/webdev/master/vendor/mk-j/php_xlsxwriter/xlsxwriter.class.php(760)
748 static $goodchars = ' '; 749 $sheetname = strtr($sheetname, $badchars, $goodchars); 750 $sheetname = function_exists('mb_substr') ? mb_substr($sheetname, 0, 31) : substr($sheetname, 0, 31); 751 $sheetname = trim(trim(trim($sheetname),"'"));//trim before and after trimming single quotes 752 return !empty($sheetname) ? $sheetname : 'Sheet'.((rand()%900)+100); 753 } 754 //------------------------------------------------------------------ 755 public static function xmlspecialchars($val) 756 { 757 //note, badchars does not include \t\n\r (\x09\x0a\x0d) 758 static $badchars = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0b\x0c\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x7f"; 759 static $goodchars = " "; 760 return strtr(htmlspecialchars($val, ENT_QUOTES | ENT_XML1), $badchars, $goodchars);//strtr appears to be faster than str_replace 761 } 762 //------------------------------------------------------------------ 763 public static function array_first_key(array $arr) 764 { 765 reset($arr); 766 $first_key = key($arr); 767 return $first_key; 768 } 769 //------------------------------------------------------------------ 770 private static function determineNumberFormatType($num_format) 771 { 772 $num_format = preg_replace("/\[(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow)\]/i", "", $num_format);
#0 |
+
–
/media/shnoulle/data/webdev/master/vendor/mk-j/php_xlsxwriter/xlsxwriter.class.php(760): htmlspecialchars(null, 19) 755 public static function xmlspecialchars($val) 756 { 757 //note, badchars does not include \t\n\r (\x09\x0a\x0d) 758 static $badchars = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0b\x0c\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x7f"; 759 static $goodchars = " "; 760 return strtr(htmlspecialchars($val, ENT_QUOTES | ENT_XML1), $badchars, $goodchars);//strtr appears to be faster than str_replace 761 } 762 //------------------------------------------------------------------ 763 public static function array_first_key(array $arr) 764 { 765 reset($arr); |
#1 |
+
–
/media/shnoulle/data/webdev/master/vendor/mk-j/php_xlsxwriter/xlsxwriter.class.php(613): XLSXWriter::xmlspecialchars(null) 608 { 609 $app_xml=""; 610 $app_xml.='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'."\n"; 611 $app_xml.='<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">'; 612 $app_xml.='<TotalTime>0</TotalTime>'; 613 $app_xml.='<Company>'.self::xmlspecialchars($this->company).'</Company>'; 614 $app_xml.='</Properties>'; 615 return $app_xml; 616 } 617 618 protected function buildCoreXML() |
#2 |
+
–
/media/shnoulle/data/webdev/master/vendor/mk-j/php_xlsxwriter/xlsxwriter.class.php(98): XLSXWriter->buildAppXML() 093 $zip = new ZipArchive(); 094 if (empty($this->sheets)) { self::log("Error in ".__CLASS__."::".__FUNCTION__.", no worksheets defined."); return; } 095 if (!$zip->open($filename, ZipArchive::CREATE)) { self::log("Error in ".__CLASS__."::".__FUNCTION__.", unable to create zip."); return; } 096 097 $zip->addEmptyDir("docProps/"); 098 $zip->addFromString("docProps/app.xml" , self::buildAppXML() ); 099 $zip->addFromString("docProps/core.xml", self::buildCoreXML()); 100 101 $zip->addEmptyDir("_rels/"); 102 $zip->addFromString("_rels/.rels", self::buildRelationshipsXML()); 103 |
#3 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/export/ExcelWriter.php(57): XLSXWriter->writeToFile("/media/shnoulle/data/webdev/master/tmp/4rkyy2rfb4bq9zkfrwgennhs6...") 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); |
#4 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/exportresults_helper.php(121): ExcelWriter->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 } |
#5 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/admin/Export.php(352): ExportSurveyResultsService->exportResponses(224146, "en", "xls", FormattingOptions, ...) 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 /** |
#6 |
unknown(0): Export->exportresults()
|
#7 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(114): ReflectionMethod->invokeArgs(Export, array()) 109 elseif($param->isDefaultValueAvailable()) 110 $ps[]=$param->getDefaultValue(); 111 else 112 return false; 113 } 114 $method->invokeArgs($object,$ps); 115 return true; 116 } 117 } |
#8 |
+
–
/media/shnoulle/data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(Export,
ReflectionMethod, array("r" =>
"admin/export/sa/exportresults/surveyid/224146", "sa" =>
"exportresults", "surveyid" => 224146, "iSurveyId" => 224146,
...)) 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 |
#9 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("r"
=> "admin/export/sa/exportresults/surveyid/224146", "sa" =>
"exportresults", "surveyid" => 224146, "iSurveyId" => 224146,
...)) 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; |
#10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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(); |
#11 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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); |
#12 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/AdminController.php(202): CController->run("export") 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 * |
#13 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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))); |
#14 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export/sa/exportresults/surveyid/224146") 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. |
#15 |
+
–
/media/shnoulle/data/webdev/master/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 /** |
#16 |
+
–
/media/shnoulle/data/webdev/master/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |