Merge pull request #24203 from colemanw/fixTagFilter553
[civicrm-core.git] / Civi / Api4 / EntityTag.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11 namespace Civi\Api4;
12
13 /**
14 * EntityTag - links tags to contacts, activities, etc.
15 *
16 * @see \Civi\Api4\Tag
17 * @searchable bridge
18 * @since 5.19
19 * @package Civi\Api4
20 */
21 class EntityTag extends Generic\DAOEntity {
22 use Generic\Traits\EntityBridge;
23
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
51 }