Actions

API17

Difference between revisions of "JPluginHelper::importPlugin"

From Joomla! Documentation

(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>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JPluginHelper::importPlugin ($type, $plugin=null, $autocreate=true, $dispatcher=null)
+
public static function importPlugin (
 +
        $type
 +
        $plugin=null
 +
        $autocreate=true
 +
        $dispatcher=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 42: Line 44:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True on success.
boolean True on success.
+
* '''Defined''' on line 85 of libraries/joomla/plugin/helper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/plugin/helper.php (line 85)
+
* '''Referenced by'''
* see source code in [[jplatform:plugin/helper.php#cl-85|BitBucket]]
+
** [[JAuthentication::__construct/11.1|JAuthentication::__construct]]
===Referenced by===
+
** [[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>
* [[JPluginHelper/11.1|JPluginHelper]]
+
===User contributed notes===
* [[JPluginHelper::importPlugin|Other versions of this method]]
+
{{SeeAlso:JPluginHelper::importPlugin}}
+
===Examples===
+
 
<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

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 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.

See also

SeeAlso:JPluginHelper::importPlugin [Edit See Also]

User contributed notes

<CodeExamplesForm />