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
classes
lib
access
application
controller
core
base
builders
converters
event
eventcategory
eventoption
handlers
managers
mappers
oauth
property
queue
agent
consumer
examples
exception
impl
interfaces
message
processor
producer
queue
queuelistener
rule
rules
registry.php
rulemaster.php
role
section
common.php
Event
EventCategory
EventOption
FileUploader
ical
infrastructure
integration
internals
OpenEvents
public
Relation
rooms
service
sharing
sync
ui
update
userfield
watcher
push.php
serializeobject.php
usersettings.php
util.php
meta
services
.settings.php
include.php
options.php
prolog.php
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
ui
vote
webservice
wiki
workflow
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
registry.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Rule
;
4
5
use
Bitrix\Calendar\Core\Queue\Exception\InvalidRuleException
;
6
use
Bitrix\Calendar\Core\Queue\Interfaces\RouteRule
;
7
use
Bitrix\Calendar\Core\Queue\Rule\Rules\EventAttendeesUpdateRule
;
8
use
Bitrix\Calendar\Core\Queue\Rule\Rules\EventDelayedSyncRule
;
9
use
Bitrix\Calendar\Core\Queue\Rule\Rules\EventWithEntityAttendeesFindRule
;
10
use
Bitrix\Calendar\Core\Queue\Rule\Rules\PushDelayedRule
;
11
use
Bitrix\Calendar\Core\Base\SingletonTrait
;
12
use
Bitrix\Calendar\Core\Queue\Rule\Rules\SendingEmailNotificationRule
;
13
14
class
Registry
15
{
16
use SingletonTrait;
17
18
private
array
$rules = [];
19
20
protected
function
__construct
()
21
{
22
$this->
registerRule
(
new
EventDelayedSyncRule
());
23
$this->
registerRule
(
new
PushDelayedRule
());
24
$this->
registerRule
(
new
EventAttendeesUpdateRule
());
25
$this->
registerRule
(
new
EventWithEntityAttendeesFindRule
());
26
$this->
registerRule
(
new
SendingEmailNotificationRule
());
27
}
20
protected
function
__construct
() {
…
}
28
34
public
function
registerRule
(
RouteRule
$rule): self
35
{
36
$this->rules[] = $rule;
37
38
return
$this;
39
}
34
public
function
registerRule
(
RouteRule
$rule): self {
…
}
40
48
public
function
registerRuleClass
(
string
$className): self
49
{
50
if
(class_exists($className))
51
{
52
$rule =
new
$className();
53
if
($rule instanceof
RouteRule
)
54
{
55
$this->
registerRule
($rule);
56
}
57
else
58
{
59
throw
InvalidRuleException::classIsNotRule
();
60
}
61
}
62
else
63
{
64
throw
InvalidRuleException::classIsInvalid
(404);
65
}
66
67
return
$this;
68
}
48
public
function
registerRuleClass
(
string
$className): self {
…
}
69
73
public
function
getRules
():
array
74
{
75
return
$this->rules;
76
}
73
public
function
getRules
():
array
{
…
}
77
}
14
class
Registry
{
…
};
Bitrix\Calendar\Core\Queue\Exception\InvalidRuleException
Определения
invalidruleexception.php:7
Bitrix\Calendar\Core\Queue\Exception\InvalidRuleException\classIsNotRule
static classIsNotRule(int $code=0, Throwable $previous=null)
Определения
invalidruleexception.php:25
Bitrix\Calendar\Core\Queue\Exception\InvalidRuleException\classIsInvalid
static classIsInvalid(int $code=0, Throwable $previous=null)
Определения
invalidruleexception.php:14
Bitrix\Calendar\Core\Queue\QueueListener\Registry
Определения
registry.php:16
Bitrix\Calendar\Core\Queue\Rule\Registry\__construct
__construct()
Определения
registry.php:20
Bitrix\Calendar\Core\Queue\Rule\Registry\getRules
getRules()
Определения
registry.php:73
Bitrix\Calendar\Core\Queue\Rule\Registry\registerRule
registerRule(RouteRule $rule)
Определения
registry.php:34
Bitrix\Calendar\Core\Queue\Rule\Registry\registerRuleClass
registerRuleClass(string $className)
Определения
registry.php:48
Bitrix\Calendar\Core\Queue\Rule\Rules\EventAttendeesUpdateRule
Определения
eventattendeesupdaterule.php:10
Bitrix\Calendar\Core\Queue\Rule\Rules\EventDelayedSyncRule
Определения
eventdelayedsyncrule.php:10
Bitrix\Calendar\Core\Queue\Rule\Rules\EventWithEntityAttendeesFindRule
Определения
eventwithentityattendeesfindrule.php:10
Bitrix\Calendar\Core\Queue\Rule\Rules\PushDelayedRule
Определения
pushdelayedrule.php:12
Bitrix\Calendar\Core\Queue\Rule\Rules\SendingEmailNotificationRule
Определения
sendingemailnotificationrule.php:10
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\Calendar\Core\Queue\Interfaces\RouteRule
Определения
routerule.php:8
Bitrix\Calendar\Core\Base\SingletonTrait
trait SingletonTrait
Определения
singletontrait.php:6
Bitrix\Calendar\Core\Queue\Rule
Определения
registry.php:3
bitrix
modules
calendar
lib
core
queue
rule
registry.php
Создано системой
1.14.0