ILIAS
release_5-2 Revision v5.2.25-18-g3f80b82851
◀ ilDoc Overview
TagProcessor.php
Go to the documentation of this file.
1
<?
php
2
3
/*
4
* This file is part of the Monolog package.
5
*
6
* (c) Jordi Boggiano <j.boggiano@seld.be>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Monolog\Processor
;
13
19
class
TagProcessor
20
{
21
private
$tags
;
22
23
public
function
__construct
(
array
$tags
=
array
())
24
{
25
$this->
setTags
(
$tags
);
26
}
27
28
public
function
addTags
(
array
$tags
=
array
())
29
{
30
$this->tags = array_merge($this->tags,
$tags
);
31
}
32
33
public
function
setTags
(
array
$tags
=
array
())
34
{
35
$this->tags =
$tags
;
36
}
37
38
public
function
__invoke
(
array
$record)
39
{
40
$record[
'extra'
][
'tags'
] =
$this->tags
;
41
42
return
$record;
43
}
44
}
Monolog\Processor
Definition:
GitProcessor.php:12
Monolog\Processor\TagProcessor
Adds a tags array into record.
Definition:
TagProcessor.php:19
Monolog\Processor\TagProcessor\__construct
__construct(array $tags=array())
Definition:
TagProcessor.php:23
Monolog\Processor\TagProcessor\addTags
addTags(array $tags=array())
Definition:
TagProcessor.php:28
Monolog\Processor\TagProcessor\$tags
$tags
Definition:
TagProcessor.php:21
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
Monolog\Processor\TagProcessor\setTags
setTags(array $tags=array())
Definition:
TagProcessor.php:33
Monolog\Processor\TagProcessor\__invoke
__invoke(array $record)
Definition:
TagProcessor.php:38
php
libs
composer
vendor
monolog
monolog
src
Monolog
Processor
TagProcessor.php
Generated on Fri Mar 22 2024 19:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)