Docs Goabase

Replace
in package

Table of Contents

Methods

cleanComment()  : array<string|int, mixed>|string
Helper preg_replace Returns text/code without comments
cleanNum()  : mixed
Cuts zeros at the end
cleanWWW()  : string
Removes https://, https://www., http://, http://www., www.
getAllowedAtt()  : array<string|int, mixed>
getApostroph()  : string
Setzt Apostroph
getFileToSeo()  : string
getFontOfSmiley()  : string
converts ascii-smileys to
makePageTitle()  : string
Ersetzt das {name} in $page['title'] und erzeugt den ersten $strTitle
removeTitleRe()  : string
Removes the "Re: " from the forum title
replaceName()  : string
userName()  : string
checkFields()  : array{PARTY: array{}, MEMBER: array{}}

Methods

cleanComment()

Helper preg_replace Returns text/code without comments

public static cleanComment(array<string|int, mixed>|string $var) : array<string|int, mixed>|string
Parameters
$var : array<string|int, mixed>|string
Return values
array<string|int, mixed>|string

cleanNum()

Cuts zeros at the end

public static cleanNum(mixed $num) : mixed
Parameters
$num : mixed

cleanWWW()

Removes https://, https://www., http://, http://www., www.

public static cleanWWW(string $val) : string
Parameters
$val : string
Return values
string

getAllowedAtt()

public static getAllowedAtt([array<string|int, mixed> $saAtt = [] ][, string $type = 'party' ]) : array<string|int, mixed>
Parameters
$saAtt : array<string|int, mixed> = []
$type : string = 'party'
Return values
array<string|int, mixed>

getApostroph()

Setzt Apostroph

public static getApostroph(string $strName) : string
Parameters
$strName : string
Return values
string

getFileToSeo()

public static getFileToSeo([string $fileName = THIS_FILE ]) : string
Parameters
$fileName : string = THIS_FILE
Return values
string

getFontOfSmiley()

converts ascii-smileys to

public static getFontOfSmiley(string $strContent[, bool $bFull = false ]) : string
Parameters
$strContent : string
$bFull : bool = false
Return values
string
  • with emoticons

makePageTitle()

Ersetzt das {name} in $page['title'] und erzeugt den ersten $strTitle

public static makePageTitle(array<string|int, mixed> $saUserPublic, string $pageTitle) : string
Parameters
$saUserPublic : array<string|int, mixed>
$pageTitle : string
Tags
throws
Exception
Return values
string

removeTitleRe()

Removes the "Re: " from the forum title

public static removeTitleRe([string $strTitle = '' ]) : string
Parameters
$strTitle : string = ''
Return values
string

replaceName()

public static replaceName([string $strName = '' ][, string $strContent = '' ]) : string
Parameters
$strName : string = ''
$strContent : string = ''
Return values
string

userName()

public static userName(string|null $strUserPublicName, string $strTopic) : string
Parameters
$strUserPublicName : string|null
$strTopic : string
Tags
throws
Exception
Return values
string

checkFields()

private static checkFields() : array{PARTY: array{}, MEMBER: array{}}
Return values
array{PARTY: array{}, MEMBER: array{}}

        
On this page

Search results