CCrmOwnerType::GetEntityEditPath

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmOwnerType
  4. GetEntityEditPath
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_owner_type.php
  • Класс: \CCrmOwnerType
  • Вызов: CCrmOwnerType::GetEntityEditPath
static function GetEntityEditPath($typeID, $ID, $bCheckPermissions = false, array $options = null)
{
	if(!is_int($typeID))
	{
		$typeID = (int)$typeID;
	}

	$enableSlider = self::IsSliderEnabled($typeID);
	if($enableSlider && $options !== null && isset($options['ENABLE_SLIDER']) && !$options['ENABLE_SLIDER'])
	{
		$enableSlider = false;
	}

	if($enableSlider)
	{
		if($ID > 0)
		{
			if(!is_array($options))
			{
				$options = array('INIT_MODE' => 'edit');
			}
			else
			{
				$options = array_merge($options, array('INIT_MODE' => 'edit'));
			}
		}
		return self::GetDetailsUrl($typeID, $ID, $bCheckPermissions, $options);
	}

	return self::GetEditUrl($typeID, $ID, $bCheckPermissions, $options);
}

Добавить комментарий