JPlugin/1.5
(Bulk upload by Doxiki2) |
m (→See also: fixing link to API) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JPlugin== | ||
| + | ===Description=== | ||
| + | {{Description:JPlugin}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JPlugin|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JPlugin|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JPlugin::__construct/1.5|__construct]] | |[[JPlugin::__construct/1.5|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
| + | |public | ||
|[[JPlugin::JPlugin/1.5|JPlugin]] | |[[JPlugin::JPlugin/1.5|JPlugin]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
| + | |public | ||
|[[JPlugin::loadLanguage/1.5|loadLanguage]] | |[[JPlugin::loadLanguage/1.5|loadLanguage]] | ||
|Loads the plugin language file. | |Loads the plugin language file. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/plugin/plugin.php | ||
| + | * '''Extends''' [[JEvent/1.5|JEvent]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.plugin.plugin' );</source> | <source lang="php">jimport( 'joomla.plugin.plugin' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JPlugin''' on [http://api.joomla.org/1.5/Joomla-Framework/Plugin/JPlugin.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JPlugin source code''' on [[jframework15:plugin/plugin.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Plugin/1.5|Plugin]] | ||
| + | * [[JPlugin|Other versions of JPlugin]] | ||
| + | {{SeeAlso:JPlugin}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JPlugin|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JPlugin|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 44: | Line 47: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JPlugin]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JPlugin]]</noinclude> | ||
Latest revision as of 16:05, 13 February 2013
[edit]
JPlugin
[edit] Description
Description:JPlugin [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | JPlugin | Constructor. |
| public | loadLanguage | Loads the plugin language file. |
- Defined in libraries/joomla/plugin/plugin.php
- Extends JEvent
[edit] Importing
jimport( 'joomla.plugin.plugin' );
[edit] See also
-
JPlugin on api.joomla.org
-
JPlugin source code on JoomlaCode
-
Subpackage Plugin
- Other versions of JPlugin
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] User contributed notes
<CodeExamplesForm />