Actions

API17

Difference between revisions of "JPlugin"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/plugin/plugin.php
 
libraries/joomla/plugin/plugin.php
 +
* see source code in [[jplatform:plugin/plugin.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Plugin/11.1|Plugin]]
 
[[Subpackage Plugin/11.1|Plugin]]
Line 27: Line 28:
 
<source lang="php">jimport( 'joomla.plugin.plugin' );</source>
 
<source lang="php">jimport( 'joomla.plugin.plugin' );</source>
 
===See also===
 
===See also===
 +
* JPlugin source code in [[jplatform:plugin/plugin.php|BitBucket]]
 
* [[JPlugin|Other versions of this class]]
 
* [[JPlugin|Other versions of this class]]
 
{{SeeAlso:JPlugin}}
 
{{SeeAlso:JPlugin}}

Revision as of 18:00, 23 April 2011

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.

[Edit Descripton] Description:JPlugin

Defined in

libraries/joomla/plugin/plugin.php

Subpackage

Plugin

Extends

JEvent

Extended by

Methods

Method name Description
__construct Constructor.
loadLanguage Loads the plugin language file.

Importing

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

public

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]

Examples

<CodeExamplesForm />