[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/content/loadmodule/ -> loadmodule.php (summary)

(no description)

Copyright: (C) 2006 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 241 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PlgContentLoadmodule:: (4 methods):
  onContentPrepare()
  _load()
  _loadmod()
  _loadid()


Class: PlgContentLoadmodule  - X-Ref

Plugin to enable loading modules into content (e.g. articles)
This uses the {loadmodule} syntax

onContentPrepare($context, &$article, &$params, $page = 0)   X-Ref
Plugin that loads module positions within content

param: string   $context   The context of the content being passed to the plugin.
param: object   &$article  The article object.  Note $article->text is also available
param: mixed    &$params   The article params
param: integer  $page      The 'page' number
return: void

_load($position, $style = 'none')   X-Ref
Loads and renders the module

param: string  $position  The position assigned to the module
param: string  $style     The style assigned to the module
return: mixed

_loadmod($module, $title, $style = 'none')   X-Ref
This is always going to get the first instance of the module type unless
there is a title.

param: string  $module  The module title
param: string  $title   The title of the module
param: string  $style   The style of the module
return: mixed

_loadid($id)   X-Ref
Loads and renders the module

param: string  $id  The id of the module
return: mixed



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer