Difference between revisions of "JPlugin"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (User contributed notes: bad link repair)
Line 45: Line 45:
format= ,,,
format= ,,,
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JPlugin]]</noinclude>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JPlugin]]</noinclude>

Revision as of 13:59, 29 August 2012

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.

Joomla 11.1 JPlugin


Description:JPlugin [Edit Descripton]


Visibility Method name Description
public __construct Constructor.
public loadLanguage Loads the plugin language file.
  • Defined in libraries/joomla/plugin/plugin.php
  • Extends JEvent


jimport( 'joomla.plugin.plugin' );

See also

JPlugin is an abstract class. JPlugin Inherits JEvent.

Located in /libraries/joomla/plugin/plugin.php

It's mainly used for loading language file.

Public Member Functions: __construct (&$subject, $config=array())

   loadLanguage ($extension= , $basePath=JPATH_ADMINISTRATOR)

Data Fields: $params = null Protected Attributes

   $_name = null
        $_type = null

Constructor & Destructor Documentation:

__construct ( &$ subject, $ config = array() ) Constructor

Parameters: object $subject The object to observe array $config An optional associative array of configuration settings. Recognized key values include 'name', 'group', 'params', 'language' (this list is not meant to be comprehensive).

Member Function Documentation

loadLanguage ( $ extension = , $ basePath = JPATH_ADMINISTRATOR ) Loads the plugin language file


Parameters: string $extension The extension for which a language file should be loaded string $basePath The basepath to use Returns: boolean True, if the file has successfully loaded.

[Edit See Also]

User contributed notes

<CodeExamplesForm />