blob: 862a8b9e7fac306d525e80b43cb30d4e46eeb0d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
namespace Civi\Api4\Action\Address;
use Civi\Api4\Generic\Result;
/**
* @inheritDoc
*/
class Update extends \Civi\Api4\Generic\DAOUpdateAction {
/**
* Optional param to indicate you want the street_address field parsed into individual params
*
* @var bool
*/
protected $streetParsing = TRUE;
/**
* Optional param to indicate you want to skip geocoding (useful when importing a lot of addresses at once, the job Geocode and Parse Addresses can execute this task after the import)
*
* @var bool
*/
protected $skipGeocode = FALSE;
/**
* When true, apply various fixes to the address before insert.
*
* @var bool
*/
protected $fixAddress = TRUE;
/**
* @inheritDoc
*/
public function _run(Result $result) {
$this->values['street_parsing'] = $this->streetParsing;
$this->values['skip_geocode'] = $this->skipGeocode;
$this->values['fix_address'] = $this->fixAddress;
parent::_run($result);
}
}
|