Commit | Line | Data |
---|---|---|
19b53e5b C |
1 | <?php |
2 | ||
380f3545 TO |
3 | /* |
4 | +--------------------------------------------------------------------+ | |
41498ac5 | 5 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 6 | | | |
41498ac5 TO |
7 | | This work is published under the GNU AGPLv3 license with some | |
8 | | permitted exceptions and without any warranty. For full license | | |
9 | | and copyright information, see https://civicrm.org/licensing | | |
380f3545 TO |
10 | +--------------------------------------------------------------------+ |
11 | */ | |
12 | ||
13 | /** | |
14 | * | |
15 | * @package CRM | |
ca5cec67 | 16 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
380f3545 TO |
17 | * $Id$ |
18 | * | |
19 | */ | |
20 | ||
21 | ||
19b53e5b C |
22 | namespace Civi\Api4; |
23 | ||
24 | /** | |
25 | * GroupContact entity - link between groups and contacts. | |
26 | * | |
27 | * A contact can either be "Added" "Removed" or "Pending" in a group. | |
28 | * CiviCRM only considers them to be "in" a group if their status is "Added". | |
29 | * | |
30 | * @package Civi\Api4 | |
31 | */ | |
32 | class GroupContact extends Generic\DAOEntity { | |
33 | ||
34 | /** | |
35 | * @return Action\GroupContact\Create | |
36 | */ | |
37 | public static function create() { | |
38 | return new Action\GroupContact\Create(__CLASS__, __FUNCTION__); | |
39 | } | |
40 | ||
41 | /** | |
42 | * @return Action\GroupContact\Save | |
43 | */ | |
44 | public static function save() { | |
45 | return new Action\GroupContact\Save(__CLASS__, __FUNCTION__); | |
46 | } | |
47 | ||
48 | /** | |
49 | * @return Action\GroupContact\Update | |
50 | */ | |
51 | public static function update() { | |
52 | return new Action\GroupContact\Update(__CLASS__, __FUNCTION__); | |
53 | } | |
54 | ||
55 | } |