Support Joomla!

references:joomla.framework:application:jcomponenthelper-isenabled

Table of Contents

isEnabled

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JComponentHelper Method isEnabled Reference isEnabled() Never Work in Progress

Checks if the component is enabled.

This method returns true if the component is enabled, false otherwise. Extensions are enabled and disabled using the Extension Manager.

Syntax

boolean isEnabled ( $name )

$name string is a string containing the option value for the component.

Examples

Example

if (JComponentHelper::isEnabled( 'com_weblinks' )) {
	echo 'The weblinks component is enabled.';
} else {
	echo 'The component is disabled.';
}

might produce

Result

The weblinks component is enabled.

 
references/joomla.framework/application/jcomponenthelper-isenabled.txt (671 views) · Last modified: 2007/08/15 14:50