/home/lyceevinry/www/lime/application/helpers/common_helper.php(1756)
1744 1745 1746 /** 1747 * This function generates an array containing the fieldcode, and matching data in the same order as the activate script 1748 * 1749 * @param string $surveyid The Survey ID 1750 * @param mixed $style 'short' (default) or 'full' - full creates extra information like default values 1751 * @param mixed $force_refresh - Forces to really refresh the array, not just take the session copy 1752 * @param int $questionid Limit to a certain qid only (for question preview) - default is false 1753 * @param string $sQuestionLanguage The language to use 1754 * @return array 1755 */ 1756 function createFieldMap($surveyid, $style='short', $force_refresh=false, $questionid=false, $sLanguage, &$aDuplicateQIDs=array()) { 1757 1758 $sLanguage = sanitize_languagecode($sLanguage); 1759 $surveyid = sanitize_int($surveyid); 1760 1761 //checks to see if fieldmap has already been built for this page. 1762 if (isset(Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]) && !$force_refresh && $questionid == false) { 1763 return Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]; 1764 } 1765 $sOldLanguage=App()->language; 1766 App()->setLanguage($sLanguage); 1767 $fieldmap["id"]=array("fieldname"=>"id", 'sid'=>$surveyid, 'type'=>"id", "gid"=>"", "qid"=>"", "aid"=>""); 1768 if ($style == "full")
#0 |
+
–
/home/lyceevinry/www/lime/framework/YiiBase.php(320): require() 315 if($isClass) 316 { 317 if($forceInclude) 318 { 319 if(is_file($path.'.php')) 320 require($path.'.php'); 321 else 322 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias))); 323 self::$_imports[$alias]=$className; 324 } 325 else |
#1 |
+
–
/home/lyceevinry/www/lime/application/core/LSYii_Application.php(96): YiiBase::import("application.helpers.common_helper", true) 091 * @param string $helper 092 * @return void 093 */ 094 public function loadHelper($helper) 095 { 096 Yii::import('application.helpers.' . $helper . '_helper', true); 097 } 098 099 /** 100 * Loads a library 101 * |
#2 |
+
–
/home/lyceevinry/www/lime/application/core/LSYii_Controller.php(69): LSYii_Application->loadHelper("common") 64 * @param string $helper 65 * @return void 66 */ 67 public function loadHelper($helper) 68 { 69 Yii::app()->loadHelper($helper); 70 } 71 72 /** 73 * Loads a library 74 * |
#3 |
+
–
/home/lyceevinry/www/lime/application/core/LSYii_Controller.php(38): LSYii_Controller->loadHelper("common") 33 $this->_checkInstallation(); 34 35 Yii::app()->session->init(); 36 $this->loadLibrary('LS.LS'); 37 $this->loadHelper('globalsettings'); 38 $this->loadHelper('common'); 39 $this->loadHelper('expressions.em_manager'); 40 $this->loadHelper('replacements'); 41 $this->_init(); 42 } 43 |
#4 |
+
–
/home/lyceevinry/www/lime/framework/web/CWebApplication.php(359): LSYii_Controller->__construct("survey", null) 354 require($classFile); 355 if(class_exists($className,false) && is_subclass_of($className,'CController')) 356 { 357 $id[0]=strtolower($id[0]); 358 return array( 359 new $className($controllerID.$id,$owner===$this?null:$owner), 360 $this->parseActionParams($route), 361 ); 362 } 363 return null; 364 } |
#5 |
+
–
/home/lyceevinry/www/lime/framework/web/CWebApplication.php(276): CWebApplication->createController("index/sid/579236/") 271 * @param string $route the route of the current request. See {@link createController} for more details. 272 * @throws CHttpException if the controller could not be created. 273 */ 274 public function runController($route) 275 { 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); |
#6 |
+
–
/home/lyceevinry/www/lime/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/579236") 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. |
#7 |
+
–
/home/lyceevinry/www/lime/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#8 |
+
–
/home/lyceevinry/www/lime/index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |