プラグイン

From Joomla! Documentation

Revision as of 01:52, 8 March 2014 by Richell (talk | contribs) (Created page with "プラグインはそれらが実行されているイベントに応じて、グループ化されます。イベントの種類によってグループ化されたプラグ...")
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Kiswahili • ‎Nederlands • ‎català • ‎eesti • ‎español • ‎français • ‎italiano • ‎português • ‎português do Brasil • ‎български • ‎中文(台灣)‎ • ‎日本語

A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events. Joomla provides a set of core plugin events, but any extension can fire (custom) events. When a particular event occurs, all plugin functions of the type associated with the event are executed in sequence. This is a powerful way of extending the functionality of Joomla. It also offers extension developers a way to allow other extensions to respond to their actions, making extensions extensible.

The Joomla! plugin architecture follows the Observer design pattern. The JPlugin class provides the means to register custom plugin code with core or custom events. The JEventDispatcher class is an event handler which calls all plugins registered for a particular event, when that event is triggered. In Joomla 4.x this has been moved to the \Joomla\Event\Dispatcher class in Joomla, and additionally follows the Mediator design pattern

See also: Component, Module, Template


もっと詳しく

初心者向け

Joomlaでプラグインをどのようにインストールして使用するかは Joomlaのプラグイン管理を読むと良いでしょう。

中級者向け

プラグインについての理解を深めるには、 Joomla!の基本プラグインの作成を参照ください。

カスタムモジュールまたはコンポーネントで基本のコンテンツプラグインを使っている場合はをあなたのエクステンションに、コンテンツプラグインをトリガするを読むと良いでしょう。

上級者向け

プラグインシステムの動作上の原理を理解するためにプラグイン開発者向けの概要を参照ください。さらに設計されているコンポーネントでこれを実装するには コンポーネント内のプラグインをサポートを読むといいでしょう。

プラグインを使う

プラグインはそれらが実行されているイベントに応じて、グループ化されます。イベントの種類によってグループ化されたプラグインの全一覧は、 こちらから見つけられます。(the names of a lot of events changed between Joomla 1.5Joomla 2.5 の間で変更された多くのイベント名は here で変更の全一覧を参照ください)。

There are further tutorials using the user triggers on how to create an authentication plugin to help users log into Joomla and creating a profile plugin for Joomla.

A more complex example of using plugins to create a new system router to produce URLs is also available (Joomla 2.5 only).