X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FGroupContact.php;h=d5935967a6399505eeba1ce7516b897081273fa5;hb=e1c19eaf61ecb9bd0119ee438deb42417b8abbf3;hp=62d1b2dc0fae675bd868db7c3c4be8399a5a0a5c;hpb=22e7138f123721979742cd2f4a777ea5d0c41402;p=civicrm-core.git diff --git a/Civi/Api4/GroupContact.php b/Civi/Api4/GroupContact.php index 62d1b2dc0f..d5935967a6 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; @@ -30,27 +28,33 @@ namespace Civi\Api4; * * @package Civi\Api4 */ -class GroupContact extends Generic\DAOEntity { +class GroupContact extends Generic\BridgeEntity { /** + * @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); } }