/usr/share/nginx/html/lsurveymaster/framework/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/db/CDbCommand.php(415): CDbCommand->queryInternal("fetch", array(2), array()) 410 * @return mixed the first row (in terms of an array) of the query result, false if no result. 411 * @throws CException execution failed 412 */ 413 public function queryRow($fetchAssociative=true,$params=array()) 414 { 415 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 416 } 417 418 /** 419 * Executes the SQL statement and returns the value of the first column in the first row of data. 420 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/db/ar/CActiveRecord.php(1351): CDbCommand->queryRow() 1346 if(empty($criteria->with)) 1347 { 1348 if(!$all) 1349 $criteria->limit=1; 1350 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria,$this->getTableAlias()); 1351 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1352 } 1353 else 1354 { 1355 $finder=$this->getActiveFinder($criteria->with); 1356 return $finder->query($criteria,$all); |
#2 |
+
–
/usr/share/nginx/html/lsurveymaster/application/models/LSActiveRecord.php(67): CActiveRecord->query(CDbCriteria, false) 62 */ 63 protected function query($criteria, $all = false, $asAR = true) 64 { 65 if ($asAR === true) 66 { 67 return parent::query($criteria, $all); 68 } else 69 { 70 $this->beforeFind(); 71 $this->applyScopes($criteria); 72 if (!$all) |
#3 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/db/ar/CActiveRecord.php(1519): LSActiveRecord->query(CDbCriteria) 1514 public function findByAttributes($attributes,$condition='',$params=array()) 1515 { 1516 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1517 $prefix=$this->getTableAlias(true).'.'; 1518 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1519 return $this->query($criteria); 1520 } 1521 1522 /** 1523 * Finds all active records that have the specified attribute values. 1524 * See {@link find()} for detailed explanation about $condition and $params. |
#4 |
+
–
/usr/share/nginx/html/lsurveymaster/application/models/Permission.php(504): CActiveRecord->findByAttributes(array("entity_id" => "survey", "uid" => "50", "entity" => "369689", "permission" => "surveyactivation")) 499 } 500 501 if ($aPermissionCache[0]['global'][$iUserID]['superadmin']['read_p']) return true; 502 if (!isset($aPermissionCache[$iEntityID][$sEntityName][$iUserID][$sPermission][$sCRUD])) 503 { 504 $query = $this->findByAttributes(array("entity_id"=> $iEntityID, "uid"=> $iUserID, "entity"=>$sEntityName, "permission"=>$sPermission)); 505 $bPermission = is_null($query) ? array() : $query->attributes; 506 if (!isset($bPermission[$sCRUD]) || $bPermission[$sCRUD]==0) 507 { 508 $bPermission=false; 509 } |
#5 |
+
–
/usr/share/nginx/html/lsurveymaster/application/controllers/admin/surveypermission.php(456): Permission->hasPermission("survey", "369689", "surveyactivation", "update", ...) 451 if (!($sPermissionKey=='survey' && $sCRUDKey=='read')) 452 { 453 $usersummary .= "<input type=\"checkbox\" class=\"checkboxbtn\" name='perm_{$sPermissionKey}_{$sCRUDKey}' "; 454 if($action=='setsurveysecurity') 455 { 456 if(Permission::model()->hasPermission('survey',$surveyid,$sPermissionKey,$sCRUDKey,$postuserid)) 457 { 458 $usersummary .= ' checked="checked" ';// User have this permission set for this survey 459 460 } 461 elseif(Permission::model()->hasSurveyPermission( $surveyid,$sPermissionKey,$sCRUDKey,$postuserid)) |
#6 |
unknown(0): surveypermission->set("369689")
|
#7 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(surveypermission, array("369689")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#8 |
+
–
/usr/share/nginx/html/lsurveymaster/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(surveypermission, ReflectionMethod, array("q" => "/lsurveymaster/index.php/admin/surveypermission/sa/set/surveyid/...", "surveyid" => "369689", "sa" => "set", "iSurveyId" => "369689", ...)) 094 $oMethod = new ReflectionMethod($this, $sDefault); 095 } 096 097 // We're all good to go, let's execute it 098 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 099 return parent::runWithParamsInternal($this, $oMethod, $params); 100 } 101 102 /** 103 * Some functions have different parameters, which are just an alias of the 104 * usual parameters we're getting in the url. This function just populates |
#9 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("q" => "/lsurveymaster/index.php/admin/surveypermission/sa/set/surveyid/...", "surveyid" => "369689", "sa" => "set")) 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; |
#10 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CController.php(286): CController->runAction(surveypermission) 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(); |
#11 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CController.php(265): CController->runActionWithFilters(surveypermission, 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); |
#12 |
+
–
/usr/share/nginx/html/lsurveymaster/application/controllers/AdminController.php(169): CController->run("surveypermission") 164 $this->redirect(array('/admin/authentication/sa/login')); 165 } 166 167 } 168 169 return parent::run($action); 170 } 171 172 /** 173 * Routes all the actions to their respective places 174 * |
#13 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CWebApplication.php(282): AdminController->run("surveypermission") 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))); |
#14 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/surveypermission/sa/set") 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. |
#15 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#16 |
+
–
/usr/share/nginx/html/lsurveymaster/index.php(200): CApplication->run() 195 die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath)); 196 } 197 } 198 199 200 Yii::createApplication('LSYii_Application', $config)->run(); 201 202 /* End of file index.php */ 203 /* Location: ./index.php */ |