Portal

Difference between revisions of "Plugin Development/Intro/zh-tw"

From Joomla! Documentation

< Portal:Plugin Development
(Created page with "什麼是外掛?")
(Created page with "zh-tw")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude><languages /></noinclude>
 
<noinclude><languages /></noinclude>
This page contains many links to documentation concerning Plugin Development for {{JVer|2.5}} and {{JVer|3.x}}. A good place to start is with the [[#Reading list|Reading list]] articles below as they provide a good introductory base of knowledge to build on.
+
本頁包含了許多從說明文件摘錄的超連結內容,關於{{JVer|2.5}} 以及 {{JVer|3.x}} 模外掛開發。.一個好的開始是閱讀底下的'''[[#推薦閱讀|推薦閱讀]]''' 文章,因為他們提供了很好的引導來幫助您建立基礎知識。
{{tip|{{Chunk:Plugin/en}}|title=什麼是外掛?}}
+
{{tip|{{Chunk:Plugin/zh-tw}}|title=什麼是外掛?}}
  
 
<noinclude>
 
<noinclude>
 
[[Category:Landing subpages]]
 
[[Category:Landing subpages]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:35, 16 January 2021

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎Nederlands • ‎中文(台灣)‎

本頁包含了許多從說明文件摘錄的超連結內容,關於Joomla 2.5 以及 Joomla 3.x 模外掛開發。.一個好的開始是閱讀底下的推薦閱讀 文章,因為他們提供了很好的引導來幫助您建立基礎知識。

什麼是外掛?

外掛是 Joomla! 擴充套件的一種類型。外掛提供了功能,來關聯於觸發事件。Joomla 提供了一些核心的外掛事件,然而任何擴充套件都可以觸發(客製化)事件。當特定事件發生時,所有和該事件關聯的外掛功能會依次被執行。這是擴展Joomla核心功能強大的方式。這也提供擴充套件開發者一個途徑,讓其它擴充套件能回應他們的行為,讓擴充套件還能再被擴充。

Joomla! 外掛架構依循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

延伸閱讀: 元件, 模組,佈景主題