VoteUserType::getOrCheckUserId

  1. Bitrix24 API (v. 23.675.0)
  2. vote
  3. VoteUserType
  4. getOrCheckUserId
  • Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/uf/voteusertype.php
  • Класс: BitrixVoteUfVoteUserType
  • Вызов: VoteUserType::getOrCheckUserId
static function getOrCheckUserId($userId = false)
{
	if ($userId === false)
	{
		global $USER;
		if ($USER instanceof CUser)
		{
			return $USER->GetID();
		}
	}
	return intval($userId);
}

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