X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FGroupContact.php;h=808c1a92fd3c67b6fd9236425dadd9bf1f05be7d;hb=2954197781fab7becf2b09595ac86cb6d61fea71;hp=62d1b2dc0fae675bd868db7c3c4be8399a5a0a5c;hpb=4beda4a7950cb902a9ddd0b0964ff61ed188011c;p=civicrm-core.git diff --git a/Civi/Api4/GroupContact.php b/Civi/Api4/GroupContact.php index 62d1b2dc0f..808c1a92fd 100644 --- a/Civi/Api4/GroupContact.php +++ b/Civi/Api4/GroupContact.php @@ -14,8 +14,6 @@ * * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing - * $Id$ - * */ namespace Civi\Api4; @@ -31,26 +29,33 @@ namespace Civi\Api4; * @package Civi\Api4 */ class GroupContact extends Generic\DAOEntity { + use Generic\Traits\EntityBridge; /** + * @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); } }