Joomla Platform
13.1
Documentation des API du framework Joomla Platform
Page principale
Pages associées
Espaces de nommage
Classes
Fichiers
Exemples
Liste des fichiers
Membres de fichier
Tout
Classes
Espaces de nommage
Fichiers
Fonctions
Variables
Pages
messagequeue.php
Aller à la documentation de ce fichier.
1
<?php
2
/**
3
* @package Joomla.Platform
4
* @subpackage Log
5
*
6
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
7
* @license GNU General Public License version 2 or later; see LICENSE
8
*/
9
10
defined(
'JPATH_PLATFORM'
) or die;
11
12
/**
13
* Joomla MessageQueue logger class.
14
*
15
* This class is designed to output logs to a specific MySQL database table. Fields in this
16
* table are based on the Syslog style of log output. This is designed to allow quick and
17
* easy searching.
18
*
19
* @package Joomla.Platform
20
* @subpackage Log
21
* @since 11.1
22
*/
23
class
JLogLoggerMessagequeue
extends
JLogLogger
24
{
25
/**
26
* Method to add an entry to the log.
27
*
28
* @param JLogEntry $entry The log entry object to add to the log.
29
*
30
* @return void
31
*
32
* @since 11.1
33
*/
34
public
function
addEntry(
JLogEntry
$entry)
35
{
36
switch
($entry->priority)
37
{
38
case
JLog::EMERGENCY
:
39
case
JLog::ALERT
:
40
case
JLog::CRITICAL
:
41
case
JLog::ERROR
:
42
JFactory::getApplication
()->enqueueMessage($entry->message,
'error'
);
43
break
;
44
case
JLog::WARNING
:
45
JFactory::getApplication
()->enqueueMessage($entry->message,
'warning'
);
46
break
;
47
case
JLog::NOTICE
:
48
JFactory::getApplication
()->enqueueMessage($entry->message,
'notice'
);
49
break
;
50
case
JLog::INFO
:
51
JFactory::getApplication
()->enqueueMessage($entry->message,
'message'
);
52
break
;
53
default
:
54
// Ignore other priorities.
55
break
;
56
}
57
}
58
}
Documentation et API générés le 16/11/2013 par l'équipe
Dev.joomla.fr
de l'
AFUJ
avec la solution