800d8f6aec9b37f3686f280d594bdbe73e2679d8
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
14 * Contacts - Individuals, Organizations, Households.
16 * This is the central entity in the CiviCRM database, and links to
17 * many other entities (Email, Phone, Participant, etc.).
19 * Creating a new contact requires at minimum a name or email address.
21 * @see https://docs.civicrm.org/user/en/latest/organising-your-data/contacts/
27 class Contact
extends Generic\DAOEntity
{
30 * @param bool $checkPermissions
31 * @return Action\Contact\Update
33 public static function update($checkPermissions = TRUE) {
34 return (new Action\Contact\
Update(__CLASS__
, __FUNCTION__
))
35 ->setCheckPermissions($checkPermissions);
39 * @param bool $checkPermissions
40 * @return Action\Contact\Save
42 public static function save($checkPermissions = TRUE) {
43 return (new Action\Contact\
Save(__CLASS__
, __FUNCTION__
))
44 ->setCheckPermissions($checkPermissions);
48 * @param bool $checkPermissions
49 * @return Action\Contact\Delete
51 public static function delete($checkPermissions = TRUE) {
52 return (new Action\Contact\
Delete(__CLASS__
, __FUNCTION__
))
53 ->setCheckPermissions($checkPermissions);
57 * @param bool $checkPermissions
58 * @return Action\Contact\GetChecksum
60 public static function getChecksum($checkPermissions = TRUE) {
61 return (new Action\Contact\
GetChecksum(__CLASS__
, __FUNCTION__
))
62 ->setCheckPermissions($checkPermissions);
66 * @param bool $checkPermissions
67 * @return Action\Contact\ValidateChecksum
69 public static function validateChecksum($checkPermissions = TRUE) {
70 return (new Action\Contact\
ValidateChecksum(__CLASS__
, __FUNCTION__
))
71 ->setCheckPermissions($checkPermissions);