Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier mod_messages.php

Espaces de nommage

 Joomla\Administrator
 

Variables

if(! $app->getIdentity() ->authorise('core.login.admin')||! $app->getIdentity() ->authorise('core.manage', 'com_messages')) try
 
 $messages = $messagesModel->getItems()
 
catch(RuntimeException $e) $countUnread = count($messages)
 

Documentation des variables

◆ $countUnread

catch (RuntimeException $e) $countUnread = count($messages)

◆ $messages

◆ try

if (! $app->getIdentity() ->authorise( 'core.login.admin')||! $app->getIdentity() ->authorise( 'core.manage', 'com_messages')) try
Valeur initiale :
{
$messagesModel = $app->bootComponent('com_messages')->getMVCFactory()
->createModel('Messages', 'Administrator', ['ignore_request' => true])
$app
Definition: administrator/components/com_associations/layouts/joomla/searchtools/default.php:85