官方系列教材 - G计划

Joomla开发手册

In a standard installation of Joomla! we have several predefined Module events which, when triggered, call functions in the associated plugins.

onRenderModule

Description

This is an event that is called when a module on the front- or back-end is rendered.

Parameters

  • &module A reference to a Module object that holds all the data of the module
  • &attribs An array of attributes for the module

Return Value

None. Result will be omitted.

onAfterRenderModule

Description

This is an event that is called when after a module is rendered on the back- or front-end

Parameters

  • &module A reference to a Module object that holds all the data of the module
  • &attribs An array of attributes for the module

Return Value

None. Result will be omitted.

onAfterRenderModules

Description

This is an event that is called when after all modules are rendered on the back- or front-end for a given module position. Introduced in 

Parameters

  • &buffer

A reference to the output html of the modules being rendered

  • &params

An array of parameters for the module renderer

Return Value

None. Result will be omitted.

onPrepareModuleList

Description

This is an event that is called before the list of modules that must be rendered is created. If the &modules parameter is an array of module objects, the default module list generated by Joomla! is ignored.

Parameters

  • &modules Reference to a empty variable for the list of modules

Return Value

None. Result will be omitted.

onAfterModuleList

Description

This is an event that is called after the list of modules that must be rendered is created.

Parameters

  • &modules Reference to an array of module objects

Return Value

None. Result will be omitted.

onAfterCleanModuleList

Description

This is an event that is called after the module list is cleaned.

Parameters

  • &modules A reference to an array of rendered module objects

Return Value

None. Result will be omitted.

 

作者: 樱木花道

Joomla程序员,从J1.5到J4.x始终都在做Joomla相关开发定制工作,有超过10年行业经验,国内Joomla扩展开发商ZMAX团队的核心成员

作者网站:ZMAX程序人

评论 (0)

  • 最新在前
  • 最佳在前

第3章 处理URL请求参数

第5章 日志

第6章 错误和调试

第10章 缓存

第14章 路由系统