method
public
static
CompanyAddress::getLocationAddressByFields()
Класс: \Bitrix\Crm\CompanyAddress
Сигнатура
public static getLocationAddressByFields(array<string|int, mixed> $fields, string $languageId) : Address|null
Параметры
$fields
array<string|int, mixed>
$languageId
string
Возвращаемое значение
Address|null
Как применяется в CompanyAddress
CompanyAddress::getLocationAddressByFields() — метод класса \Bitrix\Crm\CompanyAddress модуля «CRM».
Статический метод — вызывается через имя класса CompanyAddress, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Crm\CompanyAddress;
Loader::includeModule('crm');
$fields = [];
$languageId = '';
$result = CompanyAddress::getLocationAddressByFields($fields, $languageId);
// $result: Address|nullДругие методы CompanyAddress
areEquals()Проверяет, равны ли адресаcheckCreatePermissionOwnerEntity()checkDeletePermissionOwnerEntity()checkReadPermissionOwnerEntity()checkUpdatePermissionOwnerEntity()cloneLocationAddress()deleteByEntity()deleteByEntityId()Удаляет адреса сущностиgetByOwner()getClientTypeInfos()getCount()getCountries()
getLocationAddressByFields() есть и у других классов модуля «CRM»: ContactAddress, EntityAddress, LeadAddress, RequisiteAddress.
Исходный файл: source/crm/lib/companyaddress.php:630

