4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
29 class CustomValue
extends Generic\AbstractEntity
{
32 * @param string $customGroup
33 * @return Action\CustomValue\Get
35 public static function get($customGroup) {
36 return new Action\CustomValue\
Get($customGroup, __FUNCTION__
);
40 * @param string $customGroup
41 * @return Action\CustomValue\GetFields
43 public static function getFields($customGroup = NULL) {
44 return new Action\CustomValue\
GetFields($customGroup, __FUNCTION__
);
48 * @param string $customGroup
49 * @return Action\CustomValue\Save
51 public static function save($customGroup) {
52 return new Action\CustomValue\
Save($customGroup, __FUNCTION__
);
56 * @param string $customGroup
57 * @return Action\CustomValue\Create
59 public static function create($customGroup) {
60 return new Action\CustomValue\
Create($customGroup, __FUNCTION__
);
64 * @param string $customGroup
65 * @return Action\CustomValue\Update
67 public static function update($customGroup) {
68 return new Action\CustomValue\
Update($customGroup, __FUNCTION__
);
72 * @param string $customGroup
73 * @return Action\CustomValue\Delete
75 public static function delete($customGroup) {
76 return new Action\CustomValue\
Delete($customGroup, __FUNCTION__
);
80 * @param string $customGroup
81 * @return Action\CustomValue\Replace
83 public static function replace($customGroup) {
84 return new Action\CustomValue\
Replace($customGroup, __FUNCTION__
);
88 * @param string $customGroup
89 * @return Action\CustomValue\GetActions
91 public static function getActions($customGroup = NULL) {
92 return new Action\CustomValue\
GetActions($customGroup, __FUNCTION__
);
98 public static function permissions() {
100 $permissions = \CRM_Core_Permission
::getEntityActionPermissions();
102 // Merge permissions for this entity with the defaults
103 return \CRM_Utils_Array
::value($entity, $permissions, []) +
$permissions['default'];