X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FAddress.php;h=038e544ea71efb6d955b1306dc08891b1b7d0f19;hb=10009c0baedb70d66d100d10ff04dd01797b685b;hp=003e5456d23d1a21d44801d3074e429cc283b18a;hpb=64aa560db1b9afecf26162220cf0eb8153ff5a11;p=civicrm-core.git diff --git a/Civi/Api4/Address.php b/Civi/Api4/Address.php index 003e5456d2..038e544ea7 100644 --- a/Civi/Api4/Address.php +++ b/Civi/Api4/Address.php @@ -33,24 +33,30 @@ namespace Civi\Api4; class Address extends Generic\DAOEntity { /** - * @return \Civi\Api4\Action\Address\Create + * @param bool $checkPermissions + * @return Action\Address\Create */ - public static function create() { - return new \Civi\Api4\Action\Address\Create(__CLASS__, __FUNCTION__); + public static function create($checkPermissions = TRUE) { + return (new Action\Address\Create(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } /** - * @return \Civi\Api4\Action\Address\Save + * @param bool $checkPermissions + * @return Action\Address\Save */ - public static function save() { - return new \Civi\Api4\Action\Address\Save(__CLASS__, __FUNCTION__); + public static function save($checkPermissions = TRUE) { + return (new Action\Address\Save(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } /** - * @return \Civi\Api4\Action\Address\Update + * @param bool $checkPermissions + * @return Action\Address\Update */ - public static function update() { - return new \Civi\Api4\Action\Address\Update(__CLASS__, __FUNCTION__); + public static function update($checkPermissions = TRUE) { + return (new Action\Address\Update(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } }