namespace Civi\Api4;
/**
- * CustomGroup entity.
+ * Provides virtual api entities for every multi-record custom group.
+ *
+ * This class is different from other apis in that it is not itself an entity, but allows every
+ * multi-record custom group to act like an entity.
+ *
+ * Each action takes the name of the custom group as a parameter, or in traditional syntax the entity is prefixed with 'Custom_'
+ *
+ * Ex. OOP: \Civi\Api4\CustomValue::get('MyStuff')->addWhere('id', '=', 123)
+ * Non-OOP: civicrm_api4('Custom_MyStuff', 'get', ['where' => [['id', '=', 123]]]);
*
* @package Civi\Api4
*/
/**
* @param string $customGroup
* @return Action\CustomValue\Get
+ * @throws \API_Exception
*/
public static function get($customGroup) {
return new Action\CustomValue\Get($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\GetFields
+ * @throws \API_Exception
*/
public static function getFields($customGroup = NULL) {
return new Action\CustomValue\GetFields($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\Save
+ * @throws \API_Exception
*/
public static function save($customGroup) {
return new Action\CustomValue\Save($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\Create
+ * @throws \API_Exception
*/
public static function create($customGroup) {
return new Action\CustomValue\Create($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\Update
+ * @throws \API_Exception
*/
public static function update($customGroup) {
return new Action\CustomValue\Update($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\Delete
+ * @throws \API_Exception
*/
public static function delete($customGroup) {
return new Action\CustomValue\Delete($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\Replace
+ * @throws \API_Exception
*/
public static function replace($customGroup) {
return new Action\CustomValue\Replace($customGroup, __FUNCTION__);
/**
* @param string $customGroup
* @return Action\CustomValue\GetActions
+ * @throws \API_Exception
*/
public static function getActions($customGroup = NULL) {
return new Action\CustomValue\GetActions($customGroup, __FUNCTION__);