method
public
static
EntityAddress::cloneLocationAddress()
Класс: \Bitrix\Crm\EntityAddress
Сигнатура
public static cloneLocationAddress(int $locationAddressId) : Address
Параметры
$locationAddressId
int
Возвращаемое значение
Address
Как применяется в EntityAddress
EntityAddress::cloneLocationAddress() — метод класса \Bitrix\Crm\EntityAddress модуля «CRM».
Статический метод — вызывается через имя класса EntityAddress, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Crm\EntityAddress;
Loader::includeModule('crm');
$locationAddressId = 1;
$result = EntityAddress::cloneLocationAddress($locationAddressId);
// $result: AddressДругие методы EntityAddress
areEquals()Проверяет, равны ли адресаcheckCreatePermissionOwnerEntity()checkDeletePermissionOwnerEntity()checkReadPermissionOwnerEntity()checkUpdatePermissionOwnerEntity()deleteByEntity()getByOwner()getClientTypeInfos()getCount()getCountries()getCountryByCode()getDefaultLanguageId()
cloneLocationAddress() есть и у других классов модуля «CRM»: CompanyAddress, ContactAddress, LeadAddress, RequisiteAddress.
Исходный файл: source/crm/lib/entityaddress.php:771

