X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FGroupContact.php;h=98e0eb626896dea675b8505e961ab2de181755d6;hb=b5eb4be901711f519afa890eaf46801b57745143;hp=7af2722431e846c3a54a0a594b8b9c5f49c7b366;hpb=5ec753e358cd1692934daa7f5bd99384097fdf8c;p=civicrm-core.git diff --git a/Civi/Api4/GroupContact.php b/Civi/Api4/GroupContact.php index 7af2722431..98e0eb6268 100644 --- a/Civi/Api4/GroupContact.php +++ b/Civi/Api4/GroupContact.php @@ -14,11 +14,8 @@ * * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing - * $Id$ - * */ - namespace Civi\Api4; /** @@ -27,29 +24,37 @@ namespace Civi\Api4; * 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". * + * @see \Civi\Api4\Group + * * @package Civi\Api4 */ class GroupContact extends Generic\DAOEntity { /** + * @param bool $checkPermissions * @return Action\GroupContact\Create */ - public static function create() { - return new Action\GroupContact\Create(__CLASS__, __FUNCTION__); + public static function create($checkPermissions = TRUE) { + return (new Action\GroupContact\Create(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } /** + * @param bool $checkPermissions * @return Action\GroupContact\Save */ - public static function save() { - return new Action\GroupContact\Save(__CLASS__, __FUNCTION__); + public static function save($checkPermissions = TRUE) { + return (new Action\GroupContact\Save(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } /** + * @param bool $checkPermissions * @return Action\GroupContact\Update */ - public static function update() { - return new Action\GroupContact\Update(__CLASS__, __FUNCTION__); + public static function update($checkPermissions = TRUE) { + return (new Action\GroupContact\Update(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } }