Difference between revisions of "JModuleHelper::getModule"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs'). | Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs'). | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public & | + | public & function getModule ( |
+ | $name | ||
+ | $title=null | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 30: | Line 30: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' object The Module object | |
− | object The Module object | + | * '''Defined''' on line 34 of libraries/joomla/application/module/helper.php |
− | + | * '''Referenced by''' | |
− | libraries/joomla/application/module/helper.php | + | ** [[getModules|getModules]] |
− | * | + | ** [[isEnabled|isEnabled]] |
− | + | ** [[API17:JDocumentRendererModule::render|JDocumentRendererModule::render]] | |
− | * [[getModules | ||
− | * [[isEnabled | ||
− | * [[JDocumentRendererModule::render | ||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JModuleHelper::getModule source code''' on [[jplatform:application/module/helper.php#cl-26|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JModuleHelper|JModuleHelper]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | |
− | * | + | * [[API17:JModuleHelper::getModule|Other versions of JModuleHelper::getModule]] |
− | * [[JModuleHelper::getModule|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JModuleHelper::getModule | category=JModuleHelper::getModule | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <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::getModule[edit]
Description[edit]
Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs').
public & function getModule (
$name
$title=null
)
Parameter | Type | Default | Description |
---|---|---|---|
$name | string | The name of the module | |
$title | string | null | The title of the module, optional |
- Returns object The Module object
- Defined on line 34 of libraries/joomla/application/module/helper.php
- Referenced by
See also[edit]
- JModuleHelper::getModule source code on BitBucket
- Class JModuleHelper
- Subpackage Application
- Other versions of JModuleHelper::getModule
User contributed notes[edit]
Code Examples[edit]