JModuleHelper

Module helper class

abstract
package

Joomla.Platform

subpackage

Application

since

11.1

Methods

_load

Load published modules.

_load() : array
static
since

11.1

Response

array

getLayoutPath

Get the path to a layout for a module

getLayoutPath(string $module, string $layout = 'default') : string
static
since

11.1

Arguments

$module

stringThe name of the module

$layout

stringThe name of the module layout. If alternative layout, in the form template:filename.

Response

stringThe path to the module layout

getModule

Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs')

getModule(string $name, string $title = null) : object
static
since

11.1

Arguments

$name

stringThe name of the module

$title

stringThe title of the module, optional

Response

objectThe Module object

getModules

Get modules by position

getModules(string $position) : array
static
since

11.1

Arguments

$position

stringThe position of the module

Response

arrayAn array of module objects

isEnabled

Checks if a module is enabled

isEnabled(string $module) : boolean
static
since

11.1

Arguments

$module

stringThe module name

Response

boolean

moduleCache

Module cache helper

moduleCache(object $module, object $moduleparams, object $cacheparams) : string
static

Caching modes: To be set in XML: 'static' One cache file for all pages with the same module parameters 'oldstatic' 1.5 definition of module caching, one cache file for all pages with the same module id and user aid, 'itemid' Changes on itemid change, to be called from inside the module: 'safeuri' Id created from $cacheparams->modeparams array, 'id' Module sets own cache id's

since

11.1

link

JFilterInput::clean()

Arguments

$module

objectModule object

$moduleparams

objectModule parameters

$cacheparams

objectModule cache parameters - id or url parameters, depending on the module cache mode

Response

string

renderModule

Render the module.

renderModule(object $module, array $attribs = array()) : string
static
since

11.1

Arguments

$module

objectA module object.

$attribs

arrayAn array of attributes for the module (probably from the XML).

Response

stringThe HTML content of the module output.