1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GroupUrl.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
8use Bitrix\Socialnetwork\Item\Workgroup\Type;
10
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
Определения options.php:106
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения collection.php:2
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393
$site
Определения yandex_run.php:614