News
in package
uses
TraitCommentsList, TraitEmbed, TraitLanguage, TraitPage, TraitSeo
Table of Contents
Properties
- $page : Page
- $bPast : int
- $env : array<string|int, mixed>
- $saAtt : array<string|int, mixed>
- $tplDefLink : string
Methods
- __construct() : mixed
- getCommentsListInstance() : CommentsList
- getEmbedInstance() : Embed
- getLanguageInstance() : Language
- getNewsItemVotes() : string
- getNewsWithComments() : string
- getPageInstance() : Page
- getSeoInstance() : Seo
- getSQL() : array<string|int, mixed>
- getYearsLinks() : string
- redirectIfNewsEmptyOrExists() : void
- formatNews() : array<string|int, mixed>|string
- getNews() : string
- Returns the details of a news article.
- getNewsDate() : string
- toggleLng() : string
Properties
$page
protected
Page
$page
$bPast
private
int
$bPast
$env
private
array<string|int, mixed>
$env
$saAtt
private
array<string|int, mixed>
$saAtt
$tplDefLink
private
string
$tplDefLink
Methods
__construct()
public
__construct([array<string|int, mixed> $saAtt = [] ][, int $bPast = 0 ]) : mixed
Parameters
- $saAtt : array<string|int, mixed> = []
- $bPast : int = 0
getCommentsListInstance()
public
getCommentsListInstance() : CommentsList
Return values
CommentsListgetEmbedInstance()
public
getEmbedInstance() : Embed
Return values
EmbedgetLanguageInstance()
public
getLanguageInstance() : Language
Return values
LanguagegetNewsItemVotes()
public
getNewsItemVotes(array<string|int, mixed> $newsItem) : string
Parameters
- $newsItem : array<string|int, mixed>
Tags
Return values
stringgetNewsWithComments()
public
getNewsWithComments(int $nID[, int $nPos = 0 ][, int $nInformID = 0 ]) : string
Parameters
- $nID : int
- $nPos : int = 0
- $nInformID : int = 0
Tags
Return values
stringgetPageInstance()
public
getPageInstance() : Page
Return values
PagegetSeoInstance()
public
getSeoInstance() : Seo
Return values
SeogetSQL()
public
getSQL() : array<string|int, mixed>
Return values
array<string|int, mixed>getYearsLinks()
public
getYearsLinks([int $y = 0 ]) : string
Parameters
- $y : int = 0
Return values
stringredirectIfNewsEmptyOrExists()
public
redirectIfNewsEmptyOrExists([int $nID = 0 ]) : void
Parameters
- $nID : int = 0
formatNews()
private
formatNews(string $news) : array<string|int, mixed>|string
Parameters
- $news : string
Tags
Return values
array<string|int, mixed>|stringgetNews()
Returns the details of a news article.
private
getNews(int $nID) : string
Parameters
- $nID : int
-
- The ID of the news article.
Tags
Return values
string —- The complete news article details.
getNewsDate()
private
getNewsDate(int $nID) : string
Parameters
- $nID : int
Return values
stringtoggleLng()
private
toggleLng(int $id, int $ref_id) : string
Parameters
- $id : int
- $ref_id : int