JComponentHelper
Component helper class
package |
Joomla.Platform |
---|---|
subpackage |
Application |
since |
11.1 |
Methods
_load
Load the installed components into the components property.
_load(string $option) : boolean
since |
11.1 |
---|
Arguments
- $option
string
The element value for the extension
Response
boolean
True on success
executeComponent
Execute the component.
executeComponent(string $path) : string
since |
11.3 |
---|
Arguments
- $path
string
The component path.
Response
string
The component output
filterText
Applies the global text filters to arbitrary text as per settings for current user groups
filterText(string $text) : string
since |
11.4 |
---|
Arguments
- $text
string
The string to filter
Response
string
The filtered string
getComponent
Get the component information.
getComponent(string $option, boolean $strict = false) : object
since |
11.1 |
---|
Arguments
- $option
string
The component option.- $strict
boolean
If set and the component does not exist, the enabled attribute will be set to false.
Response
object
An object with the information for the component.
getParams
Gets the parameter object for the component
getParams(string $option, boolean $strict = false) : \JRegistry
see | \JRegistry |
---|---|
since |
11.1 |
Arguments
- $option
string
The option for the component.- $strict
boolean
If set and the component does not exist, false will be returned
Response
\JRegistry
A JRegistry object.
isEnabled
Checks if the component is enabled
isEnabled(string $option, boolean $strict = false) : boolean
since |
11.1 |
---|
Arguments
- $option
string
The component option.- $strict
boolean
If set and the component does not exist, false will be returned.
Response
boolean
renderComponent
Render the component.
renderComponent(string $option, array $params = array()) : object
since |
11.1 |
---|
Arguments
- $option
string
The component option.- $params
array
The component parameters
Response
object
Properties
components
The component list cache
since |
11.1 |
---|
Type(s)
array