Class Service

Methods summary

public
# getCSV_simple( $file )
public
public
# wordCase( $word )
public
# forceCase( $case, & $word )
public
# isBannedWord( & $word )
public
# hasBannedWords( & $string )
public
# hasBannedPart( $string )
public
# truncate( $string, $num, $which = Concrete\Core\Validation\BannedWord\Service::TRUNCATE_CHARS, $ellipsis = "…" )
public
# getBannedKeys( $inputArray )

Constants summary

integer CASE_FIRST_LOWER
# 0
integer CASE_FIRST_UPPER
# 1
integer CASE_HAS_LOWER
# 2
integer CASE_HAS_UPPER
# 4
integer CASE_HAS_NONALPH
# 8
integer CASE_MIXED
# 6
string TRUNCATE_CHARS
# ''
string TRUNCATE_WORDS
# '\s+'
string TRUNCATE_SENTS
# '[!.?]\s+'
string TRUNCATE_PARS
# '\n{2,}'

Properties summary

public $bannedWords
#