x

Main chapters

  1. Get started
  2. Workspace
  3. Editor
  4. Question types
  5. Share
  6. Results
  7. Configuration
  8. Installation and updates
  9. Profile and personal settings
  10. Account and billing
  11. FAQs
  12. Development
 Actions

BeforeSurveyBarRender

From LimeSurvey Manual
  This feature is not yet released.


When

This event is fired before the survey bar is rendered.


Input

The event receives the following information:

Name Type Description
surveyId integer The id of the current survey


Possible output

The following information can be set in the event:

Name Type Description
menus Menu[] Array of Menu objects


Example

public function beforeSurveyBarRender()
{
    $event = $this->getEvent();
    $surveyId = $event->get('surveyId');

    $menu = new Menu(array(
        'label' => $this->gT('MyPlugin'),
        'iconClass' => 'fa fa-some-icon',
        'href' => $href
    ));

    $event->append('menus', array($menu));
}