1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
GroupUrl.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Socialnetwork\Site
;
6
7
use
Bitrix\Socialnetwork\Collab\Url\UrlManager
;
8
use Bitrix\Socialnetwork\Item\Workgroup\Type;
9
use
Bitrix\Socialnetwork\Provider\GroupProvider
;
10
11
class
GroupUrl
12
{
13
public
static
function
get
(
int
$groupId,
null
|
string
|
Type
$groupType =
null
,
array
$parameters = []): string
14
{
15
$site
= Site::getInstance();
16
$type
= Type::getDefault();
17
18
if
($groupType ===
null
)
19
{
20
$type
= GroupProvider::getInstance()->getGroupType($groupId);
21
}
22
elseif
(is_string($groupType))
23
{
24
$type
= Type::tryFrom($groupType);
25
}
26
27
if
(
$type
!== Type::Collab)
28
{
29
return
$site
->getDirectory() .
'workgroups/group/'
. $groupId .
'/'
;
30
}
31
32
return
UrlManager::getCollabUrlById($groupId, $parameters);
33
}
34
}
$type
$type
Определения
options.php:106
Bitrix\Socialnetwork\Collab\Url\UrlManager
Определения
UrlManager.php:12
Bitrix\Socialnetwork\Provider\GroupProvider
Определения
GroupProvider.php:16
Bitrix\Socialnetwork\Site\GroupUrl
Определения
GroupUrl.php:12
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\Type
Определения
collection.php:2
Bitrix\Socialnetwork\Site
Определения
GroupUrl.php:5
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$site
$site
Определения
yandex_run.php:614
bitrix
modules
socialnetwork
lib
Site
GroupUrl.php
Создано системой
1.14.0