Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe PlgContentLoadmodule
+ Graphe d'héritage de PlgContentLoadmodule:

Fonctions membres publiques

 onContentPrepare ($context, &$article, &$params, $page=0)
 

Fonctions membres protégées

 _load ($position, $style='none')
 
 _loadmod ($module, $title, $style='none')
 
 _loadid ($id)
 

Attributs protégés statiques

static $modules = array()
 
static $mods = array()
 

Description détaillée

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

Depuis
1.5

Documentation des fonctions membres

◆ _load()

_load (   $position,
  $style = 'none' 
)
protected

Loads and renders the module

Paramètres
string$positionThe position assigned to the module
string$styleThe style assigned to the module
Renvoie
mixed
Depuis
1.6

Références $document, $module, $modules, $params, $position, $renderer, $style, et getDocument.

◆ _loadid()

_loadid (   $id)
protected

Loads and renders the module

Paramètres
string$idThe id of the module
Renvoie
mixed
Depuis
3.9.0

Références $document, $id, $modules, $params, $renderer, et getDocument.

◆ _loadmod()

_loadmod (   $module,
  $title,
  $style = 'none' 
)
protected

This is always going to get the first instance of the module type unless there is a title.

Paramètres
string$moduleThe module title
string$titleThe title of the module
string$styleThe style of the module
Renvoie
mixed
Depuis
1.6

Références $document, $mod, $module, $name, $params, $renderer, $style, $title, et getDocument.

◆ onContentPrepare()

onContentPrepare (   $context,
$article,
$params,
  $page = 0 
)

Plugin that loads module positions within content

Paramètres
string$contextThe context of the content being passed to the plugin.
object&$articleThe article object. Note $article->text is also available
mixed&$paramsThe article params
integer$pageThe 'page' number
Renvoie
mixed true if there is an error. Void otherwise.
Depuis
1.6

Références $article, $context, $id, $module, $name, $output, $position, $start, $style, et null.

Documentation des champs

◆ $mods

$mods = array()
staticprotected

◆ $modules

$modules = array()
staticprotected

La documentation de cette classe a été générée à partir du fichier suivant :