createSyncJSON.php
Create a xml file for a set of contact ID's in a format digestible by our Sync scripts
Table of Contents
Constants
- CHUNK_SIZE = 128
Functions
- splitContactIDs() : array<string|int, mixed>
- Split a large array of contactIDs into more manageable smaller chunks
- getValues() : array<string|int, mixed>
- Given a set of contact IDs get the values
- getTableInfo() : mixed
- getContactInfo() : mixed
- getNoteInfo() : mixed
- getPhoneInfo() : mixed
- getEmailInfo() : mixed
- getAddressInfo() : mixed
- getRelationshipInfo() : mixed
- getActivityInfo() : mixed
- appendValue() : mixed
- getDBFields() : mixed
- addAdditionalContacts() : mixed
- run() : mixed
Constants
CHUNK_SIZE
public
mixed
CHUNK_SIZE
= 128
Functions
splitContactIDs()
Split a large array of contactIDs into more manageable smaller chunks
& splitContactIDs(mixed &$contactIDs) : array<string|int, mixed>
Parameters
- $contactIDs : mixed
Return values
array<string|int, mixed>getValues()
Given a set of contact IDs get the values
getValues(mixed &$contactIDs, mixed &$values, mixed &$allContactIDs, mixed &$addditionalContactIDs) : array<string|int, mixed>
Parameters
- $contactIDs : mixed
- $values : mixed
- $allContactIDs : mixed
- $addditionalContactIDs : mixed
Return values
array<string|int, mixed>getTableInfo()
getTableInfo(mixed &$contactIDs, mixed &$values, mixed $tableName, mixed &$fields, mixed $whereField[, string|null $additionalWhereCond = NULL ][, bool $flat = FALSE ]) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
- $tableName : mixed
- $fields : mixed
- $whereField : mixed
- $additionalWhereCond : string|null = NULL
- $flat : bool = FALSE
getContactInfo()
getContactInfo(mixed &$contactIDs, mixed &$values) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
getNoteInfo()
getNoteInfo(mixed &$contactIDs, mixed &$values) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
getPhoneInfo()
getPhoneInfo(mixed &$contactIDs, mixed &$values) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
getEmailInfo()
getEmailInfo(mixed &$contactIDs, mixed &$values) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
getAddressInfo()
getAddressInfo(mixed &$contactIDs, mixed &$values) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
getRelationshipInfo()
getRelationshipInfo(mixed &$contactIDs, mixed &$values, mixed &$allContactIDs, mixed &$additionalContacts) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
- $allContactIDs : mixed
- $additionalContacts : mixed
getActivityInfo()
getActivityInfo(mixed &$contactIDs, mixed &$values, mixed &$allContactIDs, mixed &$additionalContacts) : mixed
Parameters
- $contactIDs : mixed
- $values : mixed
- $allContactIDs : mixed
- $additionalContacts : mixed
appendValue()
appendValue(mixed &$values, mixed $id, mixed $name, mixed $value[, bool $ignored = FALSE ]) : mixed
Parameters
- $values : mixed
- $id : mixed
- $name : mixed
- $value : mixed
- $ignored : bool = FALSE
getDBFields()
getDBFields(string $daoName) : mixed
Parameters
- $daoName : string
addAdditionalContacts()
addAdditionalContacts(mixed $contactIDs, mixed &$allContactIDs, mixed &$additionalContacts) : mixed
Parameters
- $contactIDs : mixed
- $allContactIDs : mixed
- $additionalContacts : mixed
run()
run(mixed &$values, mixed &$contactIDs, mixed &$allContactIDs) : mixed
Parameters
- $values : mixed
- $contactIDs : mixed
- $allContactIDs : mixed