Documentation

Frontpage
in package

Frontpage service.

Tags
psalm-type

BirthdaysArrayType = array<array-key, array{ member: MemberModel, age: int, }>

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

$frontpageConfig read-only

private array<string|int, mixed> $frontpageConfig

$photoConfig read-only

private array<string|int, mixed> $photoConfig

$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
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification

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}

getNewsItems()

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
Translator

getUpcomingActivities()

public getUpcomingActivities() : array<string|int, Activity>
Return values
array<string|int, Activity>

        
On this page

Search results