class DeleteGroupCommandHandler (View source)

Properties

protected Connection $connection
protected EventDispatcher $dispatcher
protected GroupRepository $groupRepository
protected EntityManager $entityManager
protected RequestCache $requestCache

Methods

__construct(GroupRepository $groupRepository, Connection $connection, EventDispatcher $dispatcher, EntityManager $entityManager, RequestCache $requestCache)

No description

Result|bool
__invoke(DeleteGroupCommand $command)

No description

Group|null
checkDeletableGroup(int $groupID, bool $mustBeWithoutMembers, Result $result)

No description

bool
processChildGroups(DeleteGroupCommand $command, Group $group, Group $groupNode, Result $result)

No description

void
cleanupReferences(int $groupID)

No description

Details

__construct(GroupRepository $groupRepository, Connection $connection, EventDispatcher $dispatcher, EntityManager $entityManager, RequestCache $requestCache)

No description

Parameters

GroupRepository $groupRepository
Connection $connection
EventDispatcher $dispatcher
EntityManager $entityManager
RequestCache $requestCache

Result|bool __invoke(DeleteGroupCommand $command)

No description

Parameters

DeleteGroupCommand $command

Return Value

Result|bool

private Group|null checkDeletableGroup(int $groupID, bool $mustBeWithoutMembers, Result $result)

No description

Parameters

int $groupID
bool $mustBeWithoutMembers
Result $result

Return Value

Group|null

returns NULL if the group can't be deleted (the reason will be added to $result)

private bool processChildGroups(DeleteGroupCommand $command, Group $group, Group $groupNode, Result $result)

No description

Parameters

DeleteGroupCommand $command
Group $group
Group $groupNode
Result $result

Return Value

bool

private void cleanupReferences(int $groupID)

No description

Parameters

int $groupID

Return Value

void