Docs Goabase

News
in package
uses TraitData, TraitCommentsList, TraitEmbed, TraitSeo

Read onlyYes
FinalYes

Table of Contents

Properties

$data  : Data
$env  : array<string|int, mixed>
$htmlHeader  : HtmlHeader
$tplDefLink  : string

Methods

__construct()  : mixed
getCommentsListInstance()  : CommentsList
getDataInstance()  : Data
getEmbedInstance()  : Embed
getNewsItemVotes()  : string
getSeoInstance()  : Seo
openPage()  : void
formatNews()  : array<string|int, mixed>|string
getNews()  : string
Returns the details of a news article.
getNewsDate()  : string
getNewsWithComments()  : string
toggleLng()  : string

Properties

$env

private array<string|int, mixed> $env
private string $tplDefLink

Methods

getNewsItemVotes()

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

formatNews()

private formatNews(string $news) : array<string|int, mixed>|string
Parameters
$news : string
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

Return values
string
  • The complete news article details.

getNewsDate()

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

getNewsWithComments()

private getNewsWithComments(array<string|int, mixed> $getParas[, int $nInformID = 0 ]) : string
Parameters
$getParas : array<string|int, mixed>
$nInformID : int = 0
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