Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe PluginHelper

Fonctions membres publiques statiques

static getLayoutPath ($type, $name, $layout='default')
 
static getPlugin ($type, $plugin=null)
 
static isEnabled ($type, $plugin=null)
 
static importPlugin ($type, $plugin=null, $autocreate=true, DispatcherInterface $dispatcher=null)
 

Fonctions membres protégées statiques

static import ($plugin, $autocreate=true, DispatcherInterface $dispatcher=null)
 

Attributs protégés statiques

static $plugins = null
 

Description détaillée

Plugin helper class

Depuis
1.5

Documentation des fonctions membres

◆ getLayoutPath()

static getLayoutPath (   $type,
  $name,
  $layout = 'default' 
)
static

Get the path to a layout from a Plugin

Paramètres
string$typePlugin type
string$namePlugin name
string$layoutLayout name
Renvoie
string Layout path
Depuis
3.0

Références $layout, $name, $temp, $template, $type, Factory\getApplication(), JPATH_PLUGINS, et JPATH_THEMES.

Référencé par FieldsPlugin\onCustomFieldsPrepareField().

◆ getPlugin()

static getPlugin (   $type,
  $plugin = null 
)
static

Get the plugin data of a specific type if no specific plugin is specified otherwise only the specific plugin data is returned.

Paramètres
string$typeThe plugin type, relates to the subdirectory in the plugins directory.
string$pluginThe plugin name.
Renvoie
mixed An array of plugin data objects, or a plugin data object.
Depuis
1.5

Références $result, et $type.

Référencé par Captcha\_load(), Editor\_loadEditor(), Authentication\authenticate(), RedirectHelper\collectUrlsEnabled(), HtmlView\display(), Editor\getButtons(), CMSHelper\getCurrentLanguage(), ContentHelper\getCurrentLanguage(), StatisticsModel\getData(), TinymcebuilderField\getLayoutData(), SiteApplication\initialiseApp(), Associations\isEnabled(), MediaHelper\isValidLocalDirectory(), PluginController\oauthcallback(), et ServiceProviderInterface\register().

◆ import()

static import (   $plugin,
  $autocreate = true,
DispatcherInterface  $dispatcher = null 
)
staticprotected

Loads the plugin file.

Paramètres
object$pluginThe plugin.
boolean$autocreateTrue to autocreate.
DispatcherInterface$dispatcherOptionally allows the plugin to use a different dispatcher.
Renvoie
void
Depuis
3.2

Références $hash, et Factory\getApplication().

◆ importPlugin()

static importPlugin (   $type,
  $plugin = null,
  $autocreate = true,
DispatcherInterface  $dispatcher = null 
)
static

Loads all the plugin files for a particular type if no specific plugin is specified otherwise only the specific plugin is loaded.

Paramètres
string$typeThe plugin type, relates to the subdirectory in the plugins directory.
string$pluginThe plugin name.
boolean$autocreateAutocreate the plugin.
DispatcherInterface$dispatcherOptionally allows the plugin to use a different dispatcher.
Renvoie
boolean True on success.
Depuis
1.5

Références $i, $results, $type, Factory\getApplication(), name, et null.

Référencé par Authentication\__construct(), Editor\_loadEditor(), RegistrationModel\activate(), UserModel\activate(), Authentication\authorise(), IndexerController\batch(), ArticleModel\batchMove(), UserModel\block(), ContactModel\buildContactExtendedData(), CallbackController\callback(), UpdateModel\cleanUp(), CategoryView\commonCategoryDisplay(), ApiModel\createFile(), ApiModel\createFolder(), UpdateModel\createUpdateFile(), MapsModel\delete(), IndexModel\delete(), StyleModel\delete(), GroupModel\delete(), MenuModel\delete(), UserModel\delete(), ApiModel\delete(), ModuleModel\delete(), User\delete(), AdminModel\delete(), Installer\discover_install(), AdministratorApplication\dispatch(), SiteApplication\dispatch(), ApiApplication\dispatch(), HtmlView\display(), InstallerHelper\downloadPackage(), StyleModel\duplicate(), ConsoleApplication\execute(), Workflow\executeTransition(), ArticleModel\featured(), QuickIconHelper\getButtons(), Editor\getButtons(), Cache\getCacheKey(), CapabilitiesModel\getCapabilities(), Helper\getContentExtras(), RegistrationModel\getData(), FieldsHelper\getFields(), FieldsHelper\getFieldTypes(), FileModel\getForm(), FieldModel\getForm(), NoteModel\getItem(), DataField\getLayoutData(), SampledataHelper\getList(), StatsHelper\getList(), Mfa\getMfaMethods(), PrivacyStatusHelper\getPrivacyPolicyInfo(), UserHelper\getProfile(), Joomla\Component\Media\Administrator\Provider\getProviderManager(), StatsAdminHelper\getStats(), Joomla\CMS\MVC\Model\importWorkflowPlugins(), Indexer\index(), FinderIndexCommand\index(), CMSApplication\initialiseApp(), InstallModel\install(), UpdateModel\install(), Installer\install(), Cache\isExcluded(), CMSApplication\login(), CMSApplication\logout(), PluginController\oauthcallback(), Cache\onAfterRoute(), IndexController\optimise(), IndexerController\optimize(), Content\prepare(), Helper\prepareContent(), JsonapiView\prepareItem(), UpdateModel\preparePreUpdate(), Joomla\CMS\MVC\Model\preprocessData(), FormModel\preprocessData(), Joomla\CMS\MVC\Model\preprocessForm(), FormModel\preprocessForm(), TransitionModel\preprocessForm(), TaskModel\preprocessForm(), ManageModel\publish(), MapsModel\publish(), IndexModel\publish(), CategoryModel\publish(), AdminModel\publish(), IndexModel\purge(), UpdatesitesModel\rebuild(), RegistrationModel\register(), Indexer\remove(), CMSApplication\render(), AdministratorApplication\route(), SiteApplication\route(), CMSApplication\route(), FieldModel\save(), GroupModel\save(), ComponentModel\save(), LanguageModel\save(), MenuModel\save(), ProfileModel\save(), TemplateModel\save(), StyleModel\save(), CategoryModel\save(), User\save(), ModuleModel\save(), AdminModel\save(), ItemModel\save(), IndexerController\start(), Versioning\store(), ContactController\submit(), Installer\uninstall(), Installer\update(), ApiModel\updateFile(), et FormModel\validate().

◆ isEnabled()

Documentation des champs

◆ $plugins

$plugins = null
staticprotected

La documentation de cette classe a été générée à partir du fichier suivant :