Table of Contents
-
$enabled
: bool
-
$file
: string
-
$list
: array<string|int, BanEntry>
-
__construct()
: mixed
-
add()
: void
-
addBan()
: BanEntry
-
getEntries()
: array<string|int, BanEntry>
-
getEntry()
: BanEntry|null
-
isBanned()
: bool
-
isEnabled()
: bool
-
load()
: void
-
remove()
: void
-
removeExpired()
: void
-
save()
: void
-
setEnabled()
: void
$enabled
private
bool
$enabled
= true
$file
private
string
$file
$list
private
array<string|int, BanEntry>
$list
= []
__construct()
public
__construct(string $file) : mixed
Parameters
-
$file
: string
-
Return values
mixed
—
add()
public
add(BanEntry $entry) : void
Parameters
-
$entry
: BanEntry
-
Return values
void
—
addBan()
public
addBan(string $target[, string|null $reason = null ][, DateTime|null $expires = null ][, string|null $source = null ]) : BanEntry
Parameters
-
$target
: string
-
-
$reason
: string|null
= null
-
-
$expires
: DateTime|null
= null
-
-
$source
: string|null
= null
-
Return values
BanEntry
—
getEntries()
public
getEntries() : array<string|int, BanEntry>
Return values
array<string|int, BanEntry>
—
getEntry()
public
getEntry(string $name) : BanEntry|null
Parameters
-
$name
: string
-
Return values
BanEntry|null
—
isBanned()
public
isBanned(string $name) : bool
Parameters
-
$name
: string
-
Return values
bool
—
isEnabled()
public
isEnabled() : bool
Return values
bool
—
load()
public
load() : void
Return values
void
—
remove()
public
remove(string $name) : void
Parameters
-
$name
: string
-
Return values
void
—
removeExpired()
public
removeExpired() : void
Return values
void
—
save()
public
save([bool $writeHeader = true ]) : void
Parameters
-
$writeHeader
: bool
= true
-
Return values
void
—
setEnabled()
public
setEnabled(bool $flag) : void
Parameters
-
$flag
: bool
-
Return values
void
—