/
ExitGroup.php
38 lines (32 loc) · 968 Bytes
/
ExitGroup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace Concrete\Core\Logging\Entry\Group;
/**
* Log entry for users being removed from groups
*/
class ExitGroup extends UserGroup
{
public function getEntryMessage()
{
return t('User %1$s (ID %2$s) was removed from group %3$s (ID %4$s) by an automated process.',
$this->user->getUserName(),
$this->user->getUserID(),
$this->group->getGroupName(),
$this->group->getGroupID()
);
}
public function getEntryMessageWithApplier()
{
return t('User %1$s (ID %2$s) was removed from group %3$s (ID %4$s) by %5$s (ID %6$s).',
$this->user->getUserName(),
$this->user->getUserID(),
$this->group->getGroupName(),
$this->group->getGroupID(),
$this->applier->getUserName(),
$this->applier->getUserID()
);
}
public function getEntryOperation()
{
return 'exit_group';
}
}