/var/www/lime25/limesurvey/application/views/survey/questions/answer/list_dropdown/answer.php(20)
08 * @var $name 09 * @var $dropdownSize 10 * @var $checkconditionFunction 11 * @var $select_show_hide 12 * 13 */ 14 ?> 15 16 <!-- List Dropdown --> 17 18 <!-- answer--> 19 20 <div class="<?php echo $coreClass ?> form-group form-inline"> 21 <select 22 class="form-control list-question-select" 23 name="<?php echo $name; ?>" 24 id="answer<?php echo $name; ?>" 25 <?php echo ($dropdownSize) ? "size=$dropdownSize" : "" ; ?> 26 aria-labelledby="ls-question-text-<?php echo $basename; ?>" 27 > 28 <?php 29 // rows/option.php 30 echo $sOptions; 31 ?> 32 </select>
#0 |
+
–
/var/www/lime25/limesurvey/framework/web/CBaseController.php(126): require("/var/www/lime25/limesurvey/application/views/survey/questions/an...") 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 } |
#1 |
+
–
/var/www/lime25/limesurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/lime25/limesurvey/application/views/survey/questions/an...", array("sOptions" => "
<!-- option -->
<option value='1' >
Reading</option>
<!--...", "sOther" => "<label for="othertext82556X6X192" class="sr-only">
Other:</l...", "name" => "82556X6X192", "basename" => "82556X6X192", ...), 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); |
#2 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(869): CBaseController->renderFile("/var/www/lime25/limesurvey/application/views/survey/questions/an...", array("sOptions" => "
<!-- option -->
<option value='1' >
Reading</option>
<!--...", "sOther" => "<label for="othertext82556X6X192" class="sr-only">
Other:</l...", "name" => "82556X6X192", "basename" => "82556X6X192", ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#3 |
+
–
/var/www/lime25/limesurvey/application/core/LSETwigViewRenderer.php(136): CController->renderPartial("/survey/questions/answer/list_dropdown/answer", array("sOptions" => "
<!-- option -->
<option value='1' >
Reading</option>
<!--...", "sOther" => "<label for="othertext82556X6X192" class="sr-only">
Other:</l...", "name" => "82556X6X192", "basename" => "82556X6X192", ...), true) 131 $aData['this'] = Yii::app()->getController(); 132 $aData['question_template_attribute'] = $oQuestionTemplate->getCustomAttributes(); 133 $template = $this->_twig->loadTemplate($sView.'.twig')->render($aData); 134 return $template; 135 }else{ 136 return Yii::app()->getController()->renderPartial($sView, $aData, true); 137 } 138 } 139 140 /** 141 * Only use for renderTemplateFromString for now, to force the path of included twig files (in renderTemplateFromString: the template files) |
#4 |
+
–
/var/www/lime25/limesurvey/application/helpers/qanda_helper.php(6511): LSETwigViewRenderer->renderQuestion("/survey/questions/answer/list_dropdown/answer", array("sOptions" => "
<!-- option -->
<option value='1' >
Reading</option>
<!--...", "sOther" => "<label for="othertext82556X6X192" class="sr-only">
Other:</l...", "name" => "82556X6X192", "basename" => "82556X6X192", ...)) 6506 * @param array $aData data to be extracted into PHP variables and made available to the view script 6507 * @param boolean $bReturn whether the rendering result should be returned instead of being displayed to end users (should be always true) 6508 */ 6509 function doRender($sView, $aData, $bReturn=true) 6510 { 6511 return App()->twigRenderer->renderQuestion( $sView, $aData); 6512 } |
#5 |
+
–
/var/www/lime25/limesurvey/application/helpers/qanda_helper.php(1518): doRender("/survey/questions/answer/list_dropdown/answer", array("sOptions" => "
<!-- option -->
<option value='1' >
Reading</option>
<!--...", "sOther" => "<label for="othertext82556X6X192" class="sr-only">
Other:</l...", "name" => "82556X6X192", "basename" => "82556X6X192", ...), true) 1513 'basename' => $ia[1], 1514 'dropdownSize' => $dropdownSize, 1515 'checkconditionFunction' => $checkconditionFunction, 1516 'value' => htmlspecialchars($value), 1517 'select_show_hide' => $select_show_hide, 1518 ), true); 1519 1520 1521 $inputnames[]=$ia[1]; 1522 1523 //Time Limit Code |
#6 |
+
–
/var/www/lime25/limesurvey/application/helpers/qanda_helper.php(173): do_list_dropdown(array("192", "82556X6X192", "qListDropdown", "<p>
What is your favorite pastime?</p>
", ...)) 168 case 'L': //LIST drop-down/radio-button list 169 $values = do_list_radio($ia); 170 break; 171 172 case '!': //List - dropdown 173 $values=do_list_dropdown($ia); 174 break; 175 176 case 'O': //LIST WITH COMMENT drop-down/radio-button list + textarea 177 $values=do_listwithcomment($ia); 178 break; |
#7 |
+
–
/var/www/lime25/limesurvey/application/helpers/SurveyRuntimeHelper.php(190): retrieveAnswers(array("192", "82556X6X192", "qListDropdown", "<p>
What is your favorite pastime?</p>
", ...), "82556") 185 } 186 187 //Get the answers/inputnames 188 // TMSW - can content of retrieveAnswers() be provided by LEM? Review scope of what it provides. 189 // TODO - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now 190 list($plus_qanda, $plus_inputnames) = retrieveAnswers($ia, $surveyid); 191 if ($plus_qanda) 192 { 193 $plus_qanda[] = $ia[4]; 194 $plus_qanda[] = $ia[6]; // adds madatory identifyer for adding mandatory class to question wrapping div 195 // Add a finalgroup in qa array , needed for random attribute : TODO: find a way to have it in new quanda_helper in 2.1 |
#8 |
+
–
/var/www/lime25/limesurvey/application/controllers/survey/index.php(624): SurveyRuntimeHelper->run("82556",
array("surveyid" => "82556", "thissurvey" => array("template"
=> "default", "language" => "en", "sid" => "82556", "owner_id"
=> "1", ...), "thisstep" => "3", "tokensexist" => 0, ...)) 619 //Send local variables to the appropriate survey type 620 unset($redata); 621 $redata = compact(array_keys(get_defined_vars())); 622 Yii::import('application.helpers.SurveyRuntimeHelper'); 623 $tmp = new SurveyRuntimeHelper(); 624 $tmp->run($surveyid,$redata); 625 626 if (App()->request->getPost('saveall') || isset($flashmessage)) 627 { 628 App()->clientScript->registerScript("saveflashmessage","alert('".gT("Your responses were successfully saved.","js")."');",CClientScript::POS_READY); 629 } |
#9 |
+
–
/var/www/lime25/limesurvey/application/controllers/survey/index.php(58): index->action() 53 App()->getClientScript()->reset(); 54 return $buffer; 55 }); 56 57 ob_implicit_flush(false); 58 $this->action(); 59 ob_flush(); 60 } 61 62 function action() 63 { |
#10 |
+
–
/var/www/lime25/limesurvey/framework/web/actions/CAction.php(76): index->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#11 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(308): CAction->runWithParams(array("sid" => "82556")) 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 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(286): CController->runAction(index) 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(); |
#13 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(index, 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); |
#14 |
+
–
/var/www/lime25/limesurvey/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#15 |
+
–
/var/www/lime25/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/82556") 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. |
#16 |
+
–
/var/www/lime25/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 /** |
#17 |
+
–
/var/www/lime25/limesurvey/index.php(205): CApplication->run() 200 require_once APPPATH . 'core/LSYii_Application' . EXT; 201 202 $config = require_once(APPPATH . 'config/internal' . EXT); 203 204 Yii::$enableIncludePath = false; 205 Yii::createApplication('LSYii_Application', $config)->run(); 206 207 /* End of file index.php */ 208 /* Location: ./index.php */ |