class JComponentHelper


Located at : UKNOWVA_ROOT/libraries/joomla/application/component/helper.php

Component helper class

Methods

static object
getComponent(string $option, boolean $strict = false)

Get the component information.

static 
exists($option)

No description

static boolean
isEnabled(string $option, boolean $strict = false)

Checks if the component is enabled

static JRegistry
getParams(string $option, boolean $strict = false)

Gets the parameter object for the component

static void
renderComponent(string $option, array $params = array())

Render the component.

Details

at line 38
static object getComponent(string $option, boolean $strict = false)

Get the component information.

Parameters

string $option The component option.
boolean $strict If set and the component does not exist, the enabled attribue will be set to false.

Return Value

object An object with the information for the component.

at line 59
static exists($option)

Parameters

$option

at line 71
static boolean isEnabled(string $option, boolean $strict = false)

Checks if the component is enabled

Parameters

string $option The component option.
boolean $strict If set and the component does not exist, false will be returned.

Return Value

boolean

at line 89
static JRegistry getParams(string $option, boolean $strict = false)

Gets the parameter object for the component

Parameters

string $option The option for the component.
boolean $strict If set and the component does not exist, false will be returned

Return Value

JRegistry A JRegistry object.

See also

JRegistry

at line 105
static void renderComponent(string $option, array $params = array())

Render the component.

Parameters

string $option The component option.
array $params The component parameters

Return Value

void