/srv/www/htdocs/limesurvey/application/extensions/bootstrap/widgets/TbSelect2.php(41)
29 public $asDropDownList = true; 30 /** 31 * @var 32 */ 33 public $options; 34 35 /** 36 * Initializes the widget. 37 */ 38 public function init() 39 { 40 if(empty($this->data) && $this->asDropDownList === true) 41 throw new CException(Yii::t('zii', '"data" attribute cannot be blank')); 42 } 43 44 /** 45 * Runs the widget. 46 */ 47 public function run() 48 { 49 list($name, $id) = $this->resolveNameID(); 50 51 if ($this->hasModel()) 52 { 53 if($this->form)
#0 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(147): TbSelect2->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#1 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(166): CBaseController->createWidget("ext.bootstrap.widgets.TbSelect2",
array("data" => array(), "name" => "additional_languages",
"value" => array(), "options" => array("minimumResultsForSearch"
=> 1000, "dropdownAutoWidth" => true, "width" => "resolve"),
...)) 161 { 162 if($captureOutput) 163 { 164 ob_start(); 165 ob_implicit_flush(false); 166 $widget=$this->createWidget($className,$properties); 167 $widget->run(); 168 return ob_get_clean(); 169 } 170 else 171 { |
#2 |
+
–
/srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(397): CBaseController->widget("ext.bootstrap.widgets.TbSelect2",
array("data" => array(), "name" => "additional_languages",
"value" => array(), "options" => array("minimumResultsForSearch"
=> 1000, "dropdownAutoWidth" => true, "width" => "resolve"),
...), true) 392 $properties['events']=isset($metaData['events']) ? $metaData['events'] : array(); 393 // allow to submit the form when this element changes 394 if (isset($metaData['submitonchange']) && $metaData['submitonchange']) { 395 $properties['events']['change']='js: function(e) { this.form.submit();}'; 396 } 397 return App()->getController()->widget('ext.bootstrap.widgets.TbSelect2', $properties, true); 398 } 399 400 public function renderString($name, array $metaData, $form = null) 401 { 402 $value = isset($metaData['current']) ? $metaData['current'] : ''; |
#3 |
+
–
/srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(152): SettingsWidget->renderSelect("additional_languages",
array("class" => array(), "htmlOptions" => array("multiple" =>
true), "type" => "select", "labelOptions" => array("class" =>
"default control-label col-sm-5"), ...), null) 147 // The labels 148 $content = $this->renderLabel($name, $metaData); 149 // The control 150 $content .= CHtml::openTag('div',$metaData['controlOptions']); 151 // The input 152 $content .= $this->$function($name, $metaData, $form); 153 // The help 154 $content .= $this->renderHelp($name, $metaData); 155 $content .= CHtml::closeTag('div'); 156 157 $result=CHtml::tag($wrapper,array('class'=>"setting control-group setting-{$metaData['type']}", 'data-name' => $name),$content); |
#4 |
+
–
/srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(170): SettingsWidget->renderSetting("additional_languages",
array("type" => "select", "label" => "Autres langues ",
"htmlOptions" => array("multiple" => true), "options" =>
array(), ...), null, false, ...) 165 protected function renderSettings() 166 { 167 echo CHtml::openTag('ul',array('class'=>"settings-list")); 168 foreach($this->settings as $name => $metaData) 169 { 170 $this->renderSetting($name, $metaData, null, false,'li'); 171 } 172 echo CHtml::closeTag('ul'); 173 } 174 175 |
#5 |
+
–
/srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(181): SettingsWidget->renderSettings() 176 177 public function run() { 178 parent::run(); 179 180 // Render settings 181 $this->renderSettings(); 182 // Render buttons 183 $this->renderButtons(); 184 // End form 185 $this->endForm(); 186 } |
#6 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(173): SettingsWidget->run() 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 178 /** |
#7 |
+
–
/srv/www/htdocs/limesurvey/application/views/admin/survey/subview/tabGeneralEditSurvey_view.php(88): CBaseController->widget("ext.SettingsWidget.SettingsWidget",
array("id" => "general", "title" => "Général", "form" =>
false, "formHtmlOptions" => array("class" => "form-core"), ...))
83 'size'=>50, 84 ), 85 'current'=>$esrow['faxto'], 86 ), 87 ), 88 )); 89 ?> |
#8 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(126): require("/srv/www/htdocs/limesurvey/application/views/admin/survey/subvie...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#9 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/srv/www/htdocs/limesurvey/application/views/admin/survey/subvie...",
array("esrow" => array("template" => "default", "language" =>
"fr", "sid" => "436221", "owner_id" => "2", ...), "action" =>
"editsurveysettings", "surveyid" => 436221, "pluginSettings" =>
null, ...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#10 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CController.php(869): CBaseController->renderFile("/srv/www/htdocs/limesurvey/application/views/admin/survey/subvie...",
array("esrow" => array("template" => "default", "language" =>
"fr", "sid" => "436221", "owner_id" => "2", ...), "action" =>
"editsurveysettings", "surveyid" => 436221, "pluginSettings" =>
null, ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#11 |
+
–
/srv/www/htdocs/limesurvey/application/views/admin/survey/editSurvey_view.php(7): CController->renderPartial("/admin/survey/subview/tabGeneralEditSurvey_view",
array("esrow" => array("template" => "default", "language" =>
"fr", "sid" => "436221", "owner_id" => "2", ...), "action" =>
"editsurveysettings", "surveyid" => 436221, "pluginSettings" =>
null, ...)) 02 <?php 03 $data['action'] = $action; 04 $yii = Yii::app(); 05 $controller = $yii->getController(); 06 $controller->renderPartial('/admin/survey/subview/tab_view',$data); 07 $controller->renderPartial('/admin/survey/subview/tabGeneralEditSurvey_view',$data); 08 if (isset($pluginSettings)) 09 { 10 $controller->renderPartial('/admin/survey/subview/tabPluginSettings_view',$data); 11 } 12 $controller->renderPartial('/admin/survey/subview/tabPresentation_view',$data); |
#12 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(126): require("/srv/www/htdocs/limesurvey/application/views/admin/survey/editSu...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#13 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/srv/www/htdocs/limesurvey/application/views/admin/survey/editSu...",
array("esrow" => array("template" => "default", "language" =>
"fr", "sid" => "436221", "owner_id" => "2", ...), "action" =>
"editsurveysettings", "surveyid" => 436221, "pluginSettings" =>
null, ...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#14 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CController.php(869): CBaseController->renderFile("/srv/www/htdocs/limesurvey/application/views/admin/survey/editSu...",
array("esrow" => array("template" => "default", "language" =>
"fr", "sid" => "436221", "owner_id" => "2", ...), "action" =>
"editsurveysettings", "surveyid" => 436221, "pluginSettings" =>
null, ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#15 |
+
–
/srv/www/htdocs/limesurvey/application/core/Survey_Common_Action.php(305): CController->renderPartial("/admin/survey/editSurvey_view",
array("esrow" => array("template" => "default", "language" =>
"fr", "sid" => "436221", "owner_id" => "2", ...), "action" =>
"editsurveysettings", "surveyid" => 436221, "pluginSettings" =>
null, ...)) 300 { 301 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) 302 { 303 if (is_numeric($sViewKey)) 304 { 305 Yii::app()->getController()->renderPartial($sViewPath . $viewUrl, $aData); 306 } 307 elseif (is_array($viewUrl)) 308 { 309 foreach ($viewUrl as $aSubData) 310 { |
#16 |
+
–
/srv/www/htdocs/limesurvey/application/controllers/admin/surveyadmin.php(1704): Survey_Common_Action->_renderWrappedTemplate("survey",
"editSurvey_view", array("esrow" => array("template" =>
"default", "language" => "fr", "sid" => "436221", "owner_id" =>
"2", ...), "action" => "editsurveysettings", "surveyid" =>
436221, "pluginSettings" => null, ...)) 1699 * @param array $aData Data to be passed on. Optional. 1700 */ 1701 protected function _renderWrappedTemplate($sAction = 'survey', $aViewUrls = array(), $aData = array()) 1702 { 1703 App()->getClientScript()->registerPackage('jquery-superfish'); 1704 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); 1705 } 1706 1707 } |
#17 |
+
–
/srv/www/htdocs/limesurvey/application/controllers/admin/surveyadmin.php(182): SurveyAdmin->_renderWrappedTemplate("survey",
"editSurvey_view", array("esrow" => array("template" =>
"default", "language" => "fr", "sid" => "436221", "owner_id" =>
"2", ...), "action" => "editsurveysettings", "surveyid" =>
436221, "pluginSettings" => null, ...)) 177 $aData['questions'] = $oResult; 178 $aData['display']['menu_bars']['surveysummary'] = "editsurveysettings"; 179 $tempData = $aData; 180 $aData['data'] = $tempData; 181 182 $this->_renderWrappedTemplate('survey', 'editSurvey_view', $aData); 183 } 184 185 /** 186 * Function responsible to import survey resources from a '.zip' file. 187 * |
#18 |
unknown(0): SurveyAdmin->editsurveysettings("436221")
|
#19 |
+
–
/srv/www/htdocs/limesurvey/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SurveyAdmin, array("436221")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#20 |
+
–
/srv/www/htdocs/limesurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(SurveyAdmin,
ReflectionMethod, array("surveyid" => "436221", "sa" =>
"editsurveysettings", "iSurveyId" => "436221", "iSurveyID" =>
"436221")) 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 |
#21 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "436221", "sa" => "editsurveysettings")) 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; |
#22 |
+
–
/srv/www/htdocs/limesurvey/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(); |
#23 |
+
–
/srv/www/htdocs/limesurvey/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); |
#24 |
+
–
/srv/www/htdocs/limesurvey/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 * |
#25 |
+
–
/srv/www/htdocs/limesurvey/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))); |
#26 |
+
–
/srv/www/htdocs/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/editsurveysettings") 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. |
#27 |
+
–
/srv/www/htdocs/limesurvey/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 /** |
#28 |
+
–
/srv/www/htdocs/limesurvey/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 */ |