update tests, fix stuff, implement bespoke save, create actions for contactcategory

This commit is contained in:
Rich Lott / Artful Robot 2025-03-26 10:13:00 +00:00
parent 78e5b83c1d
commit 2ae781f6e3
6 changed files with 273 additions and 29 deletions

View file

@ -3,6 +3,8 @@ namespace Civi\Api4;
use Civi\Api4\Action\ContactCategory\GetFlows;
use Civi\Api4\Action\ContactCategory\Sync;
use Civi\Api4\Action\ContactCategory\Create;
use Civi\Api4\Action\ContactCategory\Save;
/**
* ContactCategory entity.
@ -13,6 +15,24 @@ use Civi\Api4\Action\ContactCategory\Sync;
*/
class ContactCategory extends Generic\DAOEntity {
/**
* @param bool $checkPermissions
* @return \Civi\Api4\Action\ContactCategory\Create
*/
public static function create($checkPermissions = TRUE) {
return (new Create(static::getEntityName(), __FUNCTION__))
->setCheckPermissions($checkPermissions);
}
/**
* @param bool $checkPermissions
* @return \Civi\Api4\Action\ContactCategory\Save
*/
public static function save($checkPermissions = TRUE) {
return (new Save(static::getEntityName(), __FUNCTION__))
->setCheckPermissions($checkPermissions);
}
/**
*
*/