ReportService
in package
Table of Contents
Properties
- $authComponent : AuthComponent
- $clientRepository : ClientRepository
- $entryRepository : EntryRepository
- $hashids : Hashids
- $reportFilterService : ReportFilterService
- $reportProgressStatusCodeConverter : ReportProgressStatusCodeConverter
- $reportRepository : ReportRepository
- $storage : IStorage
- $subscriptionsRepository : SubscriptionsRepository
- $url : Url
- $zipService : ZipService
Methods
- __construct() : mixed
- downloadHumanFileByEntryHashid() : mixed
- downloadHumanFilesInBulkByEntryHashIdList() : mixed
- getAllReportByUser() : array<string|int, Report>|null
- getNotArchivedReportsByUserId() : array<string|int, ReportEntity>
- getReportMessagesGroups() : array<string|int, mixed>
- getReportOverview() : array<string|int, Report>|null
- makeReportEntityFromEntry() : ReportEntity
- regenerateAllReportByUser() : void
- save() : bool
- filterOssEntriesWithActiveSubscriptionBetweenPeriod() : array<string|int, mixed>
Properties
$authComponent
private
AuthComponent
$authComponent
$clientRepository
private
ClientRepository
$clientRepository
$entryRepository
private
EntryRepository
$entryRepository
$hashids
private
Hashids
$hashids
$reportFilterService
private
ReportFilterService
$reportFilterService
$reportProgressStatusCodeConverter
private
ReportProgressStatusCodeConverter
$reportProgressStatusCodeConverter
$reportRepository
private
ReportRepository
$reportRepository
$storage
private
IStorage
$storage
$subscriptionsRepository
private
SubscriptionsRepository
$subscriptionsRepository
$url
private
Url
$url
$zipService
private
ZipService
$zipService
Methods
__construct()
public
__construct(ReportProgressStatusCodeConverter $reportProgressStatusCodeConverter, EntryRepository $entryRepository, ClientRepository $clientRepository, ReportFilterService $reportFilterService, Url $url, Hashids $hashids, CloudStorageService $storage, ReportRepository $reportRepository, Response $response, SubscriptionsRepository $subscriptionsRepository, AuthComponent $authComponent, ZipService $zipService) : mixed
Parameters
- $reportProgressStatusCodeConverter : ReportProgressStatusCodeConverter
- $entryRepository : EntryRepository
- $clientRepository : ClientRepository
- $reportFilterService : ReportFilterService
- $url : Url
- $hashids : Hashids
- $storage : CloudStorageService
- $reportRepository : ReportRepository
- $response : Response
- $subscriptionsRepository : SubscriptionsRepository
- $authComponent : AuthComponent
- $zipService : ZipService
downloadHumanFileByEntryHashid()
public
downloadHumanFileByEntryHashid(mixed $entryHashId) : mixed
Parameters
- $entryHashId : mixed
Tags
downloadHumanFilesInBulkByEntryHashIdList()
public
downloadHumanFilesInBulkByEntryHashIdList(mixed $entryHashIdList) : mixed
Parameters
- $entryHashIdList : mixed
Tags
getAllReportByUser()
public
getAllReportByUser(Client $user) : array<string|int, Report>|null
Parameters
- $user : Client
Return values
array<string|int, Report>|nullgetNotArchivedReportsByUserId()
public
getNotArchivedReportsByUserId(int $userId) : array<string|int, ReportEntity>
Parameters
- $userId : int
Tags
Return values
array<string|int, ReportEntity> —$reportEntities
getReportMessagesGroups()
public
getReportMessagesGroups(int $userId) : array<string|int, mixed>
Parameters
- $userId : int
Tags
Return values
array<string|int, mixed>getReportOverview()
public
getReportOverview() : array<string|int, Report>|null
Return values
array<string|int, Report>|nullmakeReportEntityFromEntry()
public
makeReportEntityFromEntry(Entry $entry) : ReportEntity
Parameters
- $entry : Entry
Return values
ReportEntityregenerateAllReportByUser()
public
regenerateAllReportByUser(Client $user) : void
Parameters
- $user : Client
save()
public
save(Report $report) : bool
Parameters
- $report : Report
Return values
boolfilterOssEntriesWithActiveSubscriptionBetweenPeriod()
private
filterOssEntriesWithActiveSubscriptionBetweenPeriod(array<string|int, mixed>|null $ossEntries, int $userId) : array<string|int, mixed>
Parameters
- $ossEntries : array<string|int, mixed>|null
- $userId : int