DokuWiki

It's better when it's simple

用户工具

站点工具


zh:devel:events_list

事件的参考列表

下面是由DokuWiki的事件系统实现的所有事件的列表,用于使用动作插件。为了能够选择正确的事件,在请求/doku.php?id=start&do=show查看源代码的流程,以解释DokuWiki的基础知识。

在编写新插件时,一定要检查添加了什么事件。有些可能只在最近的DokuWiki开发版本中可用。

事件名称描述可阻止添加于移除
@!FILE!@
ACTION_ACT_PREPROCESSHandling ?do= actionsyes2006-04-25
ACTION_DENIED_TPLCONTENTSuppress login form when access is deniedyes2022-01-10
ACTION_EXPORT_POSTPROCESSpostprocess the output of a page requested for exportno2008-08-28
ACTION_HANDLE_SUBSCRIBEhandle, process & generate data for a subscribe requestyes2010-01-20
ACTION_HEADERS_SENDmodify the HTTP headers sent by Dokuwikiyes2006-04-25
ACTION_SHOW_REDIRECTintercept redirects after postsyes2008-10-26
ADMINPLUGIN_ACCESS_CHECKAllows to intercept and change the access to admin pluginsyes2018-12-10
AJAX_CALL_UNKNOWNHandle AJAX callsyes2006-08-09
AUTH_ACL_CHECKWraps around checking the ACLs for a user on a given page, a media or namespaceyes2014-01-19
AUTH_LOGIN_CHECKintercept requests before authenticationyes2009-03-13
AUTH_PASSWORD_GENERATEModify how new user passwords are generatedyes2013-06-16
AUTH_USER_CHANGEIntercept user data modifications before they are sent to the auth backendyes2008-08-17
COMMON_NOTIFY_ADDRESSLISTManipulate the address list for a subscription mail notification after an edityes2010-01-20
COMMON_PAGETPL_LOADenhance or replace namespace templatesyes2011-02-03
COMMON_PAGE_FROMTEMPLATEenhance or replace namespace templatesyes2010-03-102011-02-03
COMMON_USER_LINKLets modify/replace the user interwiki linkyes2014-03-16
COMMON_WIKIPAGE_SAVEIntercept or modify saving of a wiki pageyes2016-02-24
COMMON_WORDBLOCK_BLOCKEDIntercept wordblockyes2008-10-12
CONFUTIL_CDN_SELECTPick the URLs to load scripts from depending on the jquerycdn settingyes2017-02-03
CSS_CACHE_USEmanipulate the CSS cacheyes2017-08-01
CSS_STYLES_INCLUDEDmodify or prevent the list of included CSS filesyes2017-08-01
DETAIL_STARTEDThe image detail page prepares to do its workno2012-09-10
DOKUWIKI_DONErun some code after DokuWiki finished all its processingno2006-04-25
DOKUWIKI_INIT_DONEFired when the DokuWiki environment has been initializedno2022-04-28
DOKUWIKI_STARTEDDokuWiki prepares to do its workno2006-04-25
DRAFT_SAVEModify draft savingyes2018-07-29
EDIT_FORM_ADDTEXTAREAadd elements to edit forms for editing the given wikitextyes2020-10-13
FEED_DATA_PROCESSProcess the feed data into feed itemsyes2009-11-10
FEED_ITEM_ADDManipulate RSS feed itemsyes2007-07-18
FEED_MODE_UNKNOWNAn unknown feed mode was requestedyes2009-11-10
FEED_OPTS_POSTPROCESSCan modify the parameters for the feed creationno2009-11-10
FETCH_MEDIA_STATUShandles status codes when downloading a media resourceyes2010-02-23
FORM_CONFLICT_OUTPUTmodify the conflict handling form objectno2020-10-13
FORM_DRAFT_OUTPUTmodify the draft recovery form objectno2020-10-13
FORM_EDIT_OUTPUTmodify the edit form objectno2020-10-13
FORM_LOGIN_OUTPUTmodify the login form objectno2020-10-13
FORM_PROFILEDELETE_OUTPUTmodify the delete profile form objectno2020-10-13
FORM_QUICKSEARCH_OUTPUTAdjust the quick search formNo2018-04-05
FORM_RECENT_OUTPUTmodify the recent changes form objectno2020-10-13
FORM_REGISTER_OUTPUTmodify the register form objectno2020-10-13
FORM_RESENDPWD_OUTPUTmodify the resend password form objectno2020-10-13
FORM_REVISIONS_OUTPUTmodify the old revisions form objectno2020-10-13
FORM_SEARCHMEDIA_OUTPUTmodify the search media form objectno2020-10-13
FORM_SEARCH_OUTPUTAdjust the form on the search pageNo2018-04-05
FORM_SUBSCRIBE_OUTPUTmodify the subscribe form objectno2020-10-13
FORM_UPDATEPROFILE_OUTPUTmodify the update profile form objectno2020-10-13
FORM_UPLOAD_OUTPUTmodify the upload form objectno2020-10-13
FULLTEXT_PHRASE_MATCHAllow phrase matching with content from pluginsyes2014-03-02
FULLTEXT_SNIPPET_CREATESearch result snippet creationyes2009-10-26
HTML_CONFLICTFORM_OUTPUTmodify the conflict handling HTMLno2007-07-302020-10-13
HTML_DRAFTFORM_OUTPUTmodify the draft recovery HTMLno2007-07-302018-07-29
HTML_EDITFORM_OUTPUTmodify the edit form HTMLno2007-07-302020-10-13
HTML_EDIT_FORMSELECTIONadd elements to edit forms for editing the given wikitextyes2010-01-19
HTML_LOGINFORM_OUTPUTmodify the login form HTMLno2007-07-302020-10-13
HTML_PAGE_FROMTEMPLATEreplace namespace templates functionalityyes2006-09-162010-03-10
HTML_PROFILEDELETEFORM_OUTPUTmodify the delete profile HTMLno2013-07-312020-10-13
HTML_RECENTFORM_OUTPUTmodify the recent changes HTMLno2008-10-122020-10-13
HTML_REGISTERFORM_OUTPUTmodify the register form HTMLno2007-07-302020-10-13
HTML_RESENDPWDFORM_OUTPUTmodify the resend password HTMLno2007-07-302020-10-13
HTML_REVISIONSFORM_OUTPUTmodify the old revisions HTMLno2008-10-122020-10-13
HTML_SECEDIT_BUTTONprepares section edit button data for event triggering used as a callback in html_secedityes2010-11-07
HTML_SHOWREV_OUTPUTmodify the showrev warning HTMLyes2015-02-19
HTML_SUBSCRIBEFORM_OUTPUTmodify the subscribe form HTMLno2010-01-202020-10-13
HTML_UPDATEPROFILEFORM_OUTPUTmodify the update profile HTMLno2007-07-302020-10-13
HTML_UPLOADFORM_OUTPUTmodify the uploadform HTMLno2008-10-292020-10-13
HTTPCLIENT_REQUEST_SENDrewrite outgoing HTTP(s) requestsyes2009-03-13
IMAGEMOD_CACHE_USEmanipulate the image cacheyes2022-02-04
INDEXER_PAGE_ADDmanipulate the full text indexing processyes2007-02-27
INDEXER_TASKS_RUNrun custom "Cron jobs"yes2008-02-26
INDEXER_TEXT_PREPAREPage tokenizing (aka. splitting the text into separate words)yes2011-03-19
INDEXER_VERSION_GETConstruct the version number of the indexerno2011-03-06
INFOUTIL_MSG_SHOWcatch calls to msg() to record the message or modify outputyes2020-06-01
INFO_DEPRECATION_LOGLog a call to a deprecated method, function or propertyyes2018-06-05
INIT_LANG_LOADmanipulate the loading of the main language filesyes2012-03-10
IO_NAMESPACE_CREATEDcatch namespace creationsno2006-07-05
IO_NAMESPACE_DELETEDcatch namespace deletionsno2006-07-05
IO_WIKIPAGE_READintercept reading the raw wiki text datano2006-07-05
IO_WIKIPAGE_WRITEintercept page writesno2006-07-05
JS_CACHE_USEmanipulate the JavaScript cacheyes2012-03-10
JS_SCRIPT_LISTmanipulate the list of JavaScripts that will be concatenatedno2017-02-14
LOGGER_DATA_FORMATIntercept or modify loggingyes2022-01-22
MAIL_MESSAGE_SENDmanage mail sending from DokuWikiyes2007-09-30
MANIFEST_SENDChange the PWA manifest sent to the clientNo2018-04-05
MEDIAMANAGER_CONTENT_OUTPUTWraps the output of the (right) content pane in the Media Manageryes2009-08-30
MEDIAMANAGER_STARTEDThe media manager prepares to do its workno2008-12-10
MEDIA_DELETE_FILEIntercept file deletionyes2008-10-01
MEDIA_RESIZEhandles media resizing or croppingyes2020-06-30
MEDIA_SENDFILEmanipulate media file downloads from the wikiyes2008-06-23
MEDIA_UPLOAD_FINISHexecute an action on file uploadsyes2007-09-09
MENU_ITEMS_ASSEMBLYHandle the items in the various menus provided by templatesyes2017-09-01
PAGEUTILS_ID_HIDEPAGEchecks if a page is hiddenyes2012-11-05
PARSER_CACHE_USEmanipulate the cache validityyes2006-09-16
PARSER_HANDLER_DONEfinalize instruction datano2006-05-22
PARSER_LOCALE_XHTMLModify localized textyes2022-01-10
PARSER_METADATA_RENDERmanipulate metadatayes2006-11-26
PARSER_WIKITEXT_PREPROCESSmanipulate raw wiki textno2006-07-24
PLUGIN_CONFIG_PLUGINLISTAllow modification of the plugin list used by the config pluginno2009-01-19
PLUGIN_POPULARITY_DATA_SETUPTriggered by the popularity plugin to let plugins add their own popularity datano2015-05-27
RENDERER_CONTENT_POSTPROCESSPostprocess renderer outputno2006-07-24
RPC_CALL_ADDMap custom RPC call to existing one.no2012-03-232024-01-12
SEARCH_QUERY_FULLPAGEFilter/reorder search resultsyes2008-08-11
SEARCH_QUERY_PAGELOOKUPFilter/reorder search resultsyes2008-08-11
SEARCH_RESULT_FULLPAGEAdjust how a fullpage search result is displayedNo2018-04-05
SEARCH_RESULT_PAGELOOKUPAdjust how pagename match is displayed after searchNo2018-04-05
SITEMAP_GENERATEGenerate a sitemap XML file from sitemap itemsyes2010-11-12
SITEMAP_PINGPing search engines with the sitemap URLyes2010-11-12
TASK_RECENTCHANGES_TRIMModify the list of recent changesno2018-05-17
TEMPLATE_PAGETOOLS_DISPLAYLets the pagetools in supported templates be modified.yes2013-11-182017-09-01
TEMPLATE_SITETOOLS_DISPLAYLets the sitetools in supported templates be modified.yes2013-11-182017-09-01
TEMPLATE_USERTOOLS_DISPLAYLets the usertools in supported templates be modified.yes2013-11-182017-09-01
TOOLBAR_DEFINEAdd buttons to the toolbaryes2007-02-27
TPL_ACTION_GETAdd or modify action link propertiesyes2015-08-052017-09-01
TPL_ACT_RENDEROutput XHTML before and/or after a pageyes2006-04-25
TPL_ACT_UNKNOWNOutput XHTML in the main DokuWiki windowyes2006-04-25
TPL_CONTENT_DISPLAYPost process the XHTML outputyes2006-04-25
TPL_IMG_DISPLAYThe image output on an image detail pageyes2010-06-26
TPL_METAHEADER_OUTPUTManipulate meta headersyes2006-09-16
TPL_TOC_RENDERPre-/postprocess the TOCno2008-08-30
XMLRPC_CALLBACK_REGISTERAdd XML-RPC callbacksyes2008-08-242012-03-23



命名结构

事件名称遵循标准结构:

<location>_<event_data>_<action_or_state>
  • <location> — 短名称或提示,用来标识DokuWiki的部分,它生成事件。
  • <event_data> — 简短的名称或提示,用来识别事件传递的数据
  • <action_or_state> — 如果事件有一个默认动作,那么这将表明该操作是什么;如果没有默认的操作,这将表明触发事件的状态或其他原因。

例子:

  • PARSER_HANDLER_DONE
    • 事件是在 parser 脚本中触发的,
    • handler 对象是事件数据,
    • 没有动作;解析器的状态,在它的处理程序步骤中,是 done 即。处理程序完成了它的处理。
  • ACTION_HEADERS_SEND
    • 事件是在action.php中触发的,
    • 事件数据是一个 headers数组,
    • 默认动作是发送标头。



另请参阅

zh/devel/events_list.txt · 最后更改: 2017-08-15 04:33 由 223.74.246.91

除额外注明的地方外,本维基上的内容按下列许可协议发布: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki