/mnt/data/shnoulle/nginx/www/master/application/core/QuestionTypes/ArrayFlexibleRow/RenderArrayFlexibleRow.php(82)
70 if (preg_match("/^[^|]+\|[^|]+$/", $oSubQuestions->questionl10ns[$this->sLanguage]->question)) { 71 $combined++; 72 } 73 return $combined; 74 }, 0); 75 // $right_exists is a flag to find out if there are any right hand answer parts. 76 // If there arent we can leave out the right td column 77 $this->rightExists = ($iCount > 0); 78 79 $this->answerwidth = $this->setDefaultIfEmpty($this->getQuestionAttribute('answer_width'), 33); 80 $this->defaultWidth = ($this->answerwidth===33); 81 82 $this->columnswidth = 100 - $this->answerwidth; 83 84 if($this->rightExists) { 85 /* put the right answer to same width : take place in answer width only if it's not default */ 86 if ($this->defaultWidth) { 87 $this->columnswidth -= $this->answerwidth; 88 } else { 89 $this->answerwidth = $this->answerwidth / 2; 90 } 91 } 92 if($this->getQuestionCount() > 0) { 93 $this->cellwidth = round(($this->columnswidth / $this->getAnswerCount()), 1); 94 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/Question.php(1159): RenderArrayFlexibleRow->__construct(array("5246", "275575X344X5246", "Q00", "A first example question. Please answer this question:", ...)) 1154 case Question::QT_K_MULTIPLE_NUMERICAL_QUESTION: $oRenderer = new RenderMultipleNumerical($aFieldArray); break; 1155 case Question::QT_A_ARRAY_5_CHOICE_QUESTIONS: $oRenderer = new RenderArray5ChoiceQuestion($aFieldArray); break; 1156 case Question::QT_B_ARRAY_10_CHOICE_QUESTIONS: $oRenderer = new RenderArray10ChoiceQuestion($aFieldArray); break; 1157 case Question::QT_C_ARRAY_YES_UNCERTAIN_NO: $oRenderer = new RenderArrayYesUncertainNo($aFieldArray); break; 1158 case Question::QT_E_ARRAY_OF_INC_SAME_DEC_QUESTIONS: $oRenderer = new RenderArrayOfIncSameDecQuestions($aFieldArray); break; 1159 case Question::QT_F_ARRAY_FLEXIBLE_ROW: $oRenderer = new RenderArrayFlexibleRow($aFieldArray); break; 1160 case Question::QT_G_GENDER_DROPDOWN: $oRenderer = new RenderGenderDropdown($aFieldArray); break; 1161 case Question::QT_H_ARRAY_FLEXIBLE_COLUMN: $oRenderer = new RendererArrayFlexibleColumn($aFieldArray); break; 1162 case Question::QT_N_NUMERICAL: $oRenderer = new RenderNumerical($aFieldArray); break; 1163 case Question::QT_S_SHORT_FREE_TEXT: $oRenderer = new RenderShortFreeText($aFieldArray); break; 1164 case Question::QT_Y_YES_NO_RADIO: $oRenderer = new RenderYesNoRadio($aFieldArray); break; |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/qanda_helper.php(152): Question->getRenderererObject(array("5246", "275575X344X5246", "Q00", "A first example question. Please answer this question:", ...)) 147 ); 148 149 $oQuestion = Question::model()->findByPk($ia[0]); 150 $oQuestionTemplate = QuestionTemplate::getNewInstance($oQuestion); 151 $oQuestionTemplate->registerAssets(); // Register the custom assets of the question template, if needed 152 $oRenderer = $oQuestion->getRenderererObject($ia); 153 $values = $oRenderer->render(); 154 155 156 if (isset($values)) { 157 //Break apart $values array returned from switch |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(280): retrieveAnswers(array("5246", "275575X344X5246", "Q00", "A first example question. Please answer this question:", ...)) 275 } 276 277 //Get the answers/inputnames 278 // TMSW - can content of retrieveAnswers() be provided by LEM? Review scope of what it provides. 279 // TODO - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now 280 list($plus_qanda, $plus_inputnames) = retrieveAnswers($ia); 281 282 if ($plus_qanda) { 283 $plus_qanda[] = $ia[4]; 284 $plus_qanda[] = $ia[6]; // adds madatory identifyer for adding mandatory class to question wrapping div 285 |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(610): SurveyRuntimeHelper->run("275575",
array("surveyid" => "275575", "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "tokenencryptionoptions" => "",
"template" => "vanilla", ...), "thisstep" => null, "tokensexist"
=> 0, ...)) 605 unset($redata); 606 $redata = compact(array_keys(get_defined_vars())); 607 Yii::import('application.helpers.SurveyRuntimeHelper'); 608 $tmp = new SurveyRuntimeHelper(); 609 // try { 610 $tmp->run($surveyid, $redata); 611 // } catch (WrongTemplateVersionException $ex) { 612 // echo $ex->getMessage(); 613 // } 614 } 615 |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(24): index->action() 19 public $oTemplate; 20 21 public function run() 22 { 23 useFirebug(); 24 $this->action(); 25 } 26 27 public function action() 28 { 29 global $surveyid; |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/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. |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): CAction->runWithParams(array("action" => "previewgroup", "sid" => "275575", "gid" => "344")) 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(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(); |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/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); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/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))); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/action/previewgroup/sid/275575/gid/344") 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. |
#11 |
+
–
/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 /** |
#12 |
+
–
/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 */ |