mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-06-27 00:57:19 +02:00
update tests, fix stuff, implement bespoke save, create actions for contactcategory
This commit is contained in:
parent
78e5b83c1d
commit
2ae781f6e3
6 changed files with 273 additions and 29 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue