CategoryAttendeeService
FinalYes
Table of Contents
Methods
- addAttendeesToCategory() : void
- addAttendeesToCategoryByChunk() : void
- createSystem() : void
- deleteAttendeesFromCategory() : void
- getInstance() : self
- isAttendee() : bool
- processAttendeesForExistCategory() : void
- processAttendeesForNewCategory() : array<string|int, mixed>
Methods
addAttendeesToCategory()
public
addAttendeesToCategory(int $eventCategoryId, array<string|int, mixed> $attendeeUserIds) : void
Parameters
- $eventCategoryId : int
- $attendeeUserIds : array<string|int, mixed>
addAttendeesToCategoryByChunk()
public
addAttendeesToCategoryByChunk(int $eventCategoryId, array<string|int, mixed> $attendeeUserIds[, int $chunkSize = 200 ]) : void
Parameters
- $eventCategoryId : int
- $attendeeUserIds : array<string|int, mixed>
- $chunkSize : int = 200
createSystem()
public
createSystem(int $categoryId) : void
Parameters
- $categoryId : int
deleteAttendeesFromCategory()
public
deleteAttendeesFromCategory(int $eventCategoryId, array<string|int, mixed> $excludedUserIds) : void
Parameters
- $eventCategoryId : int
- $excludedUserIds : array<string|int, mixed>
getInstance()
public
static getInstance() : self
Return values
selfisAttendee()
public
isAttendee(int $categoryId, int $userId) : bool
Parameters
- $categoryId : int
- $userId : int
Return values
boolprocessAttendeesForExistCategory()
public
processAttendeesForExistCategory(int $userId, EventCategory $eventCategory, array<string|int, mixed> $attendeeEntities) : void
Parameters
- $userId : int
- $eventCategory : EventCategory
- $attendeeEntities : array<string|int, mixed>
processAttendeesForNewCategory()
public
processAttendeesForNewCategory(int $userId, EventCategory $eventCategory, array<string|int, mixed> $attendeeEntities) : array<string|int, mixed>
Parameters
- $userId : int
- $eventCategory : EventCategory
- $attendeeEntities : array<string|int, mixed>