subscribe('newDirectRequest'); } /** * Called with this URL: * http://localhost/index.php/admin/pluginhelper?sa=sidebody&plugin=ExamplePlugin&method=actionIndex&surveyId=793951 * @return string */ public function actionIndex() { return '
Some content
'; } /** * Called with this URL: * http://localhost/lime25/limesurvey/index.php/admin/pluginhelper?sa=fullpagewrapper&plugin=ExamplePlugin&method=actionIndexGlobal * @return string */ public function actionIndexGlobal() { return 'Some global content
'; } /** * @return void */ public function newDirectRequest() { $event = $this->event; if ($event->get('target') == "ExamplePlugin") { $request = $event->get('request'); $functionToCall = $event->get('function'); $content = $this->$functionToCall($request); $event->setContent($this, $content); } } }