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
classes
lib
Access
Collab
commentaux
component
Control
controller
copy
deprecated
filter
helper
analytics
forum
ui
usertogroup
workgroup
avatar.php
avatarmanager.php
feature.php
gratitude.php
instancetrait.php
mention.php
path.php
servicecomment.php
singletontrait.php
user.php
workgroup.php
integration
internals
item
livefeed
Log
Permission
Promotion
Provider
Site
Space
ui
update
Validation
componenthelper.php
feature.php
featureperm.php
log.php
logcomment.php
logfavorites.php
logfollow.php
logindex.php
logpage.php
logpinned.php
logright.php
logsite.php
logsubscribe.php
logtag.php
logview.php
membertogroup.php
user.php
usercontentview.php
userrelations.php
usertag.php
usertogroup.php
userwelltory.php
userwelltorydisclaimer.php
util.php
ValueObjectInterface.php
workgroup.php
workgroupfavorites.php
workgrouppin.php
workgroupsite.php
workgroupsubject.php
workgroupsubjectsite.php
workgrouptag.php
workgroupview.php
meta
tools
.settings.php
include.php
options.php
prolog.php
prolog_before.php
tools.php
updtr1007.php
updtr1100.php
updtr1107.php
updtr957.php
socialservices
statistic
storeassist
subscribe
support
translate
ui
vote
webservice
wiki
workflow
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
path.php
См. документацию.
1
<?php
2
9
namespace
Bitrix\Socialnetwork\Helper;
10
11
use Bitrix\Main\Config\Option;
12
use Bitrix\Main\Loader;
13
use Bitrix\Main\ModuleManager;
14
15
class
Path
16
{
17
public
static
function
get
(
string
$key
=
''
,
$siteId
=
SITE_ID
): string
18
{
19
$result
=
''
;
20
21
if
(
$key
===
''
)
22
{
23
return
$result
;
24
}
25
26
switch
(
$key
)
27
{
28
case
'user_profile'
:
29
$result
= (
30
ModuleManager::isModuleInstalled(
'intranet'
)
31
? Option::get(
'intranet'
,
'search_user_url'
, self::getDefault(
$key
,
$siteId
),
$siteId
)
32
:
''
33
);
34
break
;
35
case
'user_calendar_path_template'
:
36
$result
=
self::get
(
'user_profile'
,
$siteId
) .
'calendar/'
;
37
break
;
38
case
'user_create_group_path_template'
:
39
$result
=
self::get
(
'user_profile'
,
$siteId
) .
'groups/create/'
;
40
break
;
41
case
'user_tasks_path_template'
:
42
$result
=
self::get
(
'user_profile'
,
$siteId
) .
'tasks/'
;
43
break
;
44
case
'user_tasks_view_path_template'
:
45
$result
=
self::get
(
'user_tasks_path_template'
,
$siteId
) .
'view/#action#/#view_id#/'
;
46
break
;
47
case
'user_tasks_report_path_template'
:
48
$result
=
self::get
(
'user_tasks_path_template'
,
$siteId
) .
'report/'
;
49
break
;
50
case
'user_tasks_templates_path_template'
:
51
$result
=
self::get
(
'user_tasks_path_template'
,
$siteId
) .
'templates/'
;
52
break
;
53
case
'userblogpost_page'
:
54
case
'group_path_template'
:
55
case
'workgroups_page'
:
56
$result
= Option::get(
'socialnetwork'
,
$key
, self::getDefault(
$key
,
$siteId
),
$siteId
);
57
break
;
58
case
'group_edit_path_template'
:
59
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'edit/'
;
60
break
;
61
case
'group_delete_path_template'
:
62
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'delete/'
;
63
break
;
64
case
'group_invite_path_template'
:
65
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'invite/'
;
66
break
;
67
case
'group_livefeed_path_template'
:
68
$result
=
self::get
(
'group_path_template'
,
$siteId
) . (
69
ModuleManager::isModuleInstalled(
'intranet'
)
70
&& (SITE_TEMPLATE_ID ===
'bitrix24'
|| SITE_TEMPLATE_ID ===
'air'
)
71
?
'general/'
72
:
''
73
);
74
break
;
75
case
'group_tasks_path_template'
:
76
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'tasks/'
;
77
break
;
78
case
'group_tasks_task_path_template'
:
79
$result
=
self::get
(
'group_tasks_path_template'
,
$siteId
) .
'task/#action#/#task_id#/'
;
80
break
;
81
case
'group_tasks_view_path_template'
:
82
$result
=
self::get
(
'group_tasks_path_template'
,
$siteId
) .
'view/#action#/#view_id#/'
;
83
break
;
84
case
'group_tasks_report_path_template'
:
85
$result
=
self::get
(
'group_tasks_path_template'
,
$siteId
) .
'report/'
;
86
break
;
87
case
'group_calendar_path_template'
:
88
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'calendar/'
;
89
break
;
90
case
'group_users_path_template'
:
91
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'users/'
;
92
break
;
93
case
'group_requests_path_template'
:
94
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'requests/'
;
95
break
;
96
case
'group_requests_out_path_template'
:
97
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'requests_out/'
;
98
break
;
99
case
'user_request_group_path_template'
:
100
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'user_request/'
;
101
break
;
102
case
'user_leave_group_path_template'
:
103
$result
=
self::get
(
'group_path_template'
,
$siteId
) .
'user_leave/'
;
104
break
;
105
case
'department_path_template'
:
106
$result
= Option::get(
'main'
,
'TOOLTIP_PATH_TO_CONPANY_DEPARTMENT'
, self::getDefault(
'TOOLTIP_PATH_TO_CONPANY_DEPARTMENT'
,
$siteId
),
$siteId
);
107
break
;
108
default
:
109
}
110
111
return
$result
;
112
}
17
public
static
function
get
(
string
$key
=
''
,
$siteId
=
SITE_ID
): string {
…
}
113
114
private
static
function
getDefault(
string
$key
=
''
,
$siteId
=
SITE_ID
): string
115
{
116
$result
=
''
;
117
if
(
$key
===
''
)
118
{
119
return
$result
;
120
}
121
122
$siteDir =
SITE_DIR
;
123
if
($siteDir ===
''
)
124
{
125
$siteDir =
'/'
;
126
}
127
128
switch
(
$key
)
129
{
130
case
'user_profile'
:
131
$result
= $siteDir . self::getUserFolder(
$siteId
) .
'#user_id#/'
;
132
break
;
133
case
'userblogpost_page'
:
134
$result
= $siteDir . self::getUserFolder(
$siteId
) .
'#user_id#/blog/#post_id#/'
;
135
break
;
136
case
'group_path_template'
:
137
$result
= self::getDefault(
'workgroups_page'
,
$siteId
) .
'group/#group_id#/'
;
138
break
;
139
case
'department_path_template'
:
140
$result
= $siteDir .
'company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#'
;
141
break
;
142
case
'workgroups_page'
:
143
$result
= $siteDir .
'workgroups/'
;
144
break
;
145
default
:
146
}
147
148
return
$result
;
149
}
150
151
private
static
function
getUserFolder(
$siteId
=
SITE_ID
): string
152
{
153
static
$extranetSiteId =
null
;
154
155
if
($extranetSiteId ===
null
)
156
{
157
$extranetSiteId = (Loader::includeModule(
'extranet'
) ? \CExtranet::getExtranetSiteID() :
''
);
158
}
159
160
return
(
$siteId
=== $extranetSiteId ?
'contacts'
:
'company'
) .
'/personal/user/'
;
161
}
162
}
15
class
Path
{
…
};
Bitrix\Socialnetwork\Helper\Path
Определения
path.php:16
Bitrix\Socialnetwork\Helper\Path\get
static get(string $key='', $siteId=SITE_ID)
Определения
path.php:17
$result
$result
Определения
get_property_values.php:14
SITE_DIR
const SITE_DIR(!defined('LANG'))
Определения
include.php:72
$siteId
$siteId
Определения
ajax.php:8
$key
if(empty($signedUserToken)) $key
Определения
quickway.php:257
SITE_ID
const SITE_ID
Определения
sonet_set_content_view.php:12
bitrix
modules
socialnetwork
lib
helper
path.php
Создано системой
1.14.0