diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/crm/wp-content/plugins/civicrm/civicrm/ext/api4/Civi/Api4/GroupContact.php |
first commit
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__); + } + +} |