Commit | Line | Data |
---|---|---|
19b53e5b | 1 | <?php |
380f3545 TO |
2 | /* |
3 | +--------------------------------------------------------------------+ | |
41498ac5 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 5 | | | |
41498ac5 TO |
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 | | |
380f3545 TO |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
19b53e5b C |
11 | namespace Civi\Api4; |
12 | ||
13 | /** | |
14 | * EntityTag - links tags to contacts, activities, etc. | |
15 | * | |
0493ec47 | 16 | * @see \Civi\Api4\Tag |
c5076889 | 17 | * @searchable bridge |
d44cc3cb | 18 | * @since 5.19 |
19b53e5b C |
19 | * @package Civi\Api4 |
20 | */ | |
465bc32a CW |
21 | class EntityTag extends Generic\DAOEntity { |
22 | use Generic\Traits\EntityBridge; | |
19b53e5b | 23 | |
5a443458 CW |
24 | /** |
25 | * @param bool $checkPermissions | |
26 | * @return Action\EntityTag\Create | |
27 | */ | |
28 | public static function create($checkPermissions = TRUE) { | |
29 | return (new Action\EntityTag\Create('EntityTag', __FUNCTION__)) | |
30 | ->setCheckPermissions($checkPermissions); | |
31 | } | |
32 | ||
33 | /** | |
34 | * @param bool $checkPermissions | |
35 | * @return Action\EntityTag\Save | |
36 | */ | |
37 | public static function save($checkPermissions = TRUE) { | |
38 | return (new Action\EntityTag\Save('EntityTag', __FUNCTION__)) | |
39 | ->setCheckPermissions($checkPermissions); | |
40 | } | |
41 | ||
42 | /** | |
43 | * @param bool $checkPermissions | |
44 | * @return Action\EntityTag\Update | |
45 | */ | |
46 | public static function update($checkPermissions = TRUE) { | |
47 | return (new Action\EntityTag\Update('EntityTag', __FUNCTION__)) | |
48 | ->setCheckPermissions($checkPermissions); | |
49 | } | |
50 | ||
19b53e5b | 51 | } |