/var/www/limesurvey/application/third_party/pchart/pData.class.php(129)
117 } 118 } 119 120 function AddPoint($Value,$Serie="Serie1",$Description="") 121 { 122 if (is_array($Value) && count($Value) == 1) 123 $Value = $Value[0]; 124 125 $ID = 0; 126 for($i=0;$i<=count($this->Data);$i++) 127 { if( isset($this->Data[$i]) && isset($this->Data[$i][$Serie])) { $ID = $i+1; } } 128 129 if ( count($Value) == 1 ) 130 { 131 $this->Data[$ID][$Serie] = $Value; 132 if ( $Description != "" ) 133 $this->Data[$ID]["Name"] = $Description; 134 elseif (!isset($this->Data[$ID]["Name"])) 135 $this->Data[$ID]["Name"] = $ID; 136 } 137 else 138 { 139 foreach($Value as $key => $Val) 140 { 141 $this->Data[$ID][$Serie] = $Val;
#0 |
+
–
/var/www/limesurvey/application/helpers/admin/statistics_helper.php(120): pData->AddPoint("6", "Serie0") 115 // Bar chart 116 $DataSet = new pData; 117 $counter = 0; 118 $maxyvalue = 0; 119 foreach ($grawdata as $datapoint) { 120 $DataSet->AddPoint(array($datapoint), 'Serie'.$counter); 121 $DataSet->AddSerie("Serie".$counter); 122 123 $counter++; 124 if ($datapoint > $maxyvalue) { 125 $maxyvalue = $datapoint; |
#1 |
+
–
/var/www/limesurvey/application/helpers/admin/statistics_helper.php(3295): createChart("51", "297387", false, array("1", "2", "3", "4", ...), ...) 3290 if (count($lbl) == count($outputs['alist']) + 1) { 3291 end($lbl); 3292 $graphLbl[] = key($lbl); 3293 reset($lbl); 3294 } 3295 $cachefilename = createChart($qqid, $qsid, $bShowPieChart, $graphLbl, $gdata, $grawdata, $MyCache, $sLanguage, $outputs['qtype']); 3296 } 3297 3298 if ($cachefilename || $outputType == 'html') { 3299 // Add the image only if constructed 3300 //introduce new counter |
#2 |
+
–
/var/www/limesurvey/application/helpers/admin/statistics_helper.php(4060): statistics_helper->displayResults(array("alist" => array(array("1", "1"), array("2", "2"), array("3", "3"), array("4", "4"), ...), "qtitle" => "P1", "qquestion" => "¿Le ha sorprendido el destino gratamente?", "qtype" => "5", ...), "12", "297387X7X51", "pdf", ...) 4055 $outputs = $this->buildOutputList($rt, $language, $surveyid, $outputType, $sql, $sLanguageCode); 4056 $sOutputHTML .= $outputs['statisticsoutput']; 4057 //2. Collect and Display results ####################################################################### 4058 if (isset($outputs['alist']) && $outputs['alist']) { 4059 //Make sure there really is an answerlist, and if so: 4060 $display = $this->displayResults($outputs, $results, $rt, $outputType, $surveyid, $sql, $usegraph, $browse, $sLanguageCode); 4061 $sOutputHTML .= $display['statisticsoutput']; 4062 $aStatisticsData = array_merge($aStatisticsData, $display['astatdata']); 4063 } //end if -> collect and display results 4064 4065 |
#3 |
+
–
/var/www/limesurvey/application/controllers/admin/statistics.php(471): statistics_helper->generate_statistics("297387", array("datestampE", "datestampG", "datestampL", "idG", ...), array("datestampE", "datestampG", "datestampL", "idG", ...), 1, ...) 466 switch ($outputType) { 467 case 'html': 468 $statisticsoutput .= $helper->generate_html_chartjs_statistics($surveyid, $summary, $summary, $usegraph, $outputType, 'DD', $statlang); 469 break; 470 case 'pdf': 471 $helper->generate_statistics($surveyid, $summary, $summary, $usegraph, $outputType, 'D', $statlang); 472 exit; 473 break; 474 case 'xls': 475 $helper->generate_statistics($surveyid, $summary, $summary, $usegraph, $outputType, 'DD', $statlang); 476 exit; |
#4 |
unknown(0): statistics->run("297387", null)
|
#5 |
+
–
/var/www/limesurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(statistics, array("297387", null)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#6 |
+
–
/var/www/limesurvey/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(statistics, ReflectionMethod, array("surveyid" => "297387", "sa" => "index", "iSurveyId" => "297387", "iSurveyID" => "297387", ...)) 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 |
#7 |
+
–
/var/www/limesurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "297387", "sa" => "index", "iSurveyId" => "297387", "iSurveyID" => "297387", ...)) 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; |
#8 |
+
–
/var/www/limesurvey/framework/web/CController.php(286): CController->runAction(statistics) 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(); |
#9 |
+
–
/var/www/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(statistics, 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); |
#10 |
+
–
/var/www/limesurvey/application/controllers/AdminController.php(158): CController->run("statistics") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#11 |
+
–
/var/www/limesurvey/framework/web/CWebApplication.php(282): AdminController->run("statistics") 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))); |
#12 |
+
–
/var/www/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/statistics/sa/index") 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. |
#13 |
+
–
/var/www/limesurvey/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 /** |
#14 |
+
–
/var/www/limesurvey/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |