Words
class Words
敏感词库
Constants
TYPE_CHECK |
|
TYPE_WORDS |
|
TYPE_REPLACE |
|
Methods
bool
illegal(string $content)
是否非法
array
getIllegalWords()
获取敏感词
setSearchAllIllegal(bool $searchAllIllegal)
检测所有敏感词
string|string[]
replaceIllegalWords()
替换敏感词
void
buildTree(string $words)
构建字典树
Details
at line 52
Words
setTree(array $data)
No description
at line 74
bool
illegal(string $content)
是否非法
at line 99
array
getIllegalWords()
获取敏感词
at line 109
Words
setSearchAllIllegal(bool $searchAllIllegal)
检测所有敏感词
at line 120
string|string[]
replaceIllegalWords()
替换敏感词
at line 132
static Words
instance()
No description
at line 145
protected void
buildTree(string $words)
构建字典树