/mnt/data/shnoulle/nginx/www/develop/framework/db/schema/CDbCommandBuilder.php(697)
685 } 686 else 687 { 688 $conditions[]=$prefix.$column->rawName.'='.self::PARAM_PREFIX.$i; 689 $values[self::PARAM_PREFIX.$i]=$value; 690 $i++; 691 } 692 } 693 else 694 $conditions[]=$prefix.$column->rawName.' IS NULL'; 695 } 696 else 697 throw new CDbException(Yii::t('yii','Table "{table}" does not have a column named "{column}".', 698 array('{table}'=>$table->name,'{column}'=>$name))); 699 } 700 $criteria->params=array_merge($values,$criteria->params); 701 if(isset($conditions[0])) 702 { 703 if($criteria->condition!='') 704 $criteria->condition=implode(' AND ',$conditions).' AND ('.$criteria->condition.')'; 705 else 706 $criteria->condition=implode(' AND ',$conditions); 707 } 708 return $criteria; 709 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/db/ar/CActiveRecord.php(1543): CDbCommandBuilder->createColumnCriteria(CMysqlTableSchema,
array("parent_qid" => "2525", "language" => "en"), array("order"
=> "question_order desc"), array(), ...) 1538 */ 1539 public function findAllByAttributes($attributes,$condition='',$params=array()) 1540 { 1541 Yii::trace(get_class($this).'.findAllByAttributes()','system.db.ar.CActiveRecord'); 1542 $prefix=$this->getTableAlias(true).'.'; 1543 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1544 return $this->query($criteria,true); 1545 } 1546 1547 /** 1548 * Finds a single active record with the specified SQL statement. |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/models/LSActiveRecord.php(238): CActiveRecord->findAllByAttributes(array("parent_qid" => "2525", "language" => "en"), array("order" => "question_order desc"), array()) 233 * @return static[] the records found. An empty array is returned if none is found. 234 */ 235 public function findAllByAttributes($attributes, $condition='',$params=array()) 236 { 237 $attributes = $this->encryptAttributeValues($attributes); 238 return parent::findAllByAttributes($attributes, $condition, $params); 239 } 240 241 /** 242 * @param int $iSurveyId 243 * @param string $sClassName |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/conditionsaction.php(1514): LSActiveRecord->findAllByAttributes(array("parent_qid" => "2525", "language" => "en"), array("order" => "question_order desc")) 1509 } elseif ($rows['type'] == Question::QT_K_MULTIPLE_NUMERICAL_QUESTION || $rows['type'] == Question::QT_Q_MULTIPLE_SHORT_TEXT) { 1510 //Multi shorttext/numerical 1511 $aresult = Question::model()->findAllByAttributes(array( 1512 "parent_qid" => $rows['qid'], 1513 "language" =>$this->language, 1514 ), array('order' => 'question_order desc')); 1515 1516 foreach ($aresult as $arows) { 1517 $shortanswer = "{$arows['title']}: [".strip_tags($arows['question'])."]"; 1518 $shortquestion = $rows['title'].":$shortanswer ".strip_tags($rows['question']); 1519 $cquestions[] = array($shortquestion, $rows['qid'], $rows['type'], $rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']); |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/conditionsaction.php(272): conditionsaction->getCAnswersAndCQuestions(array(array("qid"
=> "2520", "sid" => "282267", "gid" => "123", "question" =>
"Short free text", ...), array("qid" => "2521", "sid" =>
"282267", "gid" => "123", "question" => "Long free text", ...),
array("qid" => "2522", "sid" => "282267", "gid" => "123",
"question" => "Huge free text", ...), array("qid" => "2523", "sid"
=> "282267", "gid" => "123", "question" => "Short free text
(Numbers only)", ...), ...)) 267 } 268 } 269 270 // Previous question parsing ==> building cquestions[] and canswers[] 271 if ($questionscount > 0) { 272 list($cquestions, $canswers) = $this->getCAnswersAndCQuestions($theserows); 273 } //if questionscount > 0 274 //END Gather Information for this question 275 276 $args['sCurrentFullQuestionText'] = $sCurrentFullQuestionText; 277 $args['questiontitle'] = $questiontitle; |
#4 |
unknown(0): conditionsaction->index("editconditionsform", 282267, 125, 2532)
|
#5 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(conditionsaction, array("editconditionsform", "282267", "125", "2532")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(conditionsaction,
ReflectionMethod, array("r" =>
"admin/conditions/sa/index/subaction/editconditionsform", "surveyid"
=> "282267", "gid" => "125", "qid" => "2532", ...)) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r"
=> "admin/conditions/sa/index/subaction/editconditionsform",
"surveyid" => "282267", "gid" => "125", "qid" => "2532", ...))
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; |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(286): CController->runAction(conditionsaction) 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(); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(265): CController->runActionWithFilters(conditionsaction, 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); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/AdminController.php(163): CController->run("conditions") 158 } 159 160 $this->runModuleController($action); 161 162 163 return parent::run($action); 164 } 165 166 /** 167 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 168 */ |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CWebApplication.php(282): AdminController->run("conditions") 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))); |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/conditions/sa/index/subaction/editconditionsform") 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. |
#13 |
+
–
/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 /** |
#14 |
+
–
/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 */ |