/mnt/data/shnoulle/nginx/www/develop/application/models/Question.php(989)
0977 } 0978 0979 public function getRenderererObject($aFieldArray, $type = null) 0980 { 0981 $type = $type === null ? $this->type : $type; 0982 LoadQuestionTypes::load($type); 0983 switch ($type) { 0984 case Question::QT_X_BOILERPLATE_QUESTION: $oRenderer = new RenderBoilerplate($aFieldArray); break; 0985 case Question::QT_5_POINT_CHOICE: $oRenderer = new RenderFivePointChoice($aFieldArray); break; 0986 case Question::QT_ASTERISK_EQUATION: $oRenderer = new RenderEquation($aFieldArray); break; 0987 case Question::QT_D_DATE: $oRenderer = new RenderDate($aFieldArray); break; 0988 case Question::QT_1_ARRAY_MULTISCALE: $oRenderer = new RenderArrayMultiscale($aFieldArray); break; 0989 case Question::QT_L_LIST_DROPDOWN: $oRenderer = new RenderListRadio($aFieldArray); break; 0990 case Question::QT_EXCLAMATION_LIST_DROPDOWN: $oRenderer = new RenderListDropdown($aFieldArray); break; 0991 case Question::QT_O_LIST_WITH_COMMENT: $oRenderer = new RenderListComment($aFieldArray); break; 0992 case Question::QT_R_RANKING_STYLE: $oRenderer = new RenderRanking($aFieldArray); break; 0993 case Question::QT_M_MULTIPLE_CHOICE: $oRenderer = new RenderMultipleChoice($aFieldArray); break; 0994 case Question::QT_P_MULTIPLE_CHOICE_WITH_COMMENTS: $oRenderer = new RenderMultipleChoiceWithComments($aFieldArray); break; 0995 case Question::QT_I_LANGUAGE: $oRenderer = new RenderLanguageSelector($aFieldArray); break; 0996 case Question::QT_Q_MULTIPLE_SHORT_TEXT: $oRenderer = new RenderMultipleShortText($aFieldArray); break; 0997 case Question::QT_T_LONG_FREE_TEXT: $oRenderer = new RenderLongFreeText($aFieldArray); break; 0998 case Question::QT_U_HUGE_FREE_TEXT: $oRenderer = new RenderHugeFreeText($aFieldArray); break; 0999 case Question::QT_K_MULTIPLE_NUMERICAL_QUESTION: $oRenderer = new RenderMultipleNumerical($aFieldArray); break; 1000 case Question::QT_A_ARRAY_5_CHOICE_QUESTIONS: $oRenderer = new RenderArray5ChoiceQuestion($aFieldArray); break; 1001 case Question::QT_B_ARRAY_10_CHOICE_QUESTIONS: $oRenderer = new RenderArray10ChoiceQuestion($aFieldArray); break;
#0 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/helpers/qanda_helper.php(135): Question->getRenderererObject(array("3", "534147X2X3", "SingleChoice", "SingleChoice", ...)) 130 ); 131 132 $oQuestion = Question::model()->findByPk($ia[0]); 133 $oQuestionTemplate = QuestionTemplate::getNewInstance($oQuestion); 134 $oQuestionTemplate->registerAssets(); // Register the custom assets of the question template, if needed 135 $oRenderer = $oQuestion->getRenderererObject($ia); 136 $values = $oRenderer->render(); 137 138 139 if (isset($values)) { 140 //Break apart $values array returned from switch |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/helpers/SurveyRuntimeHelper.php(279): retrieveAnswers(array("3", "534147X2X3", "SingleChoice", "SingleChoice", ...)) 274 } 275 276 //Get the answers/inputnames 277 // TMSW - can content of retrieveAnswers() be provided by LEM? Review scope of what it provides. 278 // TODO - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now 279 list($plus_qanda, $plus_inputnames) = retrieveAnswers($ia); 280 281 if ($plus_qanda) { 282 $plus_qanda[] = $ia[4]; 283 $plus_qanda[] = $ia[6]; // adds madatory identifyer for adding mandatory class to question wrapping div 284 |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/survey/index.php(604): SurveyRuntimeHelper->run("534147",
array("surveyid" => "534147", "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "tokenencryptionoptions" => "",
"template" => "fruity", ...), "thisstep" => "0", "tokensexist"
=> 0, ...)) 599 unset($redata); 600 $redata = compact(array_keys(get_defined_vars())); 601 Yii::import('application.helpers.SurveyRuntimeHelper'); 602 $tmp = new SurveyRuntimeHelper(); 603 // try { 604 $tmp->run($surveyid, $redata); 605 // } catch (WrongTemplateVersionException $ex) { 606 // echo $ex->getMessage(); 607 // } 608 } 609 |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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; |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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. |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "534147")) 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; |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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(); |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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); |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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))); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index") 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. |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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 /** |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/develop/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |