<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.joomla.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;feed=atom&amp;action=history</id>
		<title>JModuleHelper/getModules - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;action=history"/>
		<updated>2013-05-23T16:34:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.3</generator>

	<entry>
		<id>http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;diff=13117&amp;oldid=prev</id>
		<title>Chris Davenport: Methods may be called statically.</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;diff=13117&amp;oldid=prev"/>
				<updated>2009-02-07T19:55:05Z</updated>
		
		<summary type="html">&lt;p&gt;Methods may be called statically.&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:55, 7 February 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===See also===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===See also===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://api.joomla.org/Joomla-Framework/Application/JModuleHelper.html#getModules JModuleHelper&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-&amp;gt;&lt;/del&gt;getModules on api.joomla.org]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://api.joomla.org/Joomla-Framework/Application/JModuleHelper.html#getModules JModuleHelper&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;::&lt;/ins&gt;getModules on api.joomla.org]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[JModuleHelper/getModule|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;JDocument-&amp;gt;&lt;/del&gt;getModule]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[JModuleHelper/getModule|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;JModuleHelper::&lt;/ins&gt;getModule]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;[[Category:Development]][[Category:Framework]][[Category:JModuleHelper]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;[[Category:Development]][[Category:Framework]][[Category:JModuleHelper]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chris Davenport</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;diff=13114&amp;oldid=prev</id>
		<title>Chris Davenport: New page: Returns information about all modules in a given module position. ===Syntax=== ''array'' getModules( $position )  where: {| class=&quot;wikitable&quot; !Argument !Data type !Description !Default |- ...</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=JModuleHelper/getModules&amp;diff=13114&amp;oldid=prev"/>
				<updated>2009-02-07T19:24:21Z</updated>
		
		<summary type="html">&lt;p&gt;New page: Returns information about all modules in a given module position. ===Syntax=== &amp;#039;&amp;#039;array&amp;#039;&amp;#039; getModules( $position )  where: {| class=&amp;quot;wikitable&amp;quot; !Argument !Data type !Description !Default |- ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns information about all modules in a given module position.&lt;br /&gt;
===Syntax===&lt;br /&gt;
''array'' getModules( $position )&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Argument&lt;br /&gt;
!Data type&lt;br /&gt;
!Description&lt;br /&gt;
!Default&lt;br /&gt;
|-&lt;br /&gt;
|$position&lt;br /&gt;
|string&lt;br /&gt;
|The name of a module position.&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
===Example 1===&lt;br /&gt;
To get information on all modules in the 'top' module position:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
jimport( 'joomla.application.module.helper' );&lt;br /&gt;
$modules = JModuleHelper::getModules( 'top' );&lt;br /&gt;
echo '&amp;lt;pre&amp;gt;';&lt;br /&gt;
print_r( $modules );&lt;br /&gt;
echo '&amp;lt;/pre&amp;gt;';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
which will output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; stdClass Object&lt;br /&gt;
        (&lt;br /&gt;
            [id] =&amp;gt; 25&lt;br /&gt;
            [title] =&amp;gt; Newsflash&lt;br /&gt;
            [module] =&amp;gt; mod_newsflash&lt;br /&gt;
            [position] =&amp;gt; top&lt;br /&gt;
            [content] =&amp;gt; &lt;br /&gt;
            [showtitle] =&amp;gt; 1&lt;br /&gt;
            [control] =&amp;gt; &lt;br /&gt;
            [params] =&amp;gt; catid=3&lt;br /&gt;
style=random&lt;br /&gt;
items=&lt;br /&gt;
moduleclass_sfx=&lt;br /&gt;
            [user] =&amp;gt; 0&lt;br /&gt;
            [name] =&amp;gt; newsflash&lt;br /&gt;
            [style] =&amp;gt; &lt;br /&gt;
        )&lt;br /&gt;
&lt;br /&gt;
)&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Example 2===&lt;br /&gt;
If there are no modules enabled in the given module position then an empty array would normally be returned.  However, if the '?tp=1' argument is added to the request URL then a dummy module is returned.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
jimport( 'joomla.application.module.helper' );&lt;br /&gt;
$modules = JModuleHelper::getModules( 'myposition' );&lt;br /&gt;
echo '&amp;lt;pre&amp;gt;';&lt;br /&gt;
print_r( $modules );&lt;br /&gt;
echo '&amp;lt;/pre&amp;gt;';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
which will output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; stdClass Object&lt;br /&gt;
        (&lt;br /&gt;
            [id] =&amp;gt; 0&lt;br /&gt;
            [title] =&amp;gt; myposition&lt;br /&gt;
            [module] =&amp;gt; mod_myposition&lt;br /&gt;
            [position] =&amp;gt; myposition&lt;br /&gt;
            [content] =&amp;gt; myposition&lt;br /&gt;
            [showtitle] =&amp;gt; 0&lt;br /&gt;
            [control] =&amp;gt; &lt;br /&gt;
            [params] =&amp;gt; &lt;br /&gt;
            [user] =&amp;gt; 0&lt;br /&gt;
        )&lt;br /&gt;
&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===See also===&lt;br /&gt;
* [http://api.joomla.org/Joomla-Framework/Application/JModuleHelper.html#getModules JModuleHelper-&amp;gt;getModules on api.joomla.org]&lt;br /&gt;
* [[JModuleHelper/getModule|JDocument-&amp;gt;getModule]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Development]][[Category:Framework]][[Category:JModuleHelper]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chris Davenport</name></author>	</entry>

	</feed>