Docs Goabase

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

$bPast

private int $bPast

$env

private array<string|int, mixed> $env

$saAtt

private array<string|int, mixed> $saAtt
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

getNewsItemVotes()

public getNewsItemVotes(array<string|int, mixed> $newsItem) : string
Parameters
$newsItem : array<string|int, mixed>
Tags
throws
RandomException
Return values
string

getNewsWithComments()

public getNewsWithComments(int $nID[, int $nPos = 0 ][, int $nInformID = 0 ]) : string
Parameters
$nID : int
$nPos : int = 0
$nInformID : int = 0
Tags
throws
RandomException
throws
Exception
Return values
string

getSQL()

public getSQL() : array<string|int, mixed>
Return values
array<string|int, mixed>
public getYearsLinks([int $y = 0 ]) : string
Parameters
$y : int = 0
Return values
string

redirectIfNewsEmptyOrExists()

public redirectIfNewsEmptyOrExists([int $nID = 0 ]) : void
Parameters
$nID : int = 0

formatNews()

private formatNews(string $news) : array<string|int, mixed>|string
Parameters
$news : string
Tags
throws
RandomException
throws
Exception
Return values
array<string|int, mixed>|string

getNews()

Returns the details of a news article.

private getNews(int $nID) : string
Parameters
$nID : int
  • The ID of the news article.
Tags
intern

param string $strTemplate

throws
RandomException
Return values
string
  • The complete news article details.

getNewsDate()

private getNewsDate(int $nID) : string
Parameters
$nID : int
Return values
string

toggleLng()

private toggleLng(int $id, int $ref_id) : string
Parameters
$id : int
$ref_id : int
Return values
string

        
On this page

Search results