Documentation

createSolrXML.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
generateSolrXML()  : string
Given an array of values, generate the XML in the Solr format
getValues()  : array<string|int, mixed>
Given a set of contact IDs get the values
getTableInfo()  : mixed
getContactInfo()  : mixed
getLocationInfo()  : 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>

generateSolrXML()

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

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

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

getLocationInfo()

getLocationInfo(mixed &$contactIDs, mixed &$values) : mixed
Parameters
$contactIDs : mixed
$values : mixed

run()

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

        
On this page

Search results