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

Fonctions membres publiques

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

Fonctions membres protégées

 _createToc (&$row, &$matches, &$page)
 
 _createNavigation (&$row, $page, $n)
 

Attributs protégés

 $list = array()
 

Description détaillée

Page break plugin

Usage:



or


or


or


Depuis
1.6

Documentation des fonctions membres

◆ _createNavigation()

_createNavigation ( $row,
  $page,
  $n 
)
protected

Creates the navigation for the item

Paramètres
object&$rowThe article object. Note $article->text is also available
int$pageThe page number
int$nThe total number of pages
Renvoie
void
Depuis
1.6

Références $n, $path, $row, et ContentHelperRoute\getArticleRoute().

◆ _createToc()

_createToc ( $row,
$matches,
$page 
)
protected

Creates a Table of Contents for the pagebreak

Paramètres
object&$rowThe article object. Note $article->text is also available
array&$matchesArray of matches of a regex in onContentPrepare
integer&$pageThe 'page' number
Renvoie
void
Depuis
1.6

Références $i, $input, $list, $path, $row, $title, elseif, ENT_QUOTES, ContentHelperRoute\getArticleRoute(), et htmlspecialchars.

◆ onContentPrepare()

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

Plugin that adds a pagebreak into the text and truncates text at that point

Paramètres
string$contextThe context of the content being passed to the plugin.
object&$rowThe article object. Note $article->text is also available
mixed&$paramsThe article params
integer$pageThe 'page' number
Renvoie
mixed Always returns void or true
Depuis
1.6

Références $context, $input, $key, $n, $params, $row, $style, $text, $title, $view, et elseif.

Documentation des champs

◆ $list

$list = array()
protected

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