/mnt/data/shnoulle/nginx/www/develop/application/models/Question.php(1041)
1029 1030 public function getDataSetObject($type = null) 1031 { 1032 $type = $type === null ? $this->type : $type; 1033 LoadQuestionTypes::load($type); 1034 1035 switch ($type) { 1036 case Question::QT_X_BOILERPLATE_QUESTION: return new DataSetBoilerplate($this->qid); 1037 case Question::QT_5_POINT_CHOICE: return new DataSetFivePointChoice($this->qid); 1038 case Question::QT_ASTERISK_EQUATION: return new DataSetEquation($this->qid); 1039 case Question::QT_D_DATE: return new DataSetDate($this->qid); 1040 case Question::QT_1_ARRAY_MULTISCALE: return new DataSetArrayMultiscale($this->qid); 1041 case Question::QT_L_LIST_DROPDOWN: return new DataSetListDropdown($this->qid); 1042 case Question::QT_EXCLAMATION_LIST_DROPDOWN: return new DataSetListRadio($this->qid); 1043 case Question::QT_O_LIST_WITH_COMMENT: return new DataSetListWithComment($this->qid); 1044 case Question::QT_R_RANKING_STYLE: return new RenderRanking($aFieldArray); 1045 case Question::QT_M_MULTIPLE_CHOICE: return new DataSetMultipleChoice($this->qid); 1046 case Question::QT_P_MULTIPLE_CHOICE_WITH_COMMENTS: return new DataSetMultipleChoiceWithComments($this->qid); 1047 case Question::QT_I_LANGUAGE: return new DataSetLanguage($this->qid); 1048 case Question::QT_Q_MULTIPLE_SHORT_TEXT: return new DataSetMultipleShortText($this->qid); 1049 case Question::QT_T_LONG_FREE_TEXT: return new DataSetLongFreeText($this->qid); 1050 case Question::QT_U_HUGE_FREE_TEXT: return new DataSetHugeFreeText($this->qid); 1051 case Question::QT_K_MULTIPLE_NUMERICAL_QUESTION: return new RenderMultipleNumerical($aFieldArray); 1052 case Question::QT_A_ARRAY_5_CHOICE_QUESTIONS: return new DataSetArray5ChoiceQuestion($this->qid); 1053 case Question::QT_B_ARRAY_10_CHOICE_QUESTIONS: return new DataSetArray10ChoiceQuestion($this->qid);
#0 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/questionedit.php(284): Question->getDataSetObject() 279 } 280 281 public function getGeneralOptions($iQuestionId, $sQuestionType=null, $returnArray = false) 282 { 283 $oQuestion = $this->_getQuestionObject($iQuestionId, $sQuestionType); 284 $aGeneralOptionsArray = $oQuestion->getDataSetObject()->getGeneralSettingsArray($oQuestion->qid, $sQuestionType); 285 286 if( $returnArray === true ) { 287 return $aGeneralOptionsArray; 288 } 289 |
#1 |
unknown(0): questionedit->getGeneralOptions("6", "L", false)
|
#2 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(questionedit, array("6", "L", false)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(questionedit,
ReflectionMethod, array("r" =>
"admin/questioneditor/sid/471658/gid/4/sa/getGeneralOptions",
"YII_CSRF_TOKEN" =>
"d0NEbmZ2ZmNJX25fczZHYmdqNnFkSHRnWW1aX2w0bVqawdU0DvGLc1UfikEwRw4p...",
"iQuestionId" => "6", "sQuestionType" => "L", ...)) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r"
=> "admin/questioneditor/sid/471658/gid/4/sa/getGeneralOptions",
"YII_CSRF_TOKEN" =>
"d0NEbmZ2ZmNJX25fczZHYmdqNnFkSHRnWW1aX2w0bVqawdU0DvGLc1UfikEwRw4p...",
"iQuestionId" => "6", "sQuestionType" => "L", ...)) 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; |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(286): CController->runAction(questionedit) 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(); |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(265): CController->runActionWithFilters(questionedit, 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); |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/AdminController.php(158): CController->run("questioneditor") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CWebApplication.php(282): AdminController->run("questioneditor") 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("admin/questioneditor/sid/471658/gid/4/sa/getGeneralOptions") 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(195): CApplication->run() 190 require_once APPPATH . 'core/LSYii_Application' . EXT; 191 192 $config = require_once(APPPATH . 'config/internal' . EXT); 193 194 Yii::$enableIncludePath = false; 195 Yii::createApplication('LSYii_Application', $config)->run(); 196 197 /* End of file index.php */ 198 /* Location: ./index.php */ |