API17:JPluginHelper::importPlugin
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JPluginHelper::importPlugin|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JPluginHelper::importPlugin|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function importPlugin ( |
| + | $type | ||
| + | $plugin=null | ||
| + | $autocreate=true | ||
| + | $dispatcher=null | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 42: | Line 44: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' boolean True on success. | |
| − | boolean True on success. | + | * '''Defined''' on line 85 of libraries/joomla/plugin/helper.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/plugin/helper.php | + | * '''Referenced by''' |
| − | * | + | ** [[JAuthentication::__construct/11.1|JAuthentication::__construct]] |
| − | + | ** [[JEditor::_loadEditor/11.1|JEditor::_loadEditor]] | |
| − | * [[JAuthentication::__construct/11.1|JAuthentication::__construct]] | + | ** [[JUser::delete/11.1|JUser::delete]] |
| − | * [[JEditor::_loadEditor/11.1|JEditor::_loadEditor]] | + | ** [[JModelAdmin::delete/11.1|JModelAdmin::delete]] |
| − | * [[JUser::delete/11.1|JUser::delete]] | + | ** [[JApplication::dispatch/11.1|JApplication::dispatch]] |
| − | * [[JModelAdmin::delete/11.1|JModelAdmin::delete]] | + | ** [[JEditor::getButtons/11.1|JEditor::getButtons]] |
| − | * [[JApplication::dispatch/11.1|JApplication::dispatch]] | + | ** [[JUserHelper::getProfile/11.1|JUserHelper::getProfile]] |
| − | * [[JEditor::getButtons/11.1|JEditor::getButtons]] | + | ** [[JApplication::initialise/11.1|JApplication::initialise]] |
| − | * [[JUserHelper::getProfile/11.1|JUserHelper::getProfile]] | + | ** [[JInstaller::install/11.1|JInstaller::install]] |
| − | * [[JApplication::initialise/11.1|JApplication::initialise]] | + | ** [[JHtmlContent::prepare/11.1|JHtmlContent::prepare]] |
| − | * [[JInstaller::install/11.1|JInstaller::install]] | + | ** [[JModelForm::preprocessForm/11.1|JModelForm::preprocessForm]] |
| − | * [[JHtmlContent::prepare/11.1|JHtmlContent::prepare]] | + | ** [[JModelAdmin::publish/11.1|JModelAdmin::publish]] |
| − | * [[JModelForm::preprocessForm/11.1|JModelForm::preprocessForm]] | + | ** [[JApplication::render/11.1|JApplication::render]] |
| − | * [[JModelAdmin::publish/11.1|JModelAdmin::publish]] | + | ** [[JApplication::route/11.1|JApplication::route]] |
| − | * [[JApplication::render/11.1|JApplication::render]] | + | ** [[JUser::save/11.1|JUser::save]] |
| − | * [[JApplication::route/11.1|JApplication::route]] | + | ** [[JModelAdmin::save/11.1|JModelAdmin::save]] |
| − | * [[JUser::save/11.1|JUser::save]] | + | ** [[JInstaller::uninstall/11.1|JInstaller::uninstall]] |
| − | * [[JModelAdmin::save/11.1|JModelAdmin::save]] | + | ** [[JInstaller::update/11.1|JInstaller::update]] |
| − | * [[JInstaller::uninstall/11.1|JInstaller::uninstall]] | + | |
| − | * [[JInstaller::update/11.1|JInstaller::update]] | + | |
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JPluginHelper::importPlugin source code''' on [[jplatform:plugin/helper.php#cl-77|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JPluginHelper/11.1|JPluginHelper]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Plugin/11.1|Plugin]] | ||
| + | * [[JPluginHelper::importPlugin|Other versions of JPluginHelper::importPlugin]] | ||
| + | {{SeeAlso:JPluginHelper::importPlugin}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JPluginHelper::importPlugin|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JPluginHelper::importPlugin|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 81: | Line 83: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JPluginHelper]][[Category:JPluginHelper::importPlugin]]</noinclude> | <noinclude>[[Category:JPluginHelper]][[Category:JPluginHelper::importPlugin]]</noinclude> | ||
Revision as of 21:29, 27 April 2011
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.
JPluginHelper::importPlugin
Description
Loads all the plugin files for a particular type if no specific plugin is specified otherwise only the specific pugin is loaded.
Description:JPluginHelper::importPlugin [Edit Descripton]
public static function importPlugin ( $type $plugin=null $autocreate=true $dispatcher=null )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $type | string | The plugin type, relates to the sub-directory in the plugins directory. | |
| $plugin | string | null | The plugin name. |
| $autocreate | boolean | true | |
| $dispatcher | null | Optionally allows the plugin to use a different dispatcher. |
- Returns boolean True on success.
- Defined on line 85 of libraries/joomla/plugin/helper.php
- Since
- Referenced by
- JAuthentication::__construct
- JEditor::_loadEditor
- JUser::delete
- JModelAdmin::delete
- JApplication::dispatch
- JEditor::getButtons
- JUserHelper::getProfile
- JApplication::initialise
- JInstaller::install
- JHtmlContent::prepare
- JModelForm::preprocessForm
- JModelAdmin::publish
- JApplication::render
- JApplication::route
- JUser::save
- JModelAdmin::save
- JInstaller::uninstall
- JInstaller::update
See also
-
JPluginHelper::importPlugin source code on BitBucket
-
Class JPluginHelper
-
Subpackage Plugin
- Other versions of JPluginHelper::importPlugin
SeeAlso:JPluginHelper::importPlugin [Edit See Also]
User contributed notes
<CodeExamplesForm />
