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

