MetaFox

UserBirthday
in

Interface UserBirthday.

Table of Contents

Methods

getAgeFromBirthday()  : int|null
getBirthdayFormats()  : array<string|int, mixed>
getBirthdayFormatsWithoutYear()  : array<string|int, mixed>
getCurrentAgeByUser()  : int|null
getFormattedBirthday()  : string
getFormattedUpcomingAgeByUser()  : string|null
getTranslatedBirthday()  : string|null

Methods

getAgeFromBirthday()

public getAgeFromBirthday(string|null $birthday) : int|null
Parameters
$birthday : string|null
Return values
int|null

getBirthdayFormats()

public getBirthdayFormats() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBirthdayFormatsWithoutYear()

public getBirthdayFormatsWithoutYear() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCurrentAgeByUser()

public getCurrentAgeByUser(User $user) : int|null
Parameters
$user : User
Return values
int|null

getFormattedBirthday()

public getFormattedBirthday(User $context, User $user) : string
Parameters
$context : User
$user : User
Return values
string

getFormattedUpcomingAgeByUser()

public getFormattedUpcomingAgeByUser(User $user) : string|null
Parameters
$user : User
Return values
string|null

getTranslatedBirthday()

public getTranslatedBirthday(User $user) : string|null
Parameters
$user : User
Return values
string|null

        
On this page

Search results