/limeservice/instances/2/limesurvey/framework/db/ar/CActiveFinder.php(1103)
1091 $joins=array(); 1092 if(is_string($fks)) 1093 $fks=preg_split('/\s*,\s*/',$fks,-1,PREG_SPLIT_NO_EMPTY); 1094 foreach($fks as $i=>$fk) 1095 { 1096 if(!is_int($i)) 1097 { 1098 $pk=$fk; 1099 $fk=$i; 1100 } 1101 1102 if(!isset($fke->_table->columns[$fk])) 1103 throw new CDbException(Yii::t('yii','The relation "{relation}" in active record class "{class}" is specified with an invalid foreign key "{key}". There is no such column in the table "{table}".', 1104 array('{class}'=>get_class($parent->model), '{relation}'=>$this->relation->name, '{key}'=>$fk, '{table}'=>$fke->_table->name))); 1105 1106 if(is_int($i)) 1107 { 1108 if(isset($fke->_table->foreignKeys[$fk]) && $schema->compareTableNames($pke->_table->rawName, $fke->_table->foreignKeys[$fk][0])) 1109 $pk=$fke->_table->foreignKeys[$fk][1]; 1110 else // FK constraints undefined 1111 { 1112 if(is_array($pke->_table->primaryKey)) // composite PK 1113 $pk=$pke->_table->primaryKey[$i]; 1114 else 1115 $pk=$pke->_table->primaryKey;
#0 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveFinder.php(1074): CJoinElement->joinOneMany(CJoinElement, array("token" => "token"), CJoinElement, CJoinElement) 1069 else 1070 { 1071 $pke=$parent; 1072 $fke=$this; 1073 } 1074 return $this->joinOneMany($fke,$fks,$pke,$parent); 1075 } 1076 } 1077 1078 /** 1079 * Generates the join statement for one-many relationship. |
#1 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveFinder.php(1320): CJoinElement->getJoinCondition() 1315 $this->join($element->slave); 1316 if(!empty($element->relation->select)) 1317 $this->selects[]=$element->getColumnSelect($element->relation->select); 1318 $this->conditions[]=$element->relation->condition; 1319 $this->orders[]=$element->relation->order; 1320 $this->joins[]=$element->getJoinCondition(); 1321 $this->joins[]=$element->relation->join; 1322 $this->groups[]=$element->relation->group; 1323 $this->havings[]=$element->relation->having; 1324 1325 if(is_array($element->relation->params)) |
#2 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveFinder.php(797): CJoinQuery->join(CJoinElement) 792 $child->_joined=true; 793 elseif($child->relation instanceof CHasOneRelation || $child->relation instanceof CBelongsToRelation 794 || $this->_finder->joinAll || $child->relation->together || (!$this->_finder->baseLimited && $child->relation->together===null)) 795 { 796 $child->_joined=true; 797 $query->join($child); 798 $child->buildQuery($query); 799 } 800 } 801 } 802 |
#3 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveFinder.php(439): CJoinElement->buildQuery(CJoinQuery) 434 { 435 if($this->_parent===null) // root element 436 { 437 $query=new CJoinQuery($this,$criteria); 438 $this->_finder->baseLimited=($criteria->offset>=0 || $criteria->limit>=0); 439 $this->buildQuery($query); 440 $this->_finder->baseLimited=false; 441 $this->runQuery($query); 442 } 443 elseif(!$this->_joined && !empty($this->_parent->records)) // not joined before 444 { |
#4 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveFinder.php(68): CJoinElement->find(CDbCriteria) 63 { 64 $this->_joinTree->tableAlias=$criteria->alias; 65 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($criteria->alias); 66 } 67 68 $this->_joinTree->find($criteria); 69 $this->_joinTree->afterFind(); 70 71 if($all) 72 { 73 $result = array_values($this->_joinTree->records); |
#5 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveRecord.php(1364): CActiveFinder->query(CDbCriteria, true) 1359 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1360 } 1361 else 1362 { 1363 $finder=$this->getActiveFinder($criteria->with); 1364 return $finder->query($criteria,$all); 1365 } 1366 } 1367 1368 /** 1369 * Applies the query scopes to the given criteria. |
#6 |
+
–
/limeservice/instances/2/limesurvey/application/models/LSActiveRecord.php(77): CActiveRecord->query(CDbCriteria, true) 72 * @since 1.1.7 73 */ 74 protected function query($criteria, $all = false, $asAR = true) 75 { 76 if ($asAR === true) { 77 return parent::query($criteria, $all); 78 } else { 79 $this->beforeFind(); 80 $this->applyScopes($criteria); 81 if (!$all) { 82 $criteria->limit = 1; |
#7 |
+
–
/limeservice/instances/2/limesurvey/framework/db/ar/CActiveRecord.php(1478): LSActiveRecord->query(CDbCriteria, true) 1473 */ 1474 public function findAll($condition='',$params=array()) 1475 { 1476 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1477 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1478 return $this->query($criteria,true); 1479 } 1480 1481 /** 1482 * Finds a single active record with the specified primary key. 1483 * See {@link find()} for detailed explanation about $condition and $params. |
#8 |
+
–
/limeservice/instances/2/limesurvey/application/models/TokenDynamic.php(211): CActiveRecord->findAll(CDbCriteria) 206 $command->limit = $iMaxEmails; 207 } 208 209 $command->order = 'tid'; 210 211 $oResult = $this->findAll($command); 212 foreach ($oResult as $key => $result) { 213 $oResult[$key] = $result->decrypt(); 214 } 215 216 $cpdbBlacklisted = Participant::model()->getBlacklistedParticipantIds(); |
#9 |
+
–
/limeservice/instances/2/limesurvey/application/controllers/admin/Tokens.php(1406): TokenDynamic->findUninvited(array("1", "2", "3", "4", ...), 0, false, "emailstatus = 'OK'", ...) 1401 'condition' => 'responses.submitdate IS NULL', 1402 ], 1403 ]); 1404 } 1405 1406 $ctresult = $tokenDynamic->findUninvited($aTokenIds, 0, $bIsInvitation, $SQLemailstatuscondition, $SQLremindercountcondition, $SQLreminderdelaycondition); 1407 $ctcount = count($ctresult); 1408 1409 $emresult = array_slice($ctresult, 0, $iMaxEmails); 1410 $emcount = count($emresult); 1411 |
#10 |
unknown(0): Tokens->email(717329)
|
#11 |
+
–
/limeservice/instances/2/limesurvey/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(Tokens, array("717329")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#12 |
+
–
/limeservice/instances/2/limesurvey/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(Tokens,
ReflectionMethod, array("action" => "remind", "surveyid" =>
"717329", "sa" => "email", "iSurveyId" => "717329", ...)) 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 |
#13 |
+
–
/limeservice/instances/2/limesurvey/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("action" => "remind", "surveyid" => "717329", "sa" => "email", "iSurveyId" => "717329", ...)) 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; |
#14 |
+
–
/limeservice/instances/2/limesurvey/framework/web/CController.php(286): CController->runAction(Tokens) 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(); |
#15 |
+
–
/limeservice/instances/2/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(Tokens, 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); |
#16 |
+
–
/limeservice/instances/2/limesurvey/application/controllers/AdminController.php(226): CController->run("tokens") 221 } 222 223 $this->runModuleController($action); 224 225 226 return parent::run($action); 227 } 228 229 /** 230 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 231 * |
#17 |
+
–
/limeservice/instances/2/limesurvey/framework/web/CWebApplication.php(282): AdminController->run("tokens") 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))); |
#18 |
+
–
/limeservice/instances/2/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/tokens/sa/email") 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. |
#19 |
+
–
/limeservice/instances/2/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 /** |
#20 |
+
–
/limeservice/instances/2/limesurvey/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 */ |