Documentation

BannedManager
in package

FinalYes

Legacy helper for recording and checking banned request origins.

Included for historical compatibility only. This API is deprecated and should not be used in new code.

Tags
author

Daniel Schulz

since
2018-03-19

Table of Contents

Methods

addBanned()  : void
getInstance()  : self
getIpFile()  : string
isBanned()  : bool
isBanworthy()  : bool
removeBanned()  : void
setIpFile()  : void

Methods

addBanned()

public addBanned(string $ip) : void
Parameters
$ip : string

getInstance()

public static getInstance() : self
Return values
self

getIpFile()

public static getIpFile() : string
Return values
string

isBanned()

public isBanned(string $ip) : bool
Parameters
$ip : string
Return values
bool

isBanworthy()

public isBanworthy(string $message) : bool
Parameters
$message : string
Return values
bool

removeBanned()

public removeBanned(string $ip) : void
Parameters
$ip : string

setIpFile()

public static setIpFile(string $path) : void
Parameters
$path : string
On this page

Search results