Documentation

News
in package

Collection of functions to help with displaying news.

Table of Contents

Methods

getBreakingNews()  : array{Time: int, Message: string}|null
getLottoNews()  : array{Time: int, Message: string}|null
getNewsItems()  : array<string|int, array{Date: string, Message: string}>
Takes a populated query and returns the news items.

Methods

getBreakingNews()

public static getBreakingNews(int $gameID) : array{Time: int, Message: string}|null
Parameters
$gameID : int
Return values
array{Time: int, Message: string}|null

getLottoNews()

public static getLottoNews(int $gameID) : array{Time: int, Message: string}|null
Parameters
$gameID : int
Return values
array{Time: int, Message: string}|null

getNewsItems()

Takes a populated query and returns the news items.

public static getNewsItems(DatabaseResult $dbResult) : array<string|int, array{Date: string, Message: string}>
Parameters
$dbResult : DatabaseResult
Return values
array<string|int, array{Date: string, Message: string}>

        
On this page

Search results