-
-
Notifications
You must be signed in to change notification settings - Fork 825
/
Copy pathRelationshipCache.php
51 lines (43 loc) · 1.45 KB
/
RelationshipCache.php
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
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| |
| This work is published under the GNU AGPLv3 license with some |
| permitted exceptions and without any warranty. For full license |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
/**
*
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
*/
namespace Civi\Api4;
/**
* RelationshipCache - readonly table to facilitate joining and finding contacts by relationship.
*
* @see \Civi\Api4\Relationship
* @bridge near_contact_id far_contact_id
* @ui_join_filters near_relation
* @package Civi\Api4
*/
class RelationshipCache extends Generic\AbstractEntity {
use Generic\Traits\EntityBridge;
/**
* @param bool $checkPermissions
* @return Generic\DAOGetAction
*/
public static function get($checkPermissions = TRUE) {
return (new Generic\DAOGetAction(__CLASS__, __FUNCTION__))
->setCheckPermissions($checkPermissions);
}
/**
* @param bool $checkPermissions
* @return Generic\DAOGetFieldsAction
*/
public static function getFields($checkPermissions = TRUE) {
return (new Generic\DAOGetFieldsAction(__CLASS__, __FUNCTION__))
->setCheckPermissions($checkPermissions);
}
}