Properties

$warning

$warning : string

Type

string

$info

$info : string

Type

string

$debug

$debug : bool

Type

bool

$template_id

$template_id : int

Type

int

$template_attributes

$template_attributes : array

Type

array

$category_id

$category_id : int

Type

int

$article_id

$article_id : int

Type

int

$slice_id

$slice_id : int

Type

int

$getSlice

$getSlice : int

Type

int

$mode

$mode

$function

$function

$ctype

$ctype : int

Type

int

$clang

$clang : int

Type

int

$eval

$eval : bool

Type

bool

$slice_revision

$slice_revision : int

Type

int

Methods

__construct()

__construct(int|null  $articleId = null, int|null  $clang = null) : mixed

Parameters

int|null $articleId
int|null $clang

Returns

mixed —

setSliceRevision()

setSliceRevision(int  $sr) : mixed

Parameters

int $sr

Returns

mixed —

setSliceId()

setSliceId(int  $value) : mixed

Parameters

int $value

Returns

mixed —

setClang()

setClang(int  $value) : mixed

Parameters

int $value

Returns

mixed —

getArticleId()

getArticleId() : int

Returns

int —

getClangId()

getClangId() : int

Returns

int —

getClang()

getClang() : mixed

Returns

mixed —

setArticleId()

setArticleId(mixed  $articleId) : bool

Parameters

mixed $articleId

Returns

bool —

setTemplateId()

setTemplateId(int  $templateId) : mixed

Parameters

int $templateId

Returns

mixed —

getTemplateId()

getTemplateId() : int

Returns

int —

setMode()

setMode(mixed  $mode) : mixed

Parameters

mixed $mode

Returns

mixed —

setFunction()

setFunction(mixed  $function) : mixed

Parameters

mixed $function

Returns

mixed —

setEval()

setEval(bool  $value) : mixed

Parameters

bool $value

Returns

mixed —

getValue()

getValue(mixed  $value) : string|int|null

Parameters

mixed $value

Returns

string|int|null —

hasValue()

hasValue(mixed  $value) : bool

Parameters

mixed $value

Returns

bool —

getSlice()

getSlice(int  $sliceId) : string

Returns the content of the given slice-id.

Parameters

int $sliceId

A article-slice id

Returns

string —

getArticle()

getArticle(mixed  $curctype = -1) : string

Returns the content of the article of the given ctype. If no ctype is given, content of all ctypes is returned.

Parameters

mixed $curctype

The ctype to fetch, or -1 for all ctypes

Returns

string —

getArticleTemplate()

getArticleTemplate() : string

Returns

string —

replaceCommonVars()

replaceCommonVars(string  $content, int|null  $templateId = null) : string

Parameters

string $content
int|null $templateId

Returns

string —

getContentAsQuery()

getContentAsQuery(bool  $viasql = true) : mixed

Parameters

bool $viasql

Returns

mixed —

getSqlInstance()

getSqlInstance() : \rex_sql

Returns

\rex_sql —

correctValue()

correctValue(string  $value) : string

Parameters

string $value

Returns

string —

_getValue()

_getValue(string  $value) : string|int|null

Parameters

string $value

Returns

string|int|null —

outputSlice()

outputSlice(\rex_sql  $artDataSql, int  $moduleIdToAdd) : string

Outputs a slice.

Parameters

\rex_sql $artDataSql

A rex_sql instance containing all slice and module data

int $moduleIdToAdd

The id of the module, which was selected using the ModuleSelect

Returns

string —

preArticle()

preArticle(string  $articleContent, int  $moduleId) : string

Method which gets called, before the slices of the article are processed.

Parameters

string $articleContent

The content of the article

int $moduleId

A module id

Returns

string —

postArticle()

postArticle(string  $articleContent, int  $moduleId) : string

Method which gets called, after all slices have been processed.

Parameters

string $articleContent

The content of the article

int $moduleId

A module id

Returns

string —

getStreamOutput()

getStreamOutput(string  $path, string  $content) : string

Parameters

string $path
string $content

Returns

string —

replaceVars()

replaceVars(\rex_sql  $sql, string  $content) : string

Parameters

\rex_sql $sql
string $content

Returns

string —

replaceObjectVars()

replaceObjectVars(\rex_sql  $sql, string  $content) : string

Parameters

\rex_sql $sql
string $content

Returns

string —

replaceLinks()

replaceLinks(string  $content) : string

Parameters

string $content

Returns

string —