1C-Bitrix
25.700.0
Toggle main menu visibility
Титульная страница
Пространства имен
Пространства имен
Члены пространств имен
Указатель
$
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Функции
_
a
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Переменные
$
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
w
Перечисления
a
b
c
d
e
f
g
l
m
n
o
p
r
s
t
u
v
w
Элементы перечислений
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Структуры данных
Структуры данных
Алфавитный указатель структур данных
Иерархия классов
Поля структур
Указатель
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Функции
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Перечисления
Элементы перечислений
Файлы
Файлы
Список членов всех файлов
Указатель
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
б
в
к
л
о
п
с
т
ю
Функции
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
б
в
к
л
о
п
с
т
ю
Блог
Хостинг
1C-Bitrix
Пространства имен
Структуры данных
Файлы
Файлы
bitrix
modules
abtest
advertising
b24connector
bitrixcloud
bizproc
bizprocdesigner
blog
calendar
catalog
clouds
cluster
conversion
currency
eshopapp
fileman
form
forum
highloadblock
iblock
idea
im
landing
ldap
learning
lists
location
mail
main
messageservice
mobileapp
perfmon
photogallery
pull
report
rest
sale
scale
search
security
sender
seo
socialnetwork
socialservices
statistic
storeassist
subscribe
support
translate
lib
cli
controller
index
io
text
ui
Update
componentbase.php
config.php
error.php
file.php
filter.php
ierrorable.php
permission.php
settings.php
warning.php
meta
.settings.php
autoload.php
default_option.php
include.php
options.php
prolog.php
translate_tools.php
ui
vote
webservice
wiki
workflow
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
warning.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Translate;
4
5
use Bitrix\Main;
6
10
trait
Warning
11
{
13
protected
$warningCollection;
14
22
final
public
function
addWarning
(
Main
\
Error
$error
): self
23
{
24
if
(!$this->warningCollection instanceof
Main
\
ErrorCollection
)
25
{
26
$this->warningCollection =
new
Main\ErrorCollection
;
27
}
28
29
$this->warningCollection[] =
$error
;
30
31
return
$this;
32
}
22
final
public
function
addWarning
(
Main
\
Error
$error
): self {
…
}
33
39
final
public
function
getWarnings
():
array
40
{
41
if
(!$this->warningCollection instanceof
Main
\
ErrorCollection
)
42
{
43
return
array
();
44
}
45
46
return
$this->warningCollection->toArray();
47
}
39
final
public
function
getWarnings
():
array
{
…
}
48
54
final
public
function
hasWarnings
(): bool
55
{
56
if
(!$this->warningCollection instanceof
Main
\
ErrorCollection
)
57
{
58
return
false
;
59
}
60
61
return
!$this->warningCollection->isEmpty();
62
}
54
final
public
function
hasWarnings
(): bool {
…
}
63
69
final
public
function
getLastWarning
(): ?
Main
\
Error
70
{
71
if
(!$this->warningCollection instanceof
Main
\
ErrorCollection
)
72
{
73
return
null
;
74
}
75
if
(!$this->
hasWarnings
())
76
{
77
return
null
;
78
}
79
80
$offset = $this->warningCollection->count() - 1;
81
82
return
$this->warningCollection->offsetGet($offset);
83
}
69
final
public
function
getLastWarning
(): ?
Main
\
Error
{
…
}
84
90
final
public
function
getFirstWarning
(): ?
Main
\
Error
91
{
92
if
(!$this->warningCollection instanceof
Main
\
ErrorCollection
)
93
{
94
return
null
;
95
}
96
if
(!$this->
hasWarnings
())
97
{
98
return
null
;
99
}
100
101
return
$this->warningCollection->offsetGet(0);
102
}
90
final
public
function
getFirstWarning
(): ?
Main
\
Error
{
…
}
103
}
Bitrix\Main\ErrorCollection
Определения
errorcollection.php:14
Bitrix\Main\Error
Определения
error.php:15
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main
Bitrix\Translate\getFirstWarning
getFirstWarning()
Определения
warning.php:90
Bitrix\Translate\Warning
trait Warning
Определения
warning.php:11
Bitrix\Translate\getLastWarning
getLastWarning()
Определения
warning.php:69
Bitrix\Translate\addWarning
addWarning(Main\Error $error)
Определения
warning.php:22
Bitrix\Translate\getWarnings
getWarnings()
Определения
warning.php:39
Bitrix\Translate\hasWarnings
hasWarnings()
Определения
warning.php:54
$error
$error
Определения
subscription_card_product.php:20
bitrix
modules
translate
lib
warning.php
Создано системой
1.14.0