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>|stringcleanNum()
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
stringgetAllowedAtt()
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
stringgetFileToSeo()
public
static getFileToSeo([string $fileName = THIS_FILE ]) : string
Parameters
- $fileName : string = THIS_FILE
Return values
stringgetFontOfSmiley()
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
Return values
stringremoveTitleRe()
Removes the "Re: " from the forum title
public
static removeTitleRe([string $strTitle = '' ]) : string
Parameters
- $strTitle : string = ''
Return values
stringreplaceName()
public
static replaceName([string $strName = '' ][, string $strContent = '' ]) : string
Parameters
- $strName : string = ''
- $strContent : string = ''
Return values
stringuserName()
public
static userName(string|null $strUserPublicName, string $strTopic) : string
Parameters
- $strUserPublicName : string|null
- $strTopic : string
Tags
Return values
stringcheckFields()
private
static checkFields() : array{PARTY: array{}, MEMBER: array{}}