API17

Difference between revisions of "JModuleHelper"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<span class="editsection" style="font-size:76%;">
+
=={{JVer|11.1}} JModuleHelper==
<nowiki>[</nowiki>[[Description:JModuleHelper|Edit Descripton]]<nowiki>]</nowiki>
+
===Description===
</span>
+
[[JModuleHelper]] is a static helper class which provides functionality to handle modules.
{{Description:JModuleHelper}}
+
 
===Defined in===
 
libraries/joomla/application/module/helper.php
 
* see source code in [[jplatform:application/module/helper.php|BitBucket]]
 
===Subpackage===
 
[[Subpackage Application/11.1|Application]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JModuleHelper::getLayoutPath/11.1|getLayoutPath]]
+
|public static
 +
|[[API17:JModuleHelper::getLayoutPath|getLayoutPath]]
 
|Get the path to a layout for a module.  
 
|Get the path to a layout for a module.  
 
|-
 
|-
|[[JModuleHelper::getModule/11.1|getModule]]
+
|public 
 +
|[[API17:JModuleHelper::getModule|getModule]]
 
|Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs').  
 
|Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs').  
 
|-
 
|-
|[[JModuleHelper::getModules/11.1|getModules]]
+
|public 
 +
|[[API17:JModuleHelper::getModules|getModules]]
 
|Get modules by position.  
 
|Get modules by position.  
 
|-
 
|-
|[[JModuleHelper::isEnabled/11.1|isEnabled]]
+
|public static
 +
|[[API17:JModuleHelper::isEnabled|isEnabled]]
 
|Checks if a module is enabled.  
 
|Checks if a module is enabled.  
 
|-
 
|-
|[[JModuleHelper::moduleCache/11.1|moduleCache]]
+
|public static
 +
|[[API17:JModuleHelper::moduleCache|moduleCache]]
 
|Module cache helper.  
 
|Module cache helper.  
 
|-
 
|-
|[[JModuleHelper::renderModule/11.1|renderModule]]
+
|public static
 +
|[[API17:JModuleHelper::renderModule|renderModule]]
 
|Render the module.  
 
|Render the module.  
 
|-
 
|-
|[[JModuleHelper::_load/11.1|_load]]
+
|protected 
 +
|[[API17:JModuleHelper::_load|_load]]
 
|Load published modules.  
 
|Load published modules.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/application/module/helper.php
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.application.module.helper' );</source>
 
<source lang="php">jimport( 'joomla.application.module.helper' );</source>
 
===See also===
 
===See also===
* JModuleHelper source code in [[jplatform:application/module/helper.php|BitBucket]]
+
* {{JVer|11.1}} '''JModuleHelper source code''' on [[jplatform:application/module/helper.php|BitBucket]]
* [[JModuleHelper|Other versions of this class]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
{{SeeAlso:JModuleHelper}}
+
* [[API17:JModuleHelper|Other versions of JModuleHelper]]
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JModuleHelper|Edit See Also]]<nowiki>]</nowiki>
+
 
</span>
+
===User contributed notes===
===Examples===
+
=== Code Examples ===
<CodeExamplesForm />
 
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JModuleHelper
 
category=JModuleHelper
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JModuleHelper]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:28, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JModuleHelper[edit]

Description[edit]

JModuleHelper is a static helper class which provides functionality to handle modules.

Methods[edit]

Visibility Method name Description
public static getLayoutPath Get the path to a layout for a module.
public getModule Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs').
public getModules Get modules by position.
public static isEnabled Checks if a module is enabled.
public static moduleCache Module cache helper.
public static renderModule Render the module.
protected _load Load published modules.
  • Defined in libraries/joomla/application/module/helper.php

Importing[edit]

jimport( 'joomla.application.module.helper' );

See also[edit]


User contributed notes[edit]

Code Examples[edit]