Documentation

ContactCompanyTable

ContactCompanyTable class handles storage for Contact and Companies.

Class methods

MethodDescription Available from version
bindCompaniesBinds Contact with Companies.
bindCompanyIDsBinds Contact to Companies with specified IDs.
bindContactIDsBinds Company to Contacts with specified IDs.
bindContactsBinds Company with Contacts.
getCompanyBindingsGets company bindings.
getCompanyContactIDsGets Contact IDs, binded with specified Company.
getContactBindingCountGets number of Contact bindings.
getContactBindingsGets Contact bindings.
getContactCompanyIDsGets Company IDs, binded with specified Contact.
getMapGets table fields map.
getTableNameGets table name.
hasCompaniesVerifies, if Contact has Companies.
prepareFilterJoinSqlPrepares filter conditions SQL join query for specified entity.
[link= 4417045]rebindAllCompanies[/link]Unbinds all compnaies from source contact and binds to target contact.
rebindAllContactsUnbinds all contacts from source Company and binds to target Company.
unbindAllCompaniesUnbinds specified Contact from all Companies.
unbindAllContactsUnbinds specified Company from all Contacts.
unbindCompaniesDeletes all specified bindings between Contact and Companies.
unbindCompanyIDsDeletes bindings between Contact and Companies by Company IDs.
unbindContactIDsDeletes bindings between Company and Contacts by Contact IDs.
unbindContactsDeletes specified Company bindings to Contacts.
upsertExecutes UPSERT operation.


© «Bitrix24», 2001-2024