/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/printablesurvey.php(470)
458 459 $sExplanation .= " <span class='scenario-at-separator'>" . gT("at question") . "</span> '" . " [" . $subresult['title'] . "]' (" . strip_tags($subresult->questionl10ns[$sLanguageCode]->question) . "$answer_section)"; 460 } else { 461 $sExplanation .= " " . $distinctrow['value']; 462 } 463 //$distinctrow 464 $x++; 465 } 466 $s++; 467 } 468 469 $qinfo = LimeExpressionManager::GetQuestionStatus($arQuestion['qid']); 470 $relevance = trim($qinfo['info']['relevance']); 471 $sEquation = $qinfo['relEqn']; 472 473 if (trim($relevance) != '' && trim($relevance) != '1') { 474 if (isset($qidattributes['printable_help'][$sLanguageCode]) && $qidattributes['printable_help'][$sLanguageCode] != '') { 475 $sExplanation = $qidattributes['printable_help'][$sLanguageCode]; 476 } elseif ($sExplanation == '') { 477 // There is only a relevance equation without conditions 478 $sExplanation = $sEquation; 479 // No need to show it twice 480 $sEquation = ' '; 481 } 482 $sExplanation = "<div class='strong'>" . gT('Only answer this question if the following conditions are met:') . "</div> " . $sExplanation;
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1319): printablesurvey->index("272833", "en", true) 1314 */ 1315 private function _exportPrintableHtml($oSurvey, $language, $tempdir) 1316 { 1317 $printableSurvey = new printablesurvey(); 1318 1319 $response = $printableSurvey->index($oSurvey->primaryKey, $language, true); 1320 1321 $file = "$tempdir/questionnaire_{$oSurvey->getPrimaryKey()}_{$language}.html"; 1322 1323 // remove first slash to get local path for local storage for template assets 1324 $templateDir = Template::getTemplateURL($oSurvey->templateEffectiveName); |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1287): export->_exportPrintableHtml(Survey, "en", "/mnt/data/shnoulle/nginx/www/master/tmp") 1282 //set session for replacement helper if session not set 1283 if (!isset($_SESSION['LEMsid'])) { 1284 $_SESSION['LEMsid'] = $oSurvey->getPrimaryKey(); 1285 } 1286 1287 $file = $this->_exportPrintableHtml($oSurvey, $language, $tempdir); 1288 $z->add($file, PCLZIP_OPT_REMOVE_PATH, $tempdir); 1289 unlink($file); 1290 } 1291 // set language back (get's changed in loop above) 1292 Yii::app()->language = $siteLanguage; |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1086): export->_exportPrintableHtmls("272833") 1081 } elseif ($action == 'exportstructuretsv') { 1082 $this->_exporttsv($iSurveyID); 1083 } elseif ($action == "exportarchive") { 1084 $this->_exportarchive($iSurveyID); 1085 } elseif ($action == "exportprintables") { 1086 $this->_exportPrintableHtmls($iSurveyID); 1087 } 1088 } 1089 1090 /** 1091 * Return a list of queXML settings |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(42): export->_surveyexport("exportprintables", "272833") 37 { 38 $action = Yii::app()->request->getParam('action'); 39 $iSurveyID = sanitize_int(Yii::app()->request->getParam('surveyid')); 40 41 if (Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent', 'export')) { 42 $this->_surveyexport($action, $iSurveyID); 43 return; 44 } 45 } 46 47 /** |
#4 |
unknown(0): export->survey()
|
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 } |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(export,
ReflectionMethod, array("action" => "exportprintables", "surveyid"
=> "272833", "sa" => "survey", "iSurveyId" => "272833", ...))
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 |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("action" => "exportprintables", "surveyid" => "272833", "sa" => "survey", "iSurveyId" => "272833", ...)) 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/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(); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/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); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(180): CController->run("export") 175 } 176 177 $this->runModuleController($action); 178 179 180 return parent::run($action); 181 } 182 183 /** 184 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 185 * |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/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))); |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export/sa/survey") 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(182): CApplication->run() 177 require_once APPPATH . 'core/LSYii_Application' . EXT; 178 179 $config = require_once(APPPATH . 'config/internal' . EXT); 180 181 Yii::$enableIncludePath = false; 182 Yii::createApplication('LSYii_Application', $config)->run(); 183 184 /* End of file index.php */ 185 /* Location: ./index.php */ |