blob: edb8a90213d066292a032a1c11ec5d1ab8d71e06 (
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
|
<?php
namespace Civi\Api4\Action\GroupContact;
use Civi\Api4\Generic\Result;
/**
* @inheritDoc
*
* @method $this setMethod(string $method) Indicate who added/removed the group.
* @method $this setTracking(string $tracking) Specify ip address or other tracking info.
*/
class Update extends \Civi\Api4\Generic\DAOUpdateAction {
/**
* String to indicate who added/removed the group.
*
* @var string
*/
protected $method = 'API';
/**
* IP address or other tracking info about who performed this group subscription.
*
* @var string
*/
protected $tracking = '';
/**
* @inheritDoc
*/
public function _run(Result $result) {
$this->values['method'] = $this->method;
$this->values['tracking'] = $this->tracking;
parent::_run($result);
}
}
|