Actions

API16

JComponentHelper/isEnabled

From Joomla! Documentation

< API16:JComponentHelper
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Checks if the component is enabled

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

static isEnabled($option, $strict=false)
Parameter Name Default Value Description
$option $option The component option.
$strict false $string If set and a component does not exist, false will be returned

Returns

boolean

Defined in

libraries/joomla/application/component/helper.php

Importing

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

Source Body

public static function isEnabled($option, $strict = false)
{
        $result = &self::getComponent($option, $strict);
        return ($result->enabled | JFactory::getApplication()->isAdmin());
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />