Documentation

createSolrJSON.php

Create a xml file for a set of contact ID's in a format digestible by Solr

Table of Contents

Constants

CHUNK_SIZE  = 128

Functions

splitContactIDs()  : array<string|int, mixed>
Split a large array of contactIDs into more manageable smaller chunks
generateSolrJSON()  : string
Given an array of values, generate the JSON in the Solr format
escapeJsonString()  : mixed
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
appendValue()  : mixed
run()  : mixed

Constants

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>

generateSolrJSON()

Given an array of values, generate the JSON in the Solr format

& generateSolrJSON(mixed $values) : string
Parameters
$values : mixed
Return values
string

escapeJsonString()

escapeJsonString(mixed $value) : mixed
Parameters
$value : mixed

getValues()

Given a set of contact IDs get the values

getValues(mixed &$contactIDs, mixed &$values) : array<string|int, mixed>
Parameters
$contactIDs : mixed
$values : mixed
Return values
array<string|int, mixed>

getTableInfo()

getTableInfo(mixed &$contactIDs, mixed &$values, mixed $tableName, mixed &$fields, mixed $whereField[, string|null $additionalWhereCond = NULL ]) : mixed
Parameters
$contactIDs : mixed
$values : mixed
$tableName : mixed
$fields : mixed
$whereField : mixed
$additionalWhereCond : string|null = NULL

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

appendValue()

appendValue(mixed &$values, mixed $contactID, mixed $name, mixed $value) : mixed
Parameters
$values : mixed
$contactID : mixed
$name : mixed
$value : mixed

run()

run(mixed &$contactIDs) : mixed
Parameters
$contactIDs : mixed

        
On this page

Search results