/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/YiiBase.php(323)
311 if($isClass && (class_exists($className,false) || interface_exists($className,false))) 312 return self::$_imports[$alias]=$className; 313 314 if(($path=self::getPathOfAlias($alias))!==false) 315 { 316 if($isClass) 317 { 318 if($forceInclude) 319 { 320 if(is_file($path.'.php')) 321 require($path.'.php'); 322 else 323 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias))); 324 self::$_imports[$alias]=$className; 325 } 326 else 327 self::$classMap[$className]=$path.'.php'; 328 return $className; 329 } 330 else // a directory 331 { 332 if(self::$_includePaths===null) 333 { 334 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path())); 335 if(($pos=array_search('.',self::$_includePaths,true))!==false)
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWidgetFactory.php(146): YiiBase::import("bootstrap.widgets.TbHtml5Editor", true) 141 * @param array $properties the initial property values (name=>value) of the widget. 142 * @return CWidget the newly created widget whose properties have been initialized with the given values. 143 */ 144 public function createWidget($owner,$className,$properties=array()) 145 { 146 $className=Yii::import($className,true); 147 $widget=new $className($owner); 148 149 if(isset($this->widgets[$className])) 150 $properties=$properties===array() ? $this->widgets[$className] : CMap::mergeArray($this->widgets[$className],$properties); 151 if($this->enableSkin) |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(146): CWidgetFactory->createWidget(SettingsWidget, "bootstrap.widgets.TbHtml5Editor", array("name" => "html", "value" => "Some html with <b>bold</b> or <i>italic</i> text.", "width" => "100%", "editorOptions" => array("html" => true))) 141 * @param array $properties initial property values 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 /** |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(168): CBaseController->createWidget("bootstrap.widgets.TbHtml5Editor", array("name" => "html", "value" => "Some html with <b>bold</b> or <i>italic</i> text.", "width" => "100%", "editorOptions" => array("html" => true))) 163 { 164 ob_start(); 165 ob_implicit_flush(false); 166 try 167 { 168 $widget=$this->createWidget($className,$properties); 169 $widget->run(); 170 } 171 catch(Exception $e) 172 { 173 ob_end_clean(); |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/extensions/SettingsWidget/SettingsWidget.php(356): CBaseController->widget("bootstrap.widgets.TbHtml5Editor", array("name" => "html", "value" => "Some html with <b>bold</b> or <i>italic</i> text.", "width" => "100%", "editorOptions" => array("html" => true)), true) 351 $this->widget('bootstrap.widgets.TbHtml5Editor', array( 352 'name' => $name, 353 'value' => $value, 354 'width' => '100%', 355 'editorOptions' => $editorOptions, 356 ), true) 357 ); 358 } 359 360 public function renderInfo($name, array $metaData, $form = null) 361 { |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/extensions/SettingsWidget/SettingsWidget.php(173): SettingsWidget->renderHtml("html", array("class" => array(), "htmlOptions" => array(), "type" => "html", "labelOptions" => array("class" => "default control-label col-sm-5"), ...), null) 168 // The labels 169 $content = $this->renderLabel($name, $metaData); 170 // The control 171 $content .= CHtml::openTag('div',$metaData['controlOptions']); 172 // The input 173 $content .= $this->$function($name, $metaData, $form); 174 // The help 175 $content .= $this->renderHelp($name, $metaData); 176 $content .= CHtml::closeTag('div'); 177 178 $result=CHtml::tag($wrapper,array('class'=>"setting control-group setting-{$metaData['type']}", 'data-name' => $name),$content); |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/extensions/SettingsWidget/SettingsWidget.php(195): SettingsWidget->renderSetting("html", array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), null, false, ...) 190 protected function renderSettings() 191 { 192 echo CHtml::openTag('ul',array('class'=>"settings-list")); 193 foreach($this->settings as $name => $metaData) 194 { 195 $this->renderSetting($name, $metaData, null, false, 'li'); 196 } 197 echo CHtml::closeTag('ul'); 198 } 199 200 public function run() { |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/extensions/SettingsWidget/SettingsWidget.php(204): SettingsWidget->renderSettings() 199 200 public function run() { 201 parent::run(); 202 203 // Render settings 204 $this->renderSettings(); 205 // Render buttons 206 $this->renderButtons(); 207 // Render additional HTML 208 $this->renderAdditionalHtml(); 209 // End form |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(181): SettingsWidget->run() 176 return ob_get_clean(); 177 } 178 else 179 { 180 $widget=$this->createWidget($className,$properties); 181 $widget->run(); 182 return $widget; 183 } 184 } 185 186 /** |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/pluginmanager/configure.php(21): CBaseController->widget("ext.SettingsWidget.SettingsWidget", array("settings" => array("boolean" => array("type" => "boolean", "label" => "A boolean setting", "help" => "An help text, default is null, here set to 0.", "default" => 0, ...), "checkbox" => array("type" => "checkbox", "label" => "A checkbox setting", "help" => "An help text, if not checkd set to NULL, NULL is the default", "current" => null), "float" => array("type" => "float", "label" => "A float setting", "help" => "The pattern is set to "\d+(\.\d+)?". Default set to 42.42.", "default" => 42.42, ...), "html" => array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), ...), "formHtmlOptions" => array("id" => "pluginsettings-exampleSettings"), "method" => "post", "additionalHtml" => "
<div class='col-xs-6 col-sm-3'> </div> <!-- C...")) 16 <div class='col-sm-7'> 17 <button name='save' class='btn btn-success' type='submit'><span class='glyphicon glyphicon-ok'></span> Save</button> 18 <button name='redirect' value='" . App()->createUrl("admin/pluginmanager/sa/index") . "' class='btn btn-default' type='submit'><span class='glyphicon glyphicon-saved'></span> Save and close</button> 19 <a class='btn btn-danger' href='" . App()->createurl('admin/pluginmanager/sa/index') . "'>Close</a> 20 </div>" 21 )); 22 ?> |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(126): require("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...") 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 } |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...", array("settings" => array("boolean" => array("type" => "boolean", "label" => "A boolean setting", "help" => "An help text, default is null, here set to 0.", "default" => 0, ...), "checkbox" => array("type" => "checkbox", "label" => "A checkbox setting", "help" => "An help text, if not checkd set to NULL, NULL is the default", "current" => null), "float" => array("type" => "float", "label" => "A float setting", "help" => "The pattern is set to "\d+(\.\d+)?". Default set to 42.42.", "default" => 42.42, ...), "html" => array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), ...), "plugin" => array("id" => "63", "name" => "exampleSettings", "active" => "0"), "properties" => array("description" => "Example plugin showing all settings", "pluginName" => "Example of settings", "pluginClass" => "exampleSettings")), 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); |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(869): CBaseController->renderFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...", array("settings" => array("boolean" => array("type" => "boolean", "label" => "A boolean setting", "help" => "An help text, default is null, here set to 0.", "default" => 0, ...), "checkbox" => array("type" => "checkbox", "label" => "A checkbox setting", "help" => "An help text, if not checkd set to NULL, NULL is the default", "current" => null), "float" => array("type" => "float", "label" => "A float setting", "help" => "The pattern is set to "\d+(\.\d+)?". Default set to 42.42.", "default" => 42.42, ...), "html" => array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), ...), "plugin" => array("id" => "63", "name" => "exampleSettings", "active" => "0"), "properties" => array("description" => "Example plugin showing all settings", "pluginName" => "Example of settings", "pluginClass" => "exampleSettings")), 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 |
#12 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(317): CController->renderPartial("/admin/pluginmanager/configure", array("settings" => array("boolean" => array("type" => "boolean", "label" => "A boolean setting", "help" => "An help text, default is null, here set to 0.", "default" => 0, ...), "checkbox" => array("type" => "checkbox", "label" => "A checkbox setting", "help" => "An help text, if not checkd set to NULL, NULL is the default", "current" => null), "float" => array("type" => "float", "label" => "A float setting", "help" => "The pattern is set to "\d+(\.\d+)?". Default set to 42.42.", "default" => 42.42, ...), "html" => array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), ...), "plugin" => array("id" => "63", "name" => "exampleSettings", "active" => "0"), "properties" => array("description" => "Example plugin showing all settings", "pluginName" => "Example of settings", "pluginClass" => "exampleSettings"))) 312 { 313 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) 314 { 315 if (is_numeric($sViewKey)) 316 { 317 Yii::app()->getController()->renderPartial($sViewPath . $viewUrl, $aData); 318 } 319 elseif (is_array($viewUrl)) 320 { 321 foreach ($viewUrl as $aSubData) 322 { |
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/pluginmanager.php(189): Survey_Common_Action->_renderWrappedTemplate("pluginmanager", "configure", array("settings" => array("boolean" => array("type" => "boolean", "label" => "A boolean setting", "help" => "An help text, default is null, here set to 0.", "default" => 0, ...), "checkbox" => array("type" => "checkbox", "label" => "A checkbox setting", "help" => "An help text, if not checkd set to NULL, NULL is the default", "current" => null), "float" => array("type" => "float", "label" => "A float setting", "help" => "The pattern is set to "\d+(\.\d+)?". Default set to 42.42.", "default" => 42.42, ...), "html" => array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), ...), "plugin" => array("id" => "63", "name" => "exampleSettings", "active" => "0"), "properties" => array("description" => "Example plugin showing all settings", "pluginName" => "Example of settings", "pluginClass" => "exampleSettings"))) 184 * @param string|array $aViewUrls View url(s) 185 * @param array $aData Data to be passed on. Optional. 186 */ 187 protected function _renderWrappedTemplate($sAction = 'pluginmanager', $aViewUrls = array(), $aData = array()) 188 { 189 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); 190 } 191 } |
#14 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/pluginmanager.php(177): PluginManager->_renderWrappedTemplate("pluginmanager", "configure", array("settings" => array("boolean" => array("type" => "boolean", "label" => "A boolean setting", "help" => "An help text, default is null, here set to 0.", "default" => 0, ...), "checkbox" => array("type" => "checkbox", "label" => "A checkbox setting", "help" => "An help text, if not checkd set to NULL, NULL is the default", "current" => null), "float" => array("type" => "float", "label" => "A float setting", "help" => "The pattern is set to "\d+(\.\d+)?". Default set to 42.42.", "default" => 42.42, ...), "html" => array("type" => "html", "label" => "A html setting", "help" => "Some help for HTML5 editor, accept <b> <i> but not &...", "default" => "Some html with <b>bold</b> or <i>italic</i> text.", ...), ...), "plugin" => array("id" => "63", "name" => "exampleSettings", "active" => "0"), "properties" => array("description" => "Example plugin showing all settings", "pluginName" => "Example of settings", "pluginClass" => "exampleSettings"))) 172 } 173 174 // Send to view plugin porperties: name and description 175 $aPluginProp = App()->getPluginManager()->getPluginInfo($arPlugin['name']); 176 177 $this->_renderWrappedTemplate('pluginmanager', 'configure', array('settings' => $aSettings, 'plugin' => $arPlugin, 'properties' => $aPluginProp)); 178 } 179 180 /** 181 * Renders template(s) wrapped in header and footer 182 * |
#15 |
unknown(0): PluginManager->configure("63")
|
#16 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(PluginManager, array("63")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#17 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(PluginManager, ReflectionMethod, array("id" => "63", "sa" => "configure", "iId" => "63")) 096 $oMethod = new ReflectionMethod($this, $sDefault); 097 } 098 099 // We're all good to go, let's execute it 100 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 101 return parent::runWithParamsInternal($this, $oMethod, $params); 102 } 103 104 /** 105 * Some functions have different parameters, which are just an alias of the 106 * usual parameters we're getting in the url. This function just populates |
#18 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("id" => "63", "sa" => "configure")) 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; |
#19 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(286): CController->runAction(PluginManager) 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(); |
#20 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(265): CController->runActionWithFilters(PluginManager, 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); |
#21 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(165): CController->run("pluginmanager") 160 $this->redirect(array('/admin/authentication/sa/login')); 161 } 162 163 } 164 165 return parent::run($action); 166 } 167 168 /** 169 * Routes all the actions to their respective places 170 * |
#22 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(282): AdminController->run("pluginmanager") 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))); |
#23 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/pluginmanager/sa/configure") 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. |
#24 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/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 /** |
#25 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/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 */ |