1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
errorableimplementation.php
См. документацию.
1
<?
2
namespace
Bitrix\Main;
3
7
trait
ErrorableImplementation
8
{
10
protected
$errorCollection;
11
17
public
function
hasErrors
()
18
{
19
if
($this->errorCollection instanceof
ErrorCollection
)
20
{
21
return
!$this->errorCollection->isEmpty();
22
}
23
else
24
{
25
return
false
;
26
}
27
}
28
34
public
function
getErrors
()
35
{
36
if
($this->errorCollection instanceof
ErrorCollection
)
37
{
38
return
$this->errorCollection->toArray();
39
}
40
else
41
{
42
return
[];
43
}
44
}
45
53
public
function
getErrorByCode
(
$code
)
54
{
55
if
($this->errorCollection instanceof
ErrorCollection
)
56
{
57
return
$this->errorCollection->getErrorByCode(
$code
);
58
}
59
else
60
{
61
return
null
;
62
}
63
}
64
}
Bitrix\Main\ErrorCollection
Определения
errorcollection.php:14
$code
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения
options.php:195
Bitrix\Main\getErrors
getErrors()
Определения
errorableimplementation.php:34
Bitrix\Main\ErrorableImplementation
trait ErrorableImplementation
Определения
errorableimplementation.php:8
Bitrix\Main\hasErrors
hasErrors()
Определения
errorableimplementation.php:17
Bitrix\Main\getErrorByCode
getErrorByCode($code)
Определения
errorableimplementation.php:53
bitrix
modules
main
lib
errorableimplementation.php
Создано системой
1.14.0