blob: cca8c335d3e36bc95c683674f92bb38ba58b47b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
namespace Civi\Api4;
/**
* Contacts - Individuals, Organizations, Households.
*
* This is the central entity in the CiviCRM database, and links to
* many other entities (Email, Phone, Participant, etc.).
*
* Creating a new contact requires at minimum a name or email address.
*
* @package Civi\Api4
*/
class Contact extends Generic\DAOEntity {
/**
* @return Action\Contact\Create
*/
public static function create() {
return new Action\Contact\Create(__CLASS__, __FUNCTION__);
}
/**
* @return \Civi\Api4\Generic\DAOUpdateAction
*/
public static function update() {
// For some reason the contact bao requires this for updating
return new Generic\DAOUpdateAction(__CLASS__, __FUNCTION__, ['id', 'contact_type']);
}
/**
* @return \Civi\Api4\Action\Contact\GetFields
*/
public static function getFields() {
return new Action\Contact\GetFields(__CLASS__, __FUNCTION__);
}
}
|