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 PlgContentFields
+ Graphe d'héritage de PlgContentFields:

Fonctions membres publiques

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

Fonctions membres privées

 prepare ($string, $context, $item)
 

Description détaillée

Plug-in to show a custom field in eg an article This uses the {fields ID} syntax

Depuis
3.7.0

Documentation des fonctions membres

◆ onContentPrepare()

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

Plugin that shows a custom field

Paramètres
string$contextThe context of the content being passed to the plugin.
object&$itemThe item object. Note $article->text is also available
object&$paramsThe article params
int$pageThe 'page' number
Renvoie
void
Depuis
3.7.0

Références $context, $item, elseif, JPATH_ADMINISTRATOR, et JLoader\register().

◆ prepare()

prepare (   $string,
  $context,
  $item 
)
private

Prepares the given string by parsing {field} and {fieldgroup} groups and replacing them.

Paramètres
string$stringThe text to prepare
string$contextThe context of the content
object$itemThe item object
Renvoie
string
Depuis
3.8.1

Références $context, $field, $fields, $groups, $i, $id, $item, $layout, $output, $parts, FieldsHelper\extract(), FieldsHelper\getFields(), et FieldsHelper\render().


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