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

