File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/im/lib/integration/crm/common.php
Back
<?php namespace Bitrix\Im\Integration\Crm; use \Bitrix\Main\Loader; class Common { /** * @param $type * @param null $id * @return bool|mixed|string * @throws \Bitrix\Main\LoaderException */ public static function getLink($type, $id = null) { if (!Loader::includeModule('crm')) { return false; } $defaultValue = false; if (is_null($id)) { $defaultValue = true; $id = 0; } $result = \CCrmOwnerType::GetEntityShowPath(\CCrmOwnerType::ResolveID($type), $id, false); if ($defaultValue) { $result = str_replace($id, '#ID#', $result); } return $result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings