class Service (View source)

Constants

deprecated CASE_FIRST_LOWER

deprecated CASE_FIRST_UPPER

deprecated CASE_HAS_LOWER

deprecated CASE_HAS_UPPER

deprecated CASE_HAS_NONALPH

deprecated CASE_MIXED

deprecated TRUNCATE_CHARS

deprecated TRUNCATE_WORDS

deprecated TRUNCATE_SENTS

deprecated TRUNCATE_PARS

Properties

string[] $bannedWords

Methods

false
getCSV_simple($file) deprecated

No description

loadBannedWords() deprecated

No description

int
wordCase($word) deprecated

No description

forceCase($case, $word) deprecated

No description

bool
isBannedWord($word) deprecated

No description

setBannedWords(string[] $bannedWords)

No description

string[]
getBannedWords()

No description

int
hasBannedWords(string $string)

No description

bool
hasBannedPart($string) deprecated

No description

string
truncate($string, $num, string $which = self::TRUNCATE_CHARS, string $ellipsis = '…') deprecated

No description

array
getBannedKeys($inputArray) deprecated

No description

Details

false getCSV_simple($file) deprecated

deprecated this method will be removed from version 9

No description

Parameters

$file

Return Value

false

loadBannedWords() deprecated

deprecated this method will be removed from version 9

No description

int wordCase($word) deprecated

deprecated this method will be removed from version 9

No description

Parameters

$word

Return Value

int

forceCase($case, $word) deprecated

deprecated this method will be removed from version 9

No description

Parameters

$case
$word

bool isBannedWord($word) deprecated

deprecated this method will be removed from version 9

No description

Parameters

$word

Return Value

bool

setBannedWords(string[] $bannedWords)

No description

Parameters

string[] $bannedWords

string[] getBannedWords()

No description

Return Value

string[]

int hasBannedWords(string $string)

No description

Parameters

string $string

String to check it has banned words. From version 9, it won't be passed by reference.

Return Value

int

Return 1 if string has banned words, otherwise 0. From version 9, it will return boolean.

bool hasBannedPart($string) deprecated

deprecated this method will be removed from version 9

No description

Parameters

$string

Return Value

bool

string truncate($string, $num, string $which = self::TRUNCATE_CHARS, string $ellipsis = '…') deprecated

deprecated this method will be removed from version 9

No description

Parameters

$string
$num
string $which
string $ellipsis

Return Value

string

array getBannedKeys($inputArray) deprecated

deprecated this method will be removed from version 9

No description

Parameters

$inputArray

Return Value

array