BanIPEvent
class BanIPEvent (View source)
Properties
protected IPAddress | $ipAddress | The IP address that is going to be banned. |
|
protected DateTime | $banExpiration | The ban expiration date/time (or null if not expiration). |
|
protected bool | $proceed | Should we proceed or the ban has been canceled? |
Methods
getIPAddress()
Get the IP address that is going to be banned.
getBanExpiration()
Get the ban expiration date/time (or null if not expiration).
setBanExpiration(DateTime $banExpiration = null)
Set the ban expiration date/time (or null if not expiration).
cancelBan()
Cancel the ban.
bool
proceed()
Should we proceed or the ban has been canceled?
Details
IPAddress
getIPAddress()
Get the IP address that is going to be banned.
DateTime
getBanExpiration()
Get the ban expiration date/time (or null if not expiration).
BanIPEvent
setBanExpiration(DateTime $banExpiration = null)
Set the ban expiration date/time (or null if not expiration).
cancelBan()
Cancel the ban.
bool
proceed()
Should we proceed or the ban has been canceled?