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__ | ||
− | + | =={{JVer|11.1}} JModuleHelper== | |
− | + | ===Description=== | |
− | + | [[JModuleHelper]] is a static helper class which provides functionality to handle modules. | |
− | {{ | + | |
− | |||
− | |||
− | |||
− | === | ||
− | [[ | ||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
− | |[[JModuleHelper::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 | + | |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 | + | |public |
+ | |[[API17:JModuleHelper::getModules|getModules]] | ||
|Get modules by position. | |Get modules by position. | ||
|- | |- | ||
− | |[[JModuleHelper::isEnabled | + | |public static |
+ | |[[API17:JModuleHelper::isEnabled|isEnabled]] | ||
|Checks if a module is enabled. | |Checks if a module is enabled. | ||
|- | |- | ||
− | |[[JModuleHelper::moduleCache | + | |public static |
+ | |[[API17:JModuleHelper::moduleCache|moduleCache]] | ||
|Module cache helper. | |Module cache helper. | ||
|- | |- | ||
− | |[[JModuleHelper::renderModule | + | |public static |
+ | |[[API17:JModuleHelper::renderModule|renderModule]] | ||
|Render the module. | |Render the module. | ||
|- | |- | ||
− | |[[JModuleHelper::_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 | + | * {{JVer|11.1}} '''JModuleHelper source code''' on [[jplatform:application/module/helper.php|BitBucket]] |
− | * [[ | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]] |
− | + | * [[API17:JModuleHelper|Other versions of JModuleHelper]] | |
− | + | ||
− | + | ||
− | + | ===User contributed notes=== | |
− | ===Examples=== | + | === Code Examples === |
− | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JModuleHelper | category=JModuleHelper | ||
− | + | namespace=CodeExample | |
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <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.
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]
- JModuleHelper source code on BitBucket
- Subpackage Application
- Other versions of JModuleHelper
User contributed notes[edit]
Code Examples[edit]