ContactCompanyCollection extends EntityCollection
Class ContactCompanyCollection
Table of Contents
Methods
- addItem() : CollectableEntity
- clearCollection() : mixed
- clearStartField() : bool
- count() : int
- Count elements of an object
- createCompany() : mixed
- createContact() : mixed
- current() : mixed
- Return the current element
- disableAutoCreationMode() : void
- doFinalAction() : Result
- getCompanies() : CollectionFilterIterator
- getCompany() : Company|null
- Returns the company that is bound to the order Order doesn't supports multiple companies For details, @see ContactCompanyCollection::addItem()
- getContacts() : CollectionFilterIterator
- getEntityCommunication() : Company|Contact|null
- getEntityCommunicationPhone() : string|null
- getIndexById() : bool|int|null
- getItemById() : CollectableEntity|null
- getItemByIdentifier() : ContactCompanyEntity|null
- Returns an entity specified by the identifier
- getItemByIndex() : CollectableEntity|null
- getIterator() : ArrayIterator
- getList() : Result
- getOrder() : null
- getPrimaryCompany() : Company|null
- getPrimaryContact() : Contact|null
- getRegistryType() : string
- hasMeaningfulField() : bool
- isAnyItemAdded() : bool
- isAnyItemDeleted() : bool
- isAutoCreationModeEnabled() : bool
- isChanged() : bool
- isClone() : bool
- isEmpty() : bool
- Checks if collection is empty.
- isMathActionOnly() : bool
- isPrimaryItemExists() : bool
- isStartField() : bool
- key() : mixed
- Return the key of the current element
- load() : ContactCompanyCollection
- next() : mixed
- Move forward to next element
- offsetExists() : bool
- Whether a offset exists
- offsetGet() : mixed
- Offset to retrieve
- offsetSet() : void
- Offset to set
- offsetUnset() : void
- Offset to unset
- rewind() : mixed
- Rewind the Iterator to the first element
- save() : Result
- setMathActionOnly() : bool
- setOrder() : mixed
- toArray() : mixed
- valid() : mixed
- Checks if current position is valid
- verify() : Result
Methods
addItem()
public
addItem(CollectableEntity $item) : CollectableEntity
Parameters
- $item : CollectableEntity
Return values
CollectableEntityclearCollection()
public
clearCollection() : mixed
Tags
clearStartField()
public
clearStartField() : bool
Return values
boolcount()
Count elements of an object
public
count() : int
Return values
intcreateCompany()
public
createCompany() : mixed
Tags
createContact()
public
createContact() : mixed
Tags
current()
Return the current element
public
current() : mixed
disableAutoCreationMode()
public
disableAutoCreationMode() : void
doFinalAction()
public
doFinalAction([bool $hasMeaningfulField = false ]) : Result
Parameters
- $hasMeaningfulField : bool = false
Return values
ResultgetCompanies()
public
getCompanies() : CollectionFilterIterator
Return values
CollectionFilterIteratorgetCompany()
Returns the company that is bound to the order Order doesn't supports multiple companies For details, @see ContactCompanyCollection::addItem()
public
getCompany() : Company|null
Return values
Company|nullgetContacts()
public
getContacts() : CollectionFilterIterator
Return values
CollectionFilterIteratorgetEntityCommunication()
public
getEntityCommunication() : Company|Contact|null
Return values
Company|Contact|nullgetEntityCommunicationPhone()
public
getEntityCommunicationPhone() : string|null
Return values
string|nullgetIndexById()
public
getIndexById(mixed $id) : bool|int|null
Parameters
- $id : mixed
Tags
Return values
bool|int|nullgetItemById()
public
getItemById(mixed $id) : CollectableEntity|null
Parameters
- $id : mixed
Tags
Return values
CollectableEntity|nullgetItemByIdentifier()
Returns an entity specified by the identifier
public
getItemByIdentifier(ItemIdentifier $identifier) : ContactCompanyEntity|null
Parameters
- $identifier : ItemIdentifier
Return values
ContactCompanyEntity|nullgetItemByIndex()
public
getItemByIndex(mixed $index) : CollectableEntity|null
Parameters
- $index : mixed
Tags
Return values
CollectableEntity|nullgetIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIteratorgetList()
public
static getList([array<string|int, mixed> $parameters = array() ]) : Result
Parameters
- $parameters : array<string|int, mixed> = array()
Tags
Return values
ResultgetOrder()
public
getOrder() : null
Return values
nullgetPrimaryCompany()
public
getPrimaryCompany() : Company|null
Return values
Company|nullgetPrimaryContact()
public
getPrimaryContact() : Contact|null
Return values
Contact|nullgetRegistryType()
public
static getRegistryType() : string
Return values
stringhasMeaningfulField()
public
hasMeaningfulField() : bool
Return values
boolisAnyItemAdded()
public
isAnyItemAdded() : bool
Return values
boolisAnyItemDeleted()
public
isAnyItemDeleted() : bool
Return values
boolisAutoCreationModeEnabled()
public
isAutoCreationModeEnabled() : bool
Return values
boolisChanged()
public
isChanged() : bool
Return values
boolisClone()
public
isClone() : bool
Return values
boolisEmpty()
Checks if collection is empty.
public
isEmpty() : bool
Return values
boolisMathActionOnly()
public
isMathActionOnly() : bool
Return values
boolisPrimaryItemExists()
public
isPrimaryItemExists(mixed $type) : bool
Parameters
- $type : mixed
Return values
boolisStartField()
public
isStartField([bool $isMeaningfulField = false ]) : bool
Parameters
- $isMeaningfulField : bool = false
Return values
boolkey()
Return the key of the current element
public
key() : mixed
load()
public
static load(Order $order) : ContactCompanyCollection
Parameters
- $order : Order
Return values
ContactCompanyCollectionnext()
Move forward to next element
public
next() : mixed
offsetExists()
Whether a offset exists
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
Offset to retrieve
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
Offset to set
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
Offset to unset
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
rewind()
Rewind the Iterator to the first element
public
rewind() : mixed
save()
public
save() : Result
Tags
Return values
ResultsetMathActionOnly()
public
setMathActionOnly([bool|false $value = false ]) : bool
Parameters
- $value : bool|false = false
Return values
boolsetOrder()
public
setOrder(Order $order) : mixed
Parameters
- $order : Order
toArray()
public
toArray() : mixed
valid()
Checks if current position is valid
public
valid() : mixed
verify()
public
verify() : Result