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
classes
cli
include
interface
lib
access
analytics
authentication
cli
Command
component
composite
config
context
controller
copy
data
db
di
diag
discount
engine
Entity
eventlog
internal
action.php
actionemail.php
actionsms.php
notification.php
File
FileUploader
filter
grid
html
io
License
localization
mail
Messenger
numerator
orm
page
phonenumber
Provider
rating
Repository
rest
routing
search
security
service
session
SidePanel
sms
test
text
type
ui
update
UpdateSystem
urlpreview
userconsent
userfield
Validation
web
AccessDeniedException.php
application.php
ArgumentException.php
ArgumentNullException.php
ArgumentOutOfRangeException.php
ArgumentTypeException.php
ClassLocator.php
context.php
DecodingException.php
environment.php
error.php
errorable.php
errorableimplementation.php
errorcollection.php
event.php
eventmanager.php
eventresult.php
file.php
finderdest.php
group.php
grouptask.php
httpapplication.php
httpcontext.php
httprequest.php
httpresponse.php
InvalidOperationException.php
license.php
loader.php
modulemanager.php
moduletable.php
NotImplementedException.php
NotSupportedException.php
ObjectException.php
ObjectNotFoundException.php
ObjectPropertyException.php
operation.php
request.php
response.php
result.php
senderconnector.php
server.php
site.php
sitedomain.php
sitetemplate.php
SystemException.php
task.php
taskoperation.php
urlrewriter.php
UrlRewriterRuleMaker.php
user.php
useraccess.php
userauthaction.php
usercounter.php
userfield.php
userfieldconfirm.php
userfieldlangtable.php
usergroup.php
userindex.php
userphoneauth.php
userprofilehistory.php
userprofilerecord.php
userutils.php
UuidGenerator.php
xmlwriter.php
meta
public
services
tools
.settings.php
admin_tools.php
ajax_tools.php
bx_root.php
checklist_structure.php
countries.php
default_option.php
filter_tools.php
img.php
include.php
jscore.php
option_triggers.php
options.php
prolog.php
spread.php
start.php
tools.php
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
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
action.php
См. документацию.
1
<?php
8
9
namespace
Bitrix\Main\EventLog
;
10
11
abstract
class
Action
12
{
13
const
TYPE_EMAIL
=
'email'
;
14
const
TYPE_SMS
=
'sms'
;
15
16
protected
$type
;
17
protected
$recipient
;
18
protected
$text
;
19
26
public
function
__construct
(
$type
,
$recipient
,
$text
)
27
{
28
$this->type =
$type
;
29
$this->recipient =
$recipient
;
30
$this->text =
$text
;
31
}
26
public
function
__construct
(
$type
,
$recipient
,
$text
) {
…
}
32
41
public
static
function
createByType
(
$type
,
$recipient
,
$text
)
42
{
43
switch
(
$type
)
44
{
45
case
self::TYPE_EMAIL:
46
return
new
ActionEmail
(
$recipient
,
$text
);
47
case
self::TYPE_SMS:
48
return
new
ActionSms
(
$recipient
,
$text
);
49
default
:
50
throw
new \Bitrix\Main\ArgumentException(
"Unknown action type"
,
"type"
);
51
}
52
}
41
public
static
function
createByType
(
$type
,
$recipient
,
$text
) {
…
}
53
58
public
function
getType
()
59
{
60
return
$this->type
;
61
}
58
public
function
getType
() {
…
}
62
67
public
function
getRecipient
()
68
{
69
return
$this->recipient
;
70
}
67
public
function
getRecipient
() {
…
}
71
76
public
function
getText
()
77
{
78
return
$this->text
;
79
}
76
public
function
getText
() {
…
}
80
85
abstract
public
function
send
(
Notification
$notification);
86
87
protected
static
function
getNotificationFields
(
Notification
$notification)
88
{
89
return
[
90
"NAME"
=> $notification->getName(),
91
"AUDIT_TYPE_ID"
=> $notification->getAuditTypeId(),
92
"ITEM_ID"
=> $notification->getItemId(),
93
"USER_ID"
=> $notification->getUserId(),
94
"REMOTE_ADDR"
=> $notification->getRemoteAddr(),
95
"USER_AGENT"
=> $notification->getUserAgent(),
96
"REQUEST_URI"
=> $notification->getRequestUri(),
97
"EVENT_COUNT"
=> $notification->
getEventCount
(),
98
];
99
}
87
protected
static
function
getNotificationFields
(
Notification
$notification) {
…
}
100
}
11
abstract
class
Action
{
…
};
Bitrix\Main\EventLog\ActionEmail
Определения
actionemail.php:12
Bitrix\Main\EventLog\Action
Определения
action.php:12
Bitrix\Main\EventLog\Action\__construct
__construct($type, $recipient, $text)
Определения
action.php:26
Bitrix\Main\EventLog\Action\getRecipient
getRecipient()
Определения
action.php:67
Bitrix\Main\EventLog\Action\createByType
static createByType($type, $recipient, $text)
Определения
action.php:41
Bitrix\Main\EventLog\Action\TYPE_SMS
const TYPE_SMS
Определения
action.php:14
Bitrix\Main\EventLog\Action\send
send(Notification $notification)
Bitrix\Main\EventLog\Action\getType
getType()
Определения
action.php:58
Bitrix\Main\EventLog\Action\getText
getText()
Определения
action.php:76
Bitrix\Main\EventLog\Action\$type
$type
Определения
action.php:16
Bitrix\Main\EventLog\Action\TYPE_EMAIL
const TYPE_EMAIL
Определения
action.php:13
Bitrix\Main\EventLog\Action\getNotificationFields
static getNotificationFields(Notification $notification)
Определения
action.php:87
Bitrix\Main\EventLog\Action\$recipient
$recipient
Определения
action.php:17
Bitrix\Main\EventLog\Action\$text
$text
Определения
action.php:18
Bitrix\Main\EventLog\ActionSms
Определения
actionsms.php:12
Bitrix\Main\EventLog\Notification
Определения
notification.php:43
Bitrix\Main\EventLog\Notification\getEventCount
getEventCount()
Определения
notification.php:239
Bitrix\Main\EventLog
Определения
action.php:9
bitrix
modules
main
lib
eventlog
action.php
Создано системой
1.14.0