\lib\GuardGuard

Summary

Methods
Properties
Constants
DataSync()
Filtrate()
InStr()
initialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$str
$arr
N/A

Properties

$str

$str : string

Type

string — 将站点内的违规关键词替换为什么?,默认 *

$arr

$arr : array|bool

Type

array|bool — 需过滤的关键词

Methods

DataSync()

DataSync() : false|int

Returns

false|int —

从服务端同步规避关键词

Filtrate()

Filtrate(array|string  $data = []) : mixed

Parameters

array|string $data

关键词筛选,替换,仅替换字符串!

Returns

mixed —

InStr()

InStr( $str1,  $str2) : mixed

Parameters

$str1
$str2

Returns

mixed —

initialize()

initialize() : bool

Returns

bool —

初始化参数