Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onContentBeforeDisplay ($context, &$row, &$params, $page=0) | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
setApplication (CMSApplicationInterface $application) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de PluginInterface | |
registerListeners () | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Pagenavigation plugin class.
onContentBeforeDisplay | ( | $context, | |
& | $row, | ||
& | $params, | ||
$page = 0 |
|||
) |
If in the article view and the parameter is enabled shows the page navigation
string | $context | The context of the content being passed to the plugin |
object | &$row | The article object |
mixed | &$params | The article params |
integer | $page | The 'page' number |
The following is needed as different menu items types utilise a different param to control ordering. For Blogs the orderby_sec
param is the order controlling param. For Table and List views it is the orderby
param.
Références $app, $context, $db, $lang, $list, $location, $now, $option, $params, $path, $query, $rows, $user, $view, Factory\getApplication(), Factory\getDate(), Joomla\CMS\MVC\Model\getDbo(), Factory\getLanguage(), Factory\getUser(), et null.