X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FContact.php;h=800d8f6aec9b37f3686f280d594bdbe73e2679d8;hb=5a443458b6e14de9c21ded8cc3f1976228a47524;hp=34f6463f5530f8c5f28962f67c3330352255d88f;hpb=7e042acf2a1850f67622ab6d28c3e6a2cedd90cd;p=civicrm-core.git diff --git a/Civi/Api4/Contact.php b/Civi/Api4/Contact.php index 34f6463f55..800d8f6aec 100644 --- a/Civi/Api4/Contact.php +++ b/Civi/Api4/Contact.php @@ -26,6 +26,24 @@ namespace Civi\Api4; */ class Contact extends Generic\DAOEntity { + /** + * @param bool $checkPermissions + * @return Action\Contact\Update + */ + public static function update($checkPermissions = TRUE) { + return (new Action\Contact\Update(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return Action\Contact\Save + */ + public static function save($checkPermissions = TRUE) { + return (new Action\Contact\Save(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + /** * @param bool $checkPermissions * @return Action\Contact\Delete