Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
loglistcommon.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Component
;
4
5
use
Bitrix\Main\ErrorCollection
;
6
use
Bitrix\Main\Error
;
7
use
Bitrix\Socialnetwork\Component\LogListCommon\Util
;
8
9
class
LogListCommon
extends
\CBitrixComponent implements
\Bitrix\Main\Engine\Contract\Controllerable
,
\Bitrix\Main\Errorable
10
{
12
protected
$errorCollection
;
13
protected
$request
=
null
;
14
protected
$currentUserAdmin
=
false
;
15
16
protected
$task2LogList
= [];
17
18
public
function
configureActions
(): array
19
{
20
return
[];
21
}
22
23
public
function
getErrorByCode
($code)
24
{
25
return
$this->errorCollection->getErrorByCode($code);
26
}
27
32
public
function
getErrors
(): array
33
{
34
return
$this->errorCollection->toArray();
35
}
36
37
protected
function
printErrors
()
38
{
39
foreach
($this->errorCollection as $error)
40
{
41
ShowError($error);
42
}
43
}
44
45
protected
function
getRequest
()
46
{
47
if
($this->request ==
null
)
48
{
49
$this->request =
Util::getRequest
();
50
}
51
52
return
$this->request;
53
}
54
55
public
function
setTask2LogListValue
($value = [])
56
{
57
$this->task2LogList = $value;
58
}
59
60
public
function
getTask2LogListValue
()
61
{
62
return
$this->task2LogList;
63
}
64
65
public
function
setCurrentUserAdmin
($value =
false
): void
66
{
67
$this->currentUserAdmin = $value;
68
}
69
70
public
function
getCurrentUserAdmin
()
71
{
72
return
$this->currentUserAdmin;
73
}
74
}
Bitrix\Main\ErrorCollection
Definition
errorcollection.php:14
Bitrix\Main\Error
Definition
error.php:14
Bitrix\Socialnetwork\Component\LogList\Util
Definition
util.php:9
Bitrix\Socialnetwork\Component\LogListCommon\Util\getRequest
static getRequest()
Definition
util.php:7
Bitrix\Socialnetwork\Component\LogListCommon
Definition
loglistcommon.php:10
Bitrix\Socialnetwork\Component\LogListCommon\$task2LogList
$task2LogList
Definition
loglistcommon.php:16
Bitrix\Socialnetwork\Component\LogListCommon\setTask2LogListValue
setTask2LogListValue($value=[])
Definition
loglistcommon.php:55
Bitrix\Socialnetwork\Component\LogListCommon\setCurrentUserAdmin
setCurrentUserAdmin($value=false)
Definition
loglistcommon.php:65
Bitrix\Socialnetwork\Component\LogListCommon\getCurrentUserAdmin
getCurrentUserAdmin()
Definition
loglistcommon.php:70
Bitrix\Socialnetwork\Component\LogListCommon\getErrors
getErrors()
Definition
loglistcommon.php:32
Bitrix\Socialnetwork\Component\LogListCommon\$errorCollection
$errorCollection
Definition
loglistcommon.php:12
Bitrix\Socialnetwork\Component\LogListCommon\getTask2LogListValue
getTask2LogListValue()
Definition
loglistcommon.php:60
Bitrix\Socialnetwork\Component\LogListCommon\$request
$request
Definition
loglistcommon.php:13
Bitrix\Socialnetwork\Component\LogListCommon\configureActions
configureActions()
Definition
loglistcommon.php:18
Bitrix\Socialnetwork\Component\LogListCommon\$currentUserAdmin
$currentUserAdmin
Definition
loglistcommon.php:14
Bitrix\Socialnetwork\Component\LogListCommon\getErrorByCode
getErrorByCode($code)
Definition
loglistcommon.php:23
Bitrix\Socialnetwork\Component\LogListCommon\getRequest
getRequest()
Definition
loglistcommon.php:45
Bitrix\Socialnetwork\Component\LogListCommon\printErrors
printErrors()
Definition
loglistcommon.php:37
Bitrix\Main\Engine\Contract\Controllerable
Definition
controllerable.php:6
Bitrix\Main\Errorable
Definition
errorable.php:6
Bitrix\Socialnetwork\Component
Definition
blogpostedit.php:3
modules
socialnetwork
lib
component
loglistcommon.php
Создано системой
1.10.0