Frontpage
in package
Frontpage service.
Tags
Table of Contents
Properties
- $aclService : AclService
- $activityMapper : Activity
- $companyService : Company
- $frontpageConfig : array<string|int, mixed>
- $memberService : Member
- $newsService : News
- $photoConfig : array<string|int, mixed>
- $photoService : Photo
- $pollService : Poll
- $tagMapper : Tag
- $translator : Translator
Methods
- __construct() : mixed
- getBirthdayInfo() : Tag}
- Retrieves all birthdays happening today, which should be shown on the home page.
- getHomePageData() : CompanyBannerPackage, photoConfig: array}
- Retrieves all data which is needed on the home page.
- getItemTimestamp() : int
- Get a time stamp of a news item or activity for sorting.
- getNewsItems() : array<string|int, Activity|NewsItem>
- Returns a mixed array of news items and activities to display in the news section.
- getTranslator() : Translator
- Get the translator.
- getUpcomingActivities() : array<string|int, Activity>
Properties
$aclService read-only
private
AclService
$aclService
$activityMapper read-only
private
Activity
$activityMapper
$companyService read-only
private
Company
$companyService
$frontpageConfig read-only
private
array<string|int, mixed>
$frontpageConfig
$memberService read-only
private
Member
$memberService
$newsService read-only
private
News
$newsService
$photoConfig read-only
private
array<string|int, mixed>
$photoConfig
$photoService read-only
private
Photo
$photoService
$pollService read-only
private
Poll
$pollService
$tagMapper read-only
private
Tag
$tagMapper
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(Translator $translator, AclService $aclService, Poll $pollService, News $newsService, Member $memberService, Company $companyService, Photo $photoService, Tag $tagMapper, Activity $activityMapper, array<string|int, mixed> $frontpageConfig, array<string|int, mixed> $photoConfig) : mixed
Parameters
- $translator : Translator
- $aclService : AclService
- $pollService : Poll
- $newsService : News
- $memberService : Member
- $companyService : Company
- $photoService : Photo
- $tagMapper : Tag
- $activityMapper : Activity
- $frontpageConfig : array<string|int, mixed>
- $photoConfig : array<string|int, mixed>
Tags
getBirthdayInfo()
Retrieves all birthdays happening today, which should be shown on the home page.
public
getBirthdayInfo() : Tag}
Includes the age and a recent tag of the most active member whom has a birthday.
Return values
Tag}getHomePageData()
Retrieves all data which is needed on the home page.
public
getHomePageData() : CompanyBannerPackage, photoConfig: array}
Return values
CompanyBannerPackage, photoConfig: array}getItemTimestamp()
Get a time stamp of a news item or activity for sorting.
public
getItemTimestamp(Activity|NewsItem $item) : int
Parameters
Return values
intgetNewsItems()
Returns a mixed array of news items and activities to display in the news section.
public
getNewsItems(array<string|int, Activity> $activities) : array<string|int, Activity|NewsItem>
Parameters
- $activities : array<string|int, Activity>
Return values
array<string|int, Activity|NewsItem>getTranslator()
Get the translator.
public
getTranslator() : Translator
Return values
TranslatorgetUpcomingActivities()
public
getUpcomingActivities() : array<string|int, Activity>