/mnt/data/shnoulle/nginx/www/master/application/models/Template.php(297)
285 public static function getTemplatePath($sTemplateName = "") 286 { 287 static $aTemplatePath = array(); 288 if (isset($aTemplatePath[$sTemplateName])) { 289 return $aTemplatePath[$sTemplateName]; 290 } 291 292 $oTemplate = self::model()->findByPk($sTemplateName); 293 294 if (self::isStandardTemplate($sTemplateName)) { 295 return $aTemplatePath[$sTemplateName] = Yii::app()->getConfig("standardthemerootdir").DIRECTORY_SEPARATOR.$oTemplate->folder; 296 } else { 297 return $aTemplatePath[$sTemplateName] = Yii::app()->getConfig("userthemerootdir").DIRECTORY_SEPARATOR.$oTemplate->folder; 298 } 299 } 300 301 /** 302 * This method construct a template object, having all the needed configuration datas. 303 * It checks if the required template is a core one or a user one. 304 * If it's a user template, it will check if it's an old 2.0x template to provide default configuration values corresponding to the old template system 305 * If it's not an old template, it will check if it has a configuration file to load its datas. 306 * If it's not the case (template probably doesn't exist), it will load the default template configuration 307 * TODO : more tests should be done, with a call to private function _is_valid_template(), testing not only if it has a config.xml, but also id this file is correct, if the files refered in css exist, etc. 308 * 309 * @param string $sTemplateName the name of the template to load. The string come from the template selector in survey settings
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1271): Template::getTemplatePath("inherit") 1266 */ 1267 private function _exportPrintableHtmls($iSurveyID, $readFile = true) 1268 { 1269 $oSurvey = Survey::model()->findByPk($iSurveyID); 1270 $assetsDir = substr(Template::getTemplateURL($oSurvey->template), 1); 1271 $fullAssetsDir = Template::getTemplatePath($oSurvey->template); 1272 $aLanguages = $oSurvey->getAllLanguages(); 1273 1274 Yii::import('application.helpers.common_helper', true); 1275 $zipdir = createRandomTempDir(); 1276 |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1094): export->_exportPrintableHtmls("484668") 1089 } elseif ($action == 'exportstructuretsv') { 1090 $this->_exporttsv($iSurveyID); 1091 } elseif ($action == "exportarchive") { 1092 $this->_exportarchive($iSurveyID); 1093 } elseif ($action == "exportprintables") { 1094 $this->_exportPrintableHtmls($iSurveyID); 1095 } 1096 } 1097 1098 /** 1099 * Return a list of queXML settings |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(42): export->_surveyexport("exportprintables", "484668") 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 /** |
#3 |
unknown(0): export->survey()
|
#4 |
+
–
/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 } |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(export, ReflectionMethod, array("action" => "exportprintables", "surveyid" => "484668", "sa" => "survey", "iSurveyId" => "484668", ...)) 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 |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("action" => "exportprintables", "surveyid" => "484668", "sa" => "survey", "iSurveyId" => "484668", ...)) 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; |
#7 |
+
–
/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(); |
#8 |
+
–
/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); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(165): CController->run("export") 160 } 161 162 $this->runModuleController($action); 163 164 165 return parent::run($action); 166 } 167 168 /** 169 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 170 */ |
#10 |
+
–
/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))); |
#11 |
+
–
/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. |
#12 |
+
–
/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 /** |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(195): CApplication->run() 190 require_once APPPATH . 'core/LSYii_Application' . EXT; 191 192 $config = require_once(APPPATH . 'config/internal' . EXT); 193 194 Yii::$enableIncludePath = false; 195 Yii::createApplication('LSYii_Application', $config)->run(); 196 197 /* End of file index.php */ 198 /* Location: ./index.php */ |