diff options
Diffstat (limited to 'www/crm/wp-content/plugins/civicrm/civicrm/ext/api4/Civi/Api4/GroupContact.php')
-rw-r--r-- | www/crm/wp-content/plugins/civicrm/civicrm/ext/api4/Civi/Api4/GroupContact.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/crm/wp-content/plugins/civicrm/civicrm/ext/api4/Civi/Api4/GroupContact.php b/www/crm/wp-content/plugins/civicrm/civicrm/ext/api4/Civi/Api4/GroupContact.php new file mode 100644 index 00000000..8901cd3b --- /dev/null +++ b/www/crm/wp-content/plugins/civicrm/civicrm/ext/api4/Civi/Api4/GroupContact.php @@ -0,0 +1,29 @@ +<?php + +namespace Civi\Api4; + +/** + * GroupContact entity - link between groups and contacts. + * + * A contact can either be "Added" "Removed" or "Pending" in a group. + * CiviCRM only considers them to be "in" a group if their status is "Added". + * + * @package Civi\Api4 + */ +class GroupContact extends Generic\DAOEntity { + + /** + * @return Action\GroupContact\Create + */ + public static function create() { + return new Action\GroupContact\Create(__CLASS__, __FUNCTION__); + } + + /** + * @return Action\GroupContact\Update + */ + public static function update() { + return new Action\GroupContact\Update(__CLASS__, __FUNCTION__); + } + +} |