/home/sondages.pro/htdocs/demonstrations/demonstration/framework/db/schema/CDbCommandBuilder.php(813)
801 802 for($i=0;$i<$n;++$i) 803 { 804 if(isset($values[$i][$name])) 805 { 806 $value=$table->columns[$name]->typecast($values[$i][$name]); 807 if(is_string($value)) 808 $values[$i][$name]=$db->quoteValue($value); 809 else 810 $values[$i][$name]=$value; 811 } 812 else 813 throw new CDbException(Yii::t('yii','The value for the column "{column}" is not supplied when querying the table "{table}".', 814 array('{table}'=>$table->name,'{column}'=>$name))); 815 } 816 } 817 if(count($values)===1) 818 { 819 $entries=array(); 820 foreach($values[0] as $name=>$value) 821 $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value); 822 return implode(' AND ',$entries); 823 } 824 825 return $this->createCompositeInCondition($table,$values,$prefix);
| #0 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/db/schema/CDbCommandBuilder.php(621): CDbCommandBuilder->createInCondition(CMysqlTableSchema,
array("surveyls_survey_id", "surveyls_language"),
array(array("surveyls_survey_id" => "146955", "surveyls_language"
=> null)), "`t`.") 616 $prefix=$this->_schema->quoteTableName($criteria->alias).'.'; 617 if(!is_array($pk)) // single key 618 $pk=array($pk); 619 if(is_array($table->primaryKey) && !isset($pk[0]) && $pk!==array()) // single composite key 620 $pk=array($pk); 621 $condition=$this->createInCondition($table,$table->primaryKey,$pk,$prefix); 622 if($criteria->condition!='') 623 $criteria->condition=$condition.' AND ('.$criteria->condition.')'; 624 else 625 $criteria->condition=$condition; 626 |
| #1 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/db/ar/CActiveRecord.php(1485): CDbCommandBuilder->createPkCriteria(CMysqlTableSchema, array("surveyls_survey_id" => "146955", "surveyls_language" => null), "", array(), ...) 1480 */ 1481 public function findByPk($pk,$condition='',$params=array()) 1482 { 1483 Yii::trace(get_class($this).'.findByPk()','system.db.ar.CActiveRecord'); 1484 $prefix=$this->getTableAlias(true).'.'; 1485 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); 1486 return $this->query($criteria); 1487 } 1488 1489 /** 1490 * Finds all active records with the specified primary keys. |
| #2 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/helpers/common_helper.php(1130): CActiveRecord->findByPk(array("surveyls_survey_id" => "146955", "surveyls_language" => null)) 1125 { 1126 $thissurvey=$staticSurveyInfo[$surveyid][$languagecode]; 1127 } 1128 else 1129 { 1130 $result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode)); 1131 if (is_null($result)) { 1132 // When additional language was added, but not saved it does not exists 1133 // We should revert to the base language then 1134 $languagecode=Survey::model()->findByPk($surveyid)->language; 1135 $result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode)); |
| #3 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/helpers/expressions/em_manager_helper.php(4731):
getSurveyInfo("146955") 4726 $LEM->allOnOnePage=$allOnOnePage; 4727 $LEM->processedRelevance=false; 4728 $LEM->surveyOptions['hyperlinkSyntaxHighlighting']=true; // this will be temporary - should be reset in running survey 4729 $LEM->qid2exclusiveAuto=array(); 4730 4731 $surveyinfo = (isset($LEM->sid) ? getSurveyInfo($LEM->sid) : null); 4732 if (isset($surveyinfo['assessments']) && $surveyinfo['assessments']=='Y') 4733 { 4734 $LEM->surveyOptions['assessments']=true; 4735 } 4736 // $LEM->runtimeTimings[] = array(__METHOD__,(microtime(true) - $now)); |
| #4 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/core/Survey_Common_Action.php(258): LimeExpressionManager::StartProcessingPage(false, "", true) 253 } 254 255 if (!empty($aData['surveyid'])) 256 { 257 258 LimeExpressionManager::StartProcessingPage(false, Yii::app()->baseUrl,true); // so can click on syntax highlighting to edit questions 259 260 $this->_surveybar($aData['surveyid'], !empty($aData['gid']) ? $aData['gid'] : null); 261 262 if (isset($aData['display']['menu_bars']['surveysummary'])) 263 { |
| #5 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/controllers/admin/surveyadmin.php(1708): Survey_Common_Action->_renderWrappedTemplate("survey",
array(), array("surveyid" => "146955", "gid" => null, "qid" =>
null, "display" => array("menu_bars" => array("surveysummary"
=> true)))) 1703 * @param array $aData Data to be passed on. Optional. 1704 */ 1705 protected function _renderWrappedTemplate($sAction = 'survey', $aViewUrls = array(), $aData = array()) 1706 { 1707 App()->getClientScript()->registerPackage('jquery-superfish'); 1708 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); 1709 } 1710 1711 } |
| #6 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/controllers/admin/surveyadmin.php(286): SurveyAdmin->_renderWrappedTemplate("survey",
array(), array("surveyid" => "146955", "gid" => null, "qid" =>
null, "display" => array("menu_bars" => array("surveysummary"
=> true)))) 281 $aData['surveyid'] = $iSurveyID; 282 $aData['gid'] = $gid; 283 $aData['qid'] = $qid; 284 $aData['display']['menu_bars']['surveysummary'] = true; 285 286 $this->_renderWrappedTemplate('survey', array(), $aData); 287 } 288 289 /** 290 * Function responsible to deactivate a survey. 291 * |
| #7 |
unknown(0): SurveyAdmin->view("146955", null, null)
|
| #8 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SurveyAdmin, array("146955", null, null)) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
| #9 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(SurveyAdmin,
ReflectionMethod, array("surveyid" => "146955", "sa" => "view",
"iSurveyId" => "146955", "iSurveyID" => "146955")) 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 |
| #10 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "146955", "sa" => "view")) 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; |
| #11 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/web/CController.php(286): CController->runAction(SurveyAdmin) 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(); |
| #12 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/web/CController.php(265): CController->runActionWithFilters(SurveyAdmin, 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); |
| #13 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/application/controllers/AdminController.php(164): CController->run("survey") 159 $this->redirect(array('/admin/authentication/sa/login')); 160 } 161 162 } 163 164 return parent::run($action); 165 } 166 167 /** 168 * Routes all the actions to their respective places 169 * |
| #14 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/web/CWebApplication.php(282): AdminController->run("survey") 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))); |
| #15 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/view") 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. |
| #16 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
| #17 |
+
–
/home/sondages.pro/htdocs/demonstrations/demonstration/index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |
| Journal d'application | ||||
|---|---|---|---|---|
| Heure | Niveau | Categorie | Message | |
| 15:14:38.877625 | trace | vardump | /home/sondages.pro/htdocs/demonstrations/demonstration/application/helpers/common_helper.php
(206):
Survey#1
(
[*:findByPkCache] => array()
[format] => null
[CActiveRecord:_new] => false
[CActiveRecord:_attributes] => array
(
'template' => 'default'
'language' => null
'sid' => '146955'
'owner_id' => '0'
'admin' => null
'active' => 'N'
'expires' => null
'startdate' => null
'adminemail' => null
'anonymized' => 'N'
'faxto' => null
'savetimings' => 'N'
'additional_languages' => null
'datestamp' => 'N'
'usecookie' => 'N'
'allowregister' => 'N'
'allowsave' => 'Y'
'autonumber_start' => '0'
'autoredirect' => 'N'
'allowprev' => 'N'
'printanswers' => 'N'
'ipaddr' => 'N'
'refurl' => 'N'
'datecreated' => '2015-06-19'
'publicstatistics' => 'N'
'publicgraphs' => 'N'
'listpublic' => 'N'
'htmlemail' => 'N'
'tokenanswerspersistence' => 'N'
'assessments' => 'N'
'usecaptcha' => 'N'
'usetokens' => 'N'
'bounce_email' => null
'attributedescriptions' => '[]'
'emailresponseto' => null
'emailnotificationto' => null
'tokenlength' => '15'
'showxquestions' => 'Y'
'showgroupinfo' => 'B'
'shownoanswer' => 'Y'
'showqnumcode' => 'X'
'bouncetime' => null
'bounceprocessing' => 'N'
'bounceaccounttype' => null
'bounceaccounthost' => null
'bounceaccountpass' => null
'bounceaccountencryption' => null
'bounceaccountuser' => null
'showwelcome' => 'Y'
'showprogress' => 'Y'
'navigationdelay' => '0'
'nokeyboard' => 'N'
'alloweditaftercompletion' => 'N'
'googleanalyticsstyle' => null
'googleanalyticsapikey' => null
'sendconfirmation' => 'Y'
'questionindex' => '0'
)
[CActiveRecord:_related] => array
(
'defaultlanguage' => null
)
[CActiveRecord:_c] => null
[CActiveRecord:_pk] => '146955'
[CActiveRecord:_alias] => 't'
[CModel:_errors] => array()
[CModel:_validators] => null
[CModel:_scenario] => 'update'
[CComponent:_e] => array
(
'onafterfind' => CList#2
(
[CList:_d] => array
(
0 => array
(
0 => Survey#1(...)
1 => 'fixSurveyAttribute'
)
)
[CList:_c] => 1
[CList:_r] => false
[CComponent:_e] => null
[CComponent:_m] => null
)
'onbeforesave' => CList#3
(
[CList:_d] => array
(
0 => array
(
0 => CTimestampBehavior#4
(
[createAttribute] => null
[updateAttribute] => null
[setUpdateOnCreate] => false
[timestampExpression] => CDbExpression#5
(
[expression] => 'NOW()'
[params] => array()
[CComponent:_e] => null
[CComponent:_m] => null
)
[CBehavior:_enabled] => true
[CBehavior:_owner] => Survey#1(...)
[CComponent:_e] => null
[CComponent:_m] => null
)
1 => 'beforeSave'
)
1 => array
(
0 => PluginEventBehavior#6
(
[CBehavior:_enabled] => true
[CBehavior:_owner] => Survey#1(...)
[CComponent:_e] => null
[CComponent:_m] => null
)
1 => 'beforeSave'
)
)
[CList:_c] => 2
[CList:_r] => false
[CComponent:_e] => null
[CComponent:_m] => null
)
'onafterdelete' => CList#7
(
[CList:_d] => array
(
0 => array
(
0 => PluginEventBehavior#6(...)
1 => 'afterDelete'
)
)
[CList:_c] => 1
[CList:_r] => false
[CComponent:_e] => null
[CComponent:_m] => null
)
'onaftersave' => CList#8
(
[CList:_d] => array
(
0 => array
(
0 => PluginEventBehavior#6(...)
1 => 'afterSave'
)
)
[CList:_c] => 1
[CList:_r] => false
[CComponent:_e] => null
[CComponent:_m] => null
)
'onbeforedelete' => CList#9
(
[CList:_d] => array
(
0 => array
(
0 => PluginEventBehavior#6(...)
1 => 'beforeDelete'
)
)
[CList:_c] => 1
[CList:_r] => false
[CComponent:_e] => null
[CComponent:_m] => null
)
)
[CComponent:_m] => array
(
'CTimestampBehavior' => CTimestampBehavior#4(...)
'PluginEventBehavior' => PluginEventBehavior#6(...)
)
) |
|