10 class CustomValue
extends Generic\AbstractEntity
{
13 * @param string $customGroup
14 * @return Action\CustomValue\Get
16 public static function get($customGroup) {
17 return new Action\CustomValue\
Get($customGroup, __FUNCTION__
);
21 * @param string $customGroup
22 * @return Action\CustomValue\GetFields
24 public static function getFields($customGroup = NULL) {
25 return new Action\CustomValue\
GetFields($customGroup, __FUNCTION__
);
29 * @param string $customGroup
30 * @return Action\CustomValue\Save
32 public static function save($customGroup) {
33 return new Action\CustomValue\
Save($customGroup, __FUNCTION__
);
37 * @param string $customGroup
38 * @return Action\CustomValue\Create
40 public static function create($customGroup) {
41 return new Action\CustomValue\
Create($customGroup, __FUNCTION__
);
45 * @param string $customGroup
46 * @return Action\CustomValue\Update
48 public static function update($customGroup) {
49 return new Action\CustomValue\
Update($customGroup, __FUNCTION__
);
53 * @param string $customGroup
54 * @return Action\CustomValue\Delete
56 public static function delete($customGroup) {
57 return new Action\CustomValue\
Delete($customGroup, __FUNCTION__
);
61 * @param string $customGroup
62 * @return Action\CustomValue\Replace
64 public static function replace($customGroup) {
65 return new Action\CustomValue\
Replace($customGroup, __FUNCTION__
);
69 * @param string $customGroup
70 * @return Action\CustomValue\GetActions
72 public static function getActions($customGroup = NULL) {
73 return new Action\CustomValue\
GetActions($customGroup, __FUNCTION__
);
79 public static function permissions() {
81 $permissions = \CRM_Core_Permission
::getEntityActionPermissions();
83 // Merge permissions for this entity with the defaults
84 return \CRM_Utils_Array
::value($entity, $permissions, []) +
$permissions['default'];