/data/webdev/mastervanilla/application/helpers/common_helper.php(1293)
1281 * @return array 1282 */ 1283 function createFieldMap($survey, $style = 'short', $force_refresh = false, $questionid = false, $sLanguage = '', &$aDuplicateQIDs = array()) 1284 { 1285 1286 $sLanguage = sanitize_languagecode($sLanguage); 1287 $surveyid = $survey->sid; 1288 //checks to see if fieldmap has already been built for this page. 1289 if (isset(Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]) && !$force_refresh && $questionid === false) { 1290 return Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]; 1291 } 1292 /* Check if $sLanguage is a survey valid language (else $fieldmap is empty) */ 1293 if ($sLanguage == '' || !in_array($sLanguage, $survey->allLanguages)) { 1294 $sLanguage = $survey->language; 1295 } 1296 $fieldmap = []; 1297 $fieldmap["id"] = array("fieldname" => "id", 'sid' => $surveyid, 'type' => "id", "gid" => "", "qid" => "", "aid" => ""); 1298 if ($style == "full") { 1299 $fieldmap["id"]['title'] = ""; 1300 $fieldmap["id"]['question'] = gT("Response ID"); 1301 $fieldmap["id"]['group_name'] = ""; 1302 } 1303 1304 $fieldmap["submitdate"] = array("fieldname" => "submitdate", 'type' => "submitdate", 'sid' => $surveyid, "gid" => "", "qid" => "", "aid" => ""); 1305 if ($style == "full") {
#0 |
+
–
/data/webdev/mastervanilla/application/helpers/common_helper.php(1293): in_array("en", null) 1288 //checks to see if fieldmap has already been built for this page. 1289 if (isset(Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]) && !$force_refresh && $questionid === false) { 1290 return Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]; 1291 } 1292 /* Check if $sLanguage is a survey valid language (else $fieldmap is empty) */ 1293 if ($sLanguage == '' || !in_array($sLanguage, $survey->allLanguages)) { 1294 $sLanguage = $survey->language; 1295 } 1296 $fieldmap = []; 1297 $fieldmap["id"] = array("fieldname" => "id", 'sid' => $surveyid, 'type' => "id", "gid" => "", "qid" => "", "aid" => ""); 1298 if ($style == "full") { |
#1 |
+
–
/data/webdev/mastervanilla/application/helpers/expressions/em_manager_helper.php(3292): createFieldMap(null, "full", false, false, ...) 3287 if (empty($this->surveyOptions)) { 3288 /* Log it as error : this need some test */ 3289 Yii::log('setVariableAndTokenMappingsForExpressionManager with an empty surveyOptions.', 'error', 'application.LimeExpressionManager'); 3290 } 3291 // TODO - do I need to force refresh, or trust that createFieldMap will cache langauges properly? 3292 $fieldmap = createFieldMap($survey, $style = 'full', $forceRefresh, false, $_SESSION['LEMlang']); 3293 $this->sid = $surveyid; 3294 $this->sessid = 'survey_' . $this->sid; 3295 $this->runtimeTimings[] = [__METHOD__ . '.createFieldMap', (microtime(true) - $now)]; 3296 // LimeExpressionManager::ShowStackTrace(); 3297 |
#2 |
+
–
/data/webdev/mastervanilla/application/helpers/expressions/em_manager_helper.php(4560): LimeExpressionManager->setVariableAndTokenMappingsForExpressionManager(null) 4555 $LEM->em->StartProcessingGroup( 4556 isset($_SESSION['LEMsid']) ? $_SESSION['LEMsid'] : null, 4557 '', 4558 true 4559 ); 4560 $LEM->setVariableAndTokenMappingsForExpressionManager($_SESSION['LEMsid']); 4561 } 4562 } 4563 4564 /** 4565 * Initialize a survey so can use EM to manage navigation |
#3 |
+
–
/data/webdev/mastervanilla/application/views/layouts/layout_questioneditor.php(19): LimeExpressionManager::StartProcessingPage(false, true) 14 $layoutHelper->showadminmenu($aData); 15 16 echo "<!-- BEGIN LAYOUT_INSURVEY -->"; 17 // Needed to evaluate EM expressions in question summary 18 // See bug #11845 19 LimeExpressionManager::StartProcessingPage(false, true); 20 $aData['debug'] = $aData; 21 //$this->_titlebar($aData); 22 $layoutHelper->rendertitlebar($aData); 23 24 //The load indicator for pjax |
#4 |
+
–
/data/webdev/mastervanilla/framework/web/CBaseController.php(126): require("/data/webdev/mastervanilla/application/views/layouts/layout_ques...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#5 |
+
–
/data/webdev/mastervanilla/framework/web/CBaseController.php(95): CBaseController->renderInternal("/data/webdev/mastervanilla/application/views/layouts/layout_ques...",
array("content" => "<x-test
id="action::surveyResponsesBrowse"></x-test><div
class='..."), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#6 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(787): CBaseController->renderFile("/data/webdev/mastervanilla/application/views/layouts/layout_ques...",
array("content" => "<x-test
id="action::surveyResponsesBrowse"></x-test><div
class='..."), true) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 791 $output=$this->processOutput($output); 792 |
#7 |
+
–
/data/webdev/mastervanilla/application/controllers/ResponsesController.php(489): CController->render("listResponses_view",
array("surveyid" => 596533, "dateformatdetails" =>
array("phpdate" => "d.m.Y", "jsdate" => "DD.MM.YYYY",
"jsdate_original" => "dd.mm.yyyy", "dateformat" => "dd.mm.yyyy"),
"model" => SurveyDynamic, "bHaveToken" => false, ...)) 484 'model' => $aData['model'], 485 'bHaveToken' => $aData['bHaveToken'], 486 'language' => $aData['language'], 487 'pageSize' => $aData['pageSize'], 488 'fieldmap' => $aData['fieldmap'], 489 'filteredColumns' => $aData['filteredColumns'], 490 491 ]); 492 } else { 493 App()->user->setFlash('error', gT("You do not have permission to access this page.")); 494 $this->redirect(['surveyAdministration/view', 'surveyid' => $surveyId]); |
#8 |
unknown(0): ResponsesController->actionBrowse(596533)
|
#9 |
+
–
/data/webdev/mastervanilla/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(ResponsesController, array("596533")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#10 |
+
–
/data/webdev/mastervanilla/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ResponsesController, ReflectionMethod, array("r" => "responses/browse", "surveyId" => "596533")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#11 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "responses/browse", "surveyId" => "596533")) 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; |
#12 |
+
–
/data/webdev/mastervanilla/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#13 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#14 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("postOnly + delete, deleteSingle, deleteAttachments")) 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); |
#15 |
+
–
/data/webdev/mastervanilla/application/controllers/LSBaseController.php(160): CController->run("browse") 155 $this->redirect(array('/admin/authentication/sa/login')); 156 } 157 } 158 } 159 160 parent::run($action); 161 } 162 163 /** 164 * Load and set session vars 165 * |
#16 |
+
–
/data/webdev/mastervanilla/framework/web/CWebApplication.php(282): LSBaseController->run("browse") 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))); |
#17 |
+
–
/data/webdev/mastervanilla/framework/web/CWebApplication.php(141): CWebApplication->runController("responses/browse") 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. |
#18 |
+
–
/data/webdev/mastervanilla/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 /** |
#19 |
+
–
/data/webdev/mastervanilla/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |