CMSPlugin
Extends JEventPlugin Class
abstract
| since |
1.5 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
Constructor
__construct(object &subject, array config = array()) : mixed
| since |
1.5 |
|---|
Arguments
- subject
objectThe object to observe- config
arrayAn optional associative array of configuration settings. Recognized key values include 'name', 'group', 'params', 'language' (this list is not meant to be comprehensive).
Response
mixed
loadLanguage
Loads the plugin language file
loadLanguage(string extension = '', string basePath = JPATH_ADMINISTRATOR) : bool
| since |
1.5 |
|---|
Arguments
- extension
stringThe extension for which a language file should be loaded- basePath
stringThe basepath to use
Response
boolTrue, if the file has successfully loaded.
Properties
params
A Registry object holding the parameters for the plugin
| since |
1.5 |
|---|
Type(s)
\Joomla\Registry\Registry
_name
The name of the plugin
| since |
1.5 |
|---|
Type(s)
string
_type
The plugin type
| since |
1.5 |
|---|
Type(s)
string
autoloadLanguage
Affects constructor behavior. If true, language files will be loaded automatically.
| since |
3.1 |
|---|
Type(s)
bool