<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=BeforeSurveyBarRender</id>
	<title>BeforeSurveyBarRender - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=BeforeSurveyBarRender"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=BeforeSurveyBarRender&amp;action=history"/>
	<updated>2026-08-18T06:49:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=BeforeSurveyBarRender&amp;diff=69043&amp;oldid=prev</id>
		<title>Olle at 08:45, 26 September 2016</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=BeforeSurveyBarRender&amp;diff=69043&amp;oldid=prev"/>
		<updated>2016-09-26T08:45:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:45, 26 September 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FeatureStarting&lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;51.0&lt;/del&gt;}}  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Alert&lt;/ins&gt;|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This feature is not yet released&lt;/ins&gt;.}}  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;When&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;When&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Olle</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=BeforeSurveyBarRender&amp;diff=68779&amp;oldid=prev</id>
		<title>Olle: Created page with &quot;{{FeatureStarting|2.51.0}}   &#039;&#039;&#039;When&#039;&#039;&#039;  This event is fired before the survey bar is rendered.   &#039;&#039;&#039;Input&#039;&#039;&#039;  The event receives the following information:  {| ! Name !! Type...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=BeforeSurveyBarRender&amp;diff=68779&amp;oldid=prev"/>
		<updated>2016-08-24T10:38:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{FeatureStarting|2.51.0}}   &amp;#039;&amp;#039;&amp;#039;When&amp;#039;&amp;#039;&amp;#039;  This event is fired before the survey bar is rendered.   &amp;#039;&amp;#039;&amp;#039;Input&amp;#039;&amp;#039;&amp;#039;  The event receives the following information:  {| ! Name !! Type...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FeatureStarting|2.51.0}} &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;When&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This event is fired before the survey bar is rendered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Input&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The event receives the following information:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Name !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| surveyId || integer || The id of the current survey&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Possible output&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The following information can be set in the event:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Name !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| menus || Menu[] || Array of Menu objects&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
public function beforeSurveyBarRender()&lt;br /&gt;
{&lt;br /&gt;
    $event = $this-&amp;gt;getEvent();&lt;br /&gt;
    $surveyId = $event-&amp;gt;get(&amp;#039;surveyId&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
    $menu = new Menu(array(&lt;br /&gt;
        &amp;#039;label&amp;#039; =&amp;gt; $this-&amp;gt;gT(&amp;#039;MyPlugin&amp;#039;),&lt;br /&gt;
        &amp;#039;iconClass&amp;#039; =&amp;gt; &amp;#039;fa fa-some-icon&amp;#039;,&lt;br /&gt;
        &amp;#039;href&amp;#039; =&amp;gt; $href&lt;br /&gt;
    ));&lt;br /&gt;
&lt;br /&gt;
    $event-&amp;gt;append(&amp;#039;menus&amp;#039;, array($menu));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Plugins events]]&lt;/div&gt;</summary>
		<author><name>Olle</name></author>
	</entry>
</feed>