AbstractEntity::getUsers

  1. Bitrix24 API (v. 23.675.0)
  2. im
  3. AbstractEntity
  4. getUsers
  • Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/integration/abstractentity.php
  • Класс: BitrixImCallIntegrationAbstractEntity
  • Вызов: AbstractEntity::getUsers
public function getUsers();

abstract public function getName($currentUserId);

abstract public function onUserAdd($userId);

abstract public function onStateChange($state, $prevState);

public function toArray($currentUserId = 0)
{
	if($currentUserId == 0)
	{
		$currentUserId = $this->initiatorId;
	}
	return [
		'type' => $this->getEntityType(),
		'id' => $this->getEntityId($currentUserId),
		'name' => $this->getName($currentUserId)
	];
}

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