CompanyAddress extends EntityAddress
Table of Contents
Constants
- Bank = 10
- Beneficiary = 9
- Custom = 7
- Delivery = 11
- First = 1
- Home = 4
- Last = 11
- Post = 8
- Primary = 1
- Registered = 6
- Secondary = 2
- Third = 3
- Undefined = 0
- Work = 5
Methods
- areEquals() : bool
- Check if addresses are equals
- checkCreatePermissionOwnerEntity() : mixed
- checkDeletePermissionOwnerEntity() : mixed
- checkReadPermissionOwnerEntity() : mixed
- checkUpdatePermissionOwnerEntity() : mixed
- cloneLocationAddress() : Address
- deleteByEntity() : mixed
- deleteByEntityId() : void
- Remove entity addresses
- getByOwner() : mixed
- getClientTypeInfos() : mixed
- getCount() : int
- getCountries() : mixed
- getCountryByCode() : mixed
- getDefaultLanguageId() : mixed
- getEntityList() : mixed
- getFieldsInfo() : mixed
- getFullAddressLabel() : mixed
- getLabel() : mixed
- getLabels() : mixed
- getList() : mixed
- getListByOwner() : mixed
- getLocationAddressByFields() : Address|null
- getShortLabels() : mixed
- getTypeDescription() : mixed
- getTypeInfos() : mixed
- getTypeLabels() : mixed
- getZoneId() : string
- getZoneMap() : array<string|int, mixed>
- isDefined() : mixed
- isEmpty() : bool
- Check if address is empty
- isLocationModuleIncluded() : bool
- isSet() : bool
- Check if address fields are set
- makeLocationAddressByFields() : Address|null
- mapEntityField() : string
- mapEntityFields() : mixed
- onLocationAddressDelete() : mixed
- onLocationAddressUpdate() : mixed
- prepareChangeEvents() : mixed
- prepareFilterJoinSql() : mixed
- prepareFilterSql() : mixed
- prepareJsonValue() : mixed
- rebind() : mixed
- register() : mixed
- resolveEntityFieldName() : mixed
- resolveEntityFieldTypeID() : int
- resolveFieldNames() : mixed
- setDef() : mixed
- setZoneId() : mixed
- unregister() : mixed
Constants
Bank
Use constants of EntityAddressType
public
mixed
Bank
= 10
Beneficiary
Use constants of EntityAddressType
public
mixed
Beneficiary
= 9
Custom
Use constants of EntityAddressType
public
mixed
Custom
= 7
Delivery
Use constants of EntityAddressType
public
mixed
Delivery
= 11
First
Use constants of EntityAddressType
public
mixed
First
= 1
Home
Use constants of EntityAddressType
public
mixed
Home
= 4
Last
Use constants of EntityAddressType
public
mixed
Last
= 11
Post
Use constants of EntityAddressType
public
mixed
Post
= 8
Primary
Use constants of EntityAddressType
public
mixed
Primary
= 1
Registered
Use constants of EntityAddressType
public
mixed
Registered
= 6
Secondary
Use constants of EntityAddressType
public
mixed
Secondary
= 2
Third
Use constants of EntityAddressType
public
mixed
Third
= 3
Undefined
Use constants of EntityAddressType
public
mixed
Undefined
= 0
Work
Use constants of EntityAddressType
public
mixed
Work
= 5
Methods
areEquals()
Check if addresses are equals
public
static areEquals(array<string|int, mixed> $a, array<string|int, mixed> $b) : bool
Parameters
- $a : array<string|int, mixed>
-
First address.
- $b : array<string|int, mixed>
-
Second address.
Return values
boolcheckCreatePermissionOwnerEntity()
public
static checkCreatePermissionOwnerEntity(mixed $entityTypeID, mixed $entityID) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
checkDeletePermissionOwnerEntity()
public
static checkDeletePermissionOwnerEntity(mixed $entityTypeID, mixed $entityID) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
checkReadPermissionOwnerEntity()
public
static checkReadPermissionOwnerEntity([mixed $entityTypeID = 0 ][, mixed $entityID = 0 ]) : mixed
Parameters
- $entityTypeID : mixed = 0
- $entityID : mixed = 0
checkUpdatePermissionOwnerEntity()
public
static checkUpdatePermissionOwnerEntity(mixed $entityTypeID, mixed $entityID) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
cloneLocationAddress()
public
static cloneLocationAddress(int $locationAddressId) : Address
Parameters
- $locationAddressId : int
Tags
Return values
AddressdeleteByEntity()
public
static deleteByEntity(mixed $entityTypeID, mixed $entityID) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
deleteByEntityId()
Remove entity addresses
public
static deleteByEntityId(array<string|int, mixed> $entityID) : void
Parameters
- $entityID : array<string|int, mixed>
-
Entity ID.
getByOwner()
public
static getByOwner(mixed $typeID, mixed $ownerTypeID, mixed $ownerID) : mixed
Parameters
- $typeID : mixed
- $ownerTypeID : mixed
- $ownerID : mixed
getClientTypeInfos()
public
static getClientTypeInfos() : mixed
Use methods of EntityAddressType
getCount()
public
getCount(mixed $filter) : int
Parameters
- $filter : mixed
Return values
intgetCountries()
public
static getCountries([array<string|int, mixed> $filter = null ]) : mixed
Parameters
- $filter : array<string|int, mixed> = null
getCountryByCode()
public
static getCountryByCode(mixed $code) : mixed
Parameters
- $code : mixed
getDefaultLanguageId()
public
static getDefaultLanguageId() : mixed
getEntityList()
public
static getEntityList(mixed $typeID, array<string|int, mixed> $sort, array<string|int, mixed> $filter[, mixed $navParams = false ][, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $typeID : mixed
- $sort : array<string|int, mixed>
- $filter : array<string|int, mixed>
- $navParams : mixed = false
- $options : array<string|int, mixed> = null
getFieldsInfo()
public
static getFieldsInfo() : mixed
getFullAddressLabel()
public
static getFullAddressLabel([mixed $typeID = 0 ]) : mixed
Use method of EntityAddressType
Parameters
- $typeID : mixed = 0
getLabel()
public
static getLabel(mixed $fieldName[, mixed $typeID = 0 ]) : mixed
Parameters
- $fieldName : mixed
- $typeID : mixed = 0
getLabels()
public
static getLabels([mixed $typeID = 0 ]) : mixed
Parameters
- $typeID : mixed = 0
getList()
public
getList(mixed $params) : mixed
Parameters
- $params : mixed
getListByOwner()
public
static getListByOwner(mixed $ownerTypeID, mixed $ownerID) : mixed
Parameters
- $ownerTypeID : mixed
- $ownerID : mixed
getLocationAddressByFields()
public
static getLocationAddressByFields(array<string|int, mixed> $fields, string $languageId) : Address|null
Parameters
- $fields : array<string|int, mixed>
- $languageId : string
Tags
Return values
Address|nullgetShortLabels()
public
static getShortLabels([mixed $typeID = 0 ]) : mixed
Parameters
- $typeID : mixed = 0
getTypeDescription()
public
static getTypeDescription(mixed $typeID) : mixed
Use method of EntityAddressType
Parameters
- $typeID : mixed
getTypeInfos()
public
static getTypeInfos() : mixed
Use method of EntityAddressType
getTypeLabels()
public
static getTypeLabels() : mixed
Use method of EntityAddressType
getZoneId()
public
static getZoneId() : string
Return values
stringgetZoneMap()
public
static getZoneMap() : array<string|int, mixed>
Return values
array<string|int, mixed>isDefined()
public
static isDefined(mixed $typeID) : mixed
Use method of EntityAddressType
Parameters
- $typeID : mixed
isEmpty()
Check if address is empty
public
static isEmpty(array<string|int, mixed> $fields) : bool
Parameters
- $fields : array<string|int, mixed>
Return values
boolisLocationModuleIncluded()
public
static isLocationModuleIncluded() : bool
Tags
Return values
boolisSet()
Check if address fields are set
public
static isSet(array<string|int, mixed> $fields) : bool
Parameters
- $fields : array<string|int, mixed>
Return values
boolmakeLocationAddressByFields()
public
static makeLocationAddressByFields(array<string|int, mixed> $fields[, string $languageId = '' ]) : Address|null
Parameters
- $fields : array<string|int, mixed>
- $languageId : string = ''
Tags
Return values
Address|nullmapEntityField()
public
static mapEntityField(mixed $fieldName, mixed $typeID[, array<string|int, mixed> $aliases = null ]) : string
Parameters
- $fieldName : mixed
- $typeID : mixed
- $aliases : array<string|int, mixed> = null
Return values
stringmapEntityFields()
public
static mapEntityFields(array<string|int, mixed> $fields[, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $fields : array<string|int, mixed>
- $options : array<string|int, mixed> = null
onLocationAddressDelete()
public
static onLocationAddressDelete(mixed $event) : mixed
Parameters
- $event : mixed
onLocationAddressUpdate()
public
static onLocationAddressUpdate(mixed $event) : mixed
Parameters
- $event : mixed
prepareChangeEvents()
public
static prepareChangeEvents(array<string|int, mixed> $original, array<string|int, mixed> $modified[, mixed $typeID = 0 ][, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $original : array<string|int, mixed>
- $modified : array<string|int, mixed>
- $typeID : mixed = 0
- $options : array<string|int, mixed> = null
prepareFilterJoinSql()
public
static prepareFilterJoinSql(mixed $entityTypeID, mixed $typeID, array<string|int, mixed> $filter, mixed $tableAlias) : mixed
Parameters
- $entityTypeID : mixed
- $typeID : mixed
- $filter : array<string|int, mixed>
- $tableAlias : mixed
prepareFilterSql()
public
static prepareFilterSql(mixed $entityTypeID, mixed $typeID, array<string|int, mixed> $filter, mixed $tableAlias) : mixed
Parameters
- $entityTypeID : mixed
- $typeID : mixed
- $filter : array<string|int, mixed>
- $tableAlias : mixed
prepareJsonValue()
public
static prepareJsonValue(mixed $data) : mixed
Does nothing.
Parameters
- $data : mixed
rebind()
public
static rebind(mixed $oldEntityTypeID, mixed $oldEntityID, mixed $newEntityTypeID, mixed $newEntityID) : mixed
Parameters
- $oldEntityTypeID : mixed
- $oldEntityID : mixed
- $newEntityTypeID : mixed
- $newEntityID : mixed
register()
public
static register(mixed $entityTypeID, mixed $entityID, mixed $typeID, array<string|int, mixed> $data[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
- $typeID : mixed
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = []
resolveEntityFieldName()
public
static resolveEntityFieldName(mixed $fieldName[, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $fieldName : mixed
- $options : array<string|int, mixed> = null
resolveEntityFieldTypeID()
public
static resolveEntityFieldTypeID(mixed $fieldName[, array<string|int, mixed> $aliases = null ]) : int
Parameters
- $fieldName : mixed
- $aliases : array<string|int, mixed> = null
Return values
intresolveFieldNames()
public
static resolveFieldNames(array<string|int, mixed> $fields[, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $fields : array<string|int, mixed>
- $options : array<string|int, mixed> = null
setDef()
public
static setDef(mixed $entityTypeID, mixed $entityID[, mixed $typeID = 0 ]) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
- $typeID : mixed = 0
setZoneId()
public
static setZoneId(string $addressZoneId) : mixed
Parameters
- $addressZoneId : string
unregister()
public
static unregister(mixed $entityTypeID, mixed $entityID, mixed $typeID) : mixed
Parameters
- $entityTypeID : mixed
- $entityID : mixed
- $typeID : mixed