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
include
lib
access
connector
consent
dispatch
entity
integration
ai
bitrix24
crm
connectors
preset
returncustomer
messagebase.php
messagedeal.php
messagelead.php
service.php
transportbase.php
transportdeal.php
transportlead.php
timeline
companycard.php
crmtilemap.php
eventhandler.php
im
landing
main
messageservice
sale
sender
seo
voximplant
yandex
eventhandler.php
internals
message
posting
preset
recipient
runtime
search
security
segment
service
stat
templates
transport
trigger
ui
contact.php
contactlist.php
filetable.php
group.php
list.php
log.php
maileventhandler.php
mailing.php
mailingchain.php
mailingmanager.php
mailingtrigger.php
posting.php
postingmanager.php
segmentdata.php
sendernotifyschema.php
senderpullschema.php
subscription.php
template.php
timelinequeue.php
meta
preset
tools
.settings.php
default_option.php
include.php
options.php
prolog.php
seo
socialnetwork
socialservices
statistic
storeassist
subscribe
support
translate
ui
vote
webservice
wiki
workflow
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
service.php
См. документацию.
1
<?php
8
9
namespace
Bitrix\Sender\Integration\Crm\ReturnCustomer;
10
11
use Bitrix\Main\Loader;
12
13
use Bitrix\Sender\Recipient;
14
use Bitrix\Sender\Integration;
15
16
use Bitrix\Crm;
17
22
class
Service
23
{
29
public
static
function
canUse
()
30
{
31
return
(
Loader::includeModule
(
'crm'
));
32
}
29
public
static
function
canUse
() {
…
}
33
39
public
static
function
isAvailable
()
40
{
41
return
self::canUse() &&
Integration\Bitrix24\Service::isRcAvailable
();
42
}
39
public
static
function
isAvailable
() {
…
}
43
49
public
static
function
canCurrentUserUse
()
50
{
51
//TODO: add Security\Access::getInstance()->canModifyRc()
52
return
self::canUse();
53
}
49
public
static
function
canCurrentUserUse
() {
…
}
54
55
56
62
public
static
function
isLeadEnabled
()
63
{
64
return
Crm\Settings\LeadSettings::isEnabled();
65
}
62
public
static
function
isLeadEnabled
() {
…
}
66
73
public
static
function
getTypeIdByRecipientType
($recipientType)
74
{
75
return
self::getTypeIdByRecipientTypeId(
Recipient
\
Type::getId
($recipientType));
76
}
73
public
static
function
getTypeIdByRecipientType
($recipientType) {
…
}
77
84
public
static
function
getTypeIdByRecipientTypeId
($recipientTypeId)
85
{
86
$map
= [
87
Recipient\Type::CRM_CONTACT_ID
=> \CCrmOwnerType::Contact,
88
Recipient\Type::CRM_COMPANY_ID
=> \CCrmOwnerType::Company,
89
Recipient\Type::CRM_LEAD_ID
=> \CCrmOwnerType::Lead,
90
];
91
92
return
isset(
$map
[$recipientTypeId]) ?
$map
[$recipientTypeId] :
null
;
93
}
84
public
static
function
getTypeIdByRecipientTypeId
($recipientTypeId) {
…
}
94
}
22
class
Service
{
…
};
Bitrix\Main\Engine\CurrentUser\getId
getId()
Определения
currentuser.php:49
Bitrix\Main\Loader\includeModule
static includeModule($moduleName)
Определения
loader.php:67
Bitrix\Sender\Integration\Bitrix24\Service\isRcAvailable
static isRcAvailable()
Определения
service.php:98
Bitrix\Sender\Integration\Crm\ReturnCustomer\Service\isLeadEnabled
static isLeadEnabled()
Определения
service.php:62
Bitrix\Sender\Integration\Crm\ReturnCustomer\Service\canCurrentUserUse
static canCurrentUserUse()
Определения
service.php:49
Bitrix\Sender\Integration\Crm\ReturnCustomer\Service\getTypeIdByRecipientTypeId
static getTypeIdByRecipientTypeId($recipientTypeId)
Определения
service.php:84
Bitrix\Sender\Integration\Crm\ReturnCustomer\Service\canUse
static canUse()
Определения
service.php:29
Bitrix\Sender\Integration\Crm\ReturnCustomer\Service\isAvailable
static isAvailable()
Определения
service.php:39
Bitrix\Sender\Integration\Crm\ReturnCustomer\Service\getTypeIdByRecipientType
static getTypeIdByRecipientType($recipientType)
Определения
service.php:73
Bitrix\Sender\Recipient\Type\CRM_COMPANY_ID
const CRM_COMPANY_ID
Определения
type.php:24
Bitrix\Sender\Recipient\Type\CRM_LEAD_ID
const CRM_LEAD_ID
Определения
type.php:26
Bitrix\Sender\Recipient\Type\CRM_CONTACT_ID
const CRM_CONTACT_ID
Определения
type.php:25
$map
$map
Определения
config.php:5
Bitrix\Main\Service
Bitrix\Sender\Recipient
Определения
agent.php:8
bitrix
modules
sender
lib
integration
crm
returncustomer
service.php
Создано системой
1.14.0