X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FContact.php;h=800d8f6aec9b37f3686f280d594bdbe73e2679d8;hb=5a443458b6e14de9c21ded8cc3f1976228a47524;hp=9ec5679d9555a3bd409d980fa969f3f1ef3bdcd9;hpb=b7412ea74b71e2c3c457639e301d57147655bd4e;p=civicrm-core.git diff --git a/Civi/Api4/Contact.php b/Civi/Api4/Contact.php index 9ec5679d95..800d8f6aec 100644 --- a/Civi/Api4/Contact.php +++ b/Civi/Api4/Contact.php @@ -20,11 +20,39 @@ namespace Civi\Api4; * * @see https://docs.civicrm.org/user/en/latest/organising-your-data/contacts/ * @searchable primary + * @orderBy sort_name * @since 5.19 * @package 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 + */ + public static function delete($checkPermissions = TRUE) { + return (new Action\Contact\Delete(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + /** * @param bool $checkPermissions * @return Action\Contact\GetChecksum