DealContactTable extends DataManager
Class DealContactTable
DO NOT WRITE ANYTHING BELOW THIS
<<< ORMENTITYANNOTATION
Table of Contents
Methods
- bindContactIDs() : void
- Bind deal to contacts are specified by ID.
- bindContacts() : void
- Bind deal to contacts.
- createCollection() : EO_DealContact_Collection
- createObject() : EO_DealContact
- getBulkDealBindings() : array<string|int, mixed>
- Get binding map for deal's collection.
- getById() : EO_DealContact_Result
- getByPrimary() : EO_DealContact_Result
- getContactDealIDs() : array<string|int, mixed>
- Get deal IDs are bound to specified contact.
- getDealBindingCount() : int
- Get deal's binding count.
- getDealBindings() : array<string|int, mixed>
- Get deal's bindings.
- getDealContactIDs() : array<string|int, mixed>
- Get contact IDs are bound to specified deal.
- getDealsContactIds() : array<string|int, mixed>
- getEntity() : EO_DealContact_Entity
- getList() : EO_DealContact_Result
- getMap() : array<string|int, mixed>
- Get table fields map.
- getTableName() : string
- Get table name.
- hasContacts() : bool
- Check if deal has contacts.
- prepareFilterJoinSql() : string
- Prepage SQL join filter condition for specified entity.
- query() : EO_DealContact_Query
- rebindAllContacts() : mixed
- Unbind all contacts from seed deal and bind to target deal
- rebindAllDeals() : mixed
- Unbind all deals from seed contact and bind to target contact
- unbindAllContacts() : void
- Unbind specified deal from all contacts.
- unbindAllDeals() : void
- Unbind specified contact from all deals.
- unbindContactIDs() : void
- Unbind specified deal from specified contacts.
- unbindContacts() : void
- Unbind specified deal from specified contacts.
- upsert() : void
- Execute UPSERT operation.
- wakeUpCollection() : EO_DealContact_Collection
- wakeUpObject() : EO_DealContact
Methods
bindContactIDs()
Bind deal to contacts are specified by ID.
public
static bindContactIDs(int $dealID, array<string|int, mixed> $contactIDs) : void
Parameters
- $dealID : int
-
Deal ID.
- $contactIDs : array<string|int, mixed>
-
Array of contact IDs.
bindContacts()
Bind deal to contacts.
public
static bindContacts(int $dealID, array<string|int, mixed> $bindings) : void
Parameters
- $dealID : int
-
Deal ID.
- $bindings : array<string|int, mixed>
-
Array of contact bindings.
Tags
createCollection()
public
static createCollection() : EO_DealContact_Collection
Return values
EO_DealContact_CollectioncreateObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_DealContact
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_DealContactgetBulkDealBindings()
Get binding map for deal's collection.
public
static getBulkDealBindings(array<string|int, mixed> $dealIDs) : array<string|int, mixed>
Parameters
- $dealIDs : array<string|int, mixed>
-
Array of Deal IDs.
Tags
Return values
array<string|int, mixed>getById()
public
static getById(mixed $id) : EO_DealContact_Result
Parameters
- $id : mixed
Return values
EO_DealContact_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_DealContact_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_DealContact_ResultgetContactDealIDs()
Get deal IDs are bound to specified contact.
public
static getContactDealIDs(int $contactID) : array<string|int, mixed>
Parameters
- $contactID : int
-
Contact ID.
Tags
Return values
array<string|int, mixed>getDealBindingCount()
Get deal's binding count.
public
static getDealBindingCount(mixed $dealID) : int
Parameters
- $dealID : mixed
Tags
Return values
intgetDealBindings()
Get deal's bindings.
public
static getDealBindings(int $dealID) : array<string|int, mixed>
Parameters
- $dealID : int
-
Deal ID.
Tags
Return values
array<string|int, mixed>getDealContactIDs()
Get contact IDs are bound to specified deal.
public
static getDealContactIDs(int $dealID) : array<string|int, mixed>
Parameters
- $dealID : int
-
Deal ID.
Tags
Return values
array<string|int, mixed>getDealsContactIds()
public
static getDealsContactIds(array<string|int, mixed> $dealIds) : array<string|int, mixed>
Parameters
- $dealIds : array<string|int, mixed>
Return values
array<string|int, mixed>getEntity()
public
static getEntity() : EO_DealContact_Entity
Return values
EO_DealContact_EntitygetList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_DealContact_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_DealContact_ResultgetMap()
Get table fields map.
public
static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getTableName()
Get table name.
public
static getTableName() : string
Return values
stringhasContacts()
Check if deal has contacts.
public
static hasContacts(int $dealID) : bool
Parameters
- $dealID : int
-
Deal ID.
Tags
Return values
boolprepareFilterJoinSql()
Prepage SQL join filter condition for specified entity.
public
static prepareFilterJoinSql(int $entityTypeID, int $entityID, string $tableAlias) : string
Parameters
- $entityTypeID : int
-
Entity type ID for filter.
- $entityID : int
-
Entity ID for filter.
- $tableAlias : string
-
Alias of primary table.
Tags
Return values
stringquery()
public
static query() : EO_DealContact_Query
Return values
EO_DealContact_QueryrebindAllContacts()
Unbind all contacts from seed deal and bind to target deal
public
static rebindAllContacts(int $seedDealID, int $targDealID) : mixed
Parameters
- $seedDealID : int
-
Seed deal ID.
- $targDealID : int
-
Target deal ID.
Tags
rebindAllDeals()
Unbind all deals from seed contact and bind to target contact
public
static rebindAllDeals(int $seedContactID, int $targContactID) : mixed
Parameters
- $seedContactID : int
-
Seed contact ID.
- $targContactID : int
-
Target contact ID.
Tags
unbindAllContacts()
Unbind specified deal from all contacts.
public
static unbindAllContacts(int $dealID) : void
Parameters
- $dealID : int
-
Deal ID.
Tags
unbindAllDeals()
Unbind specified contact from all deals.
public
static unbindAllDeals(int $contactID) : void
Parameters
- $contactID : int
-
Contact ID.
Tags
unbindContactIDs()
Unbind specified deal from specified contacts.
public
static unbindContactIDs(int $dealID, array<string|int, mixed> $contactIDs) : void
Parameters
- $dealID : int
-
Deal ID.
- $contactIDs : array<string|int, mixed>
-
Array of contact IDs.
Tags
unbindContacts()
Unbind specified deal from specified contacts.
public
static unbindContacts(int $dealID, array<string|int, mixed> $bindings) : void
Parameters
- $dealID : int
-
Deal ID.
- $bindings : array<string|int, mixed>
-
Array of bindings.
Tags
upsert()
Execute UPSERT operation.
public
static upsert(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
-
Field data.
wakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_DealContact_Collection
Parameters
- $rows : mixed
Return values
EO_DealContact_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_DealContact
Parameters
- $row : mixed