CRM_Utils_Address_BatchUpdate
in package
A PHP cron script to format all the addresses in the database. Currently it only does geocoding if the geocode values are not set. At a later stage we will also handle USPS address cleanup and other formatting issues
Table of Contents
Properties
- $end : mixed
- $geocoding : mixed
- $parse : mixed
- $returnError : mixed
- $returnMessages : mixed
- $start : mixed
- $throttle : mixed
Methods
- __construct() : mixed
- Class constructor.
- processContacts() : array<string|int, mixed>
- Process contacts.
- returnResult() : array<string|int, mixed>
- Return result.
- run() : array<string|int, mixed>
- Run batch update.
Properties
$end
public
mixed
$end
= \NULL
$geocoding
public
mixed
$geocoding
= 1
$parse
public
mixed
$parse
= 1
$returnError
public
mixed
$returnError
= 0
$returnMessages
public
mixed
$returnMessages
= []
$start
public
mixed
$start
= \NULL
$throttle
public
mixed
$throttle
= 0
Methods
__construct()
Class constructor.
public
__construct(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
processContacts()
Process contacts.
public
processContacts(bool $processGeocode, bool $parseStreetAddress) : array<string|int, mixed>
Parameters
- $processGeocode : bool
- $parseStreetAddress : bool
Tags
Return values
array<string|int, mixed>returnResult()
Return result.
public
returnResult() : array<string|int, mixed>
Return values
array<string|int, mixed>run()
Run batch update.
public
run() : array<string|int, mixed>