CCrmMobileHelper::GetRecentlyUsedLocations

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmMobileHelper
  4. GetRecentlyUsedLocations
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/mobile_helper.php
  • Класс: \CCrmMobileHelper
  • Вызов: CCrmMobileHelper::GetRecentlyUsedLocations
static function GetRecentlyUsedLocations($userID = 0)
{
	$userID = intval($userID);
	if($userID <= 0)
	{
		$userID = CCrmSecurityHelper::GetCurrentUserID();
	}

	$s = CUserOptions::GetOption('m_crm_invoice', 'locations', '', $userID);
	$ary = $s !== '' ? explode(',', $s) : array();
	$qty = count($ary);
	for($i = 0; $i < $qty; $i++)
	{
		$ary[$i] = intval($ary[$i]);
	}
	return $ary;
}

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