class Service (View source)

Constants

CASE_FIRST_LOWER

CASE_FIRST_UPPER

CASE_HAS_LOWER

CASE_HAS_UPPER

CASE_HAS_NONALPH

CASE_MIXED

TRUNCATE_CHARS

TRUNCATE_WORDS

TRUNCATE_SENTS

TRUNCATE_PARS

Properties

$bannedWords

Methods

getCSV_simple($file)

No description

loadBannedWords()

No description

wordCase($word)

No description

forceCase($case, $word)

No description

isBannedWord($word)

No description

hasBannedWords($string)

No description

hasBannedPart($string)

No description

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

No description

getBannedKeys($inputArray)

No description

Details

getCSV_simple($file)

No description

Parameters

$file

loadBannedWords()

No description

wordCase($word)

No description

Parameters

$word

forceCase($case, $word)

No description

Parameters

$case
$word

isBannedWord($word)

No description

Parameters

$word

hasBannedWords($string)

No description

Parameters

$string

hasBannedPart($string)

No description

Parameters

$string

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

No description

Parameters

$string
$num
$which
$ellipsis

getBannedKeys($inputArray)

No description

Parameters

$inputArray