• Модуль: controller
  • Путь к файлу: ~/bitrix/modules/controller/classes/general/controllermember.php
  • Класс: CAllControllerMember
  • Вызов: CAllControllerMember::GetMember
static function GetMember($id)
{
	/** @global CMain $APPLICATION */
	global $APPLICATION;

	$dbr_member = CControllerMember::GetById($id);
	$ar_member = $dbr_member->Fetch();
	if(!$ar_member)
	{
		$e = new CApplicationException(GetMessage("CTRLR_MEM_ERR6")." ".htmlspecialcharsex($id));
		$APPLICATION->ThrowException($e);
		return false;
	}

	if($ar_member['DISCONNECTED'] == 'Y')
	{
		$e = new CApplicationException(GetMessage("CTRLR_MEM_ERR7"));
		$APPLICATION->ThrowException($e);
		return false;
	}

	return $ar_member;
}