interface HttpblManagerInterface in http:BL 8
Provides an interface defining the Httpbl manager.
Hierarchy
- interface \Drupal\httpbl\HttpblManagerInterface
Expanded class hierarchy of HttpblManagerInterface
All classes that implement HttpblManagerInterface
File
- src/
Future/ HttpblManagerInterface.php, line 10
Namespace
Drupal\httpblView source
interface HttpblManagerInterface {
/**
* Returns if this IP address is white-listed.
*
* @param string $ip
* The IP address to check.
*
* @return bool
* TRUE if the IP address is white-listed, FALSE otherwise.
*/
public function isSafe($ip);
/**
* Returns if this IP address is blacklisted.
*
* @param string $ip
* The IP address to check.
*
* @return bool
* TRUE if the IP address is blacklisted, FALSE otherwise.
*/
public function isBlacklisted($ip);
/**
* Returns if this IP address is greylisted.
*
* @param string $ip
* The IP address to check.
*
* @return bool
* TRUE if the IP address is greylisted, FALSE otherwise.
*/
public function isGreylisted($ip);
/**
* White-lists an IP address.
*
* @param string $ip
* The IP address to white-list.
*/
public function whitelistIp($ip);
/**
* Blacklists an IP address.
*
* @param string $ip
* The IP address to blacklist.
*/
public function blacklistIp($ip);
/**
* Grey-lists an IP address.
*
* @param string $ip
* The IP address to grey-list.
*/
public function greylistIp($ip);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpblManagerInterface:: |
public | function | Blacklists an IP address. | |
HttpblManagerInterface:: |
public | function | Grey-lists an IP address. | |
HttpblManagerInterface:: |
public | function | Returns if this IP address is blacklisted. | |
HttpblManagerInterface:: |
public | function | Returns if this IP address is greylisted. | |
HttpblManagerInterface:: |
public | function | Returns if this IP address is white-listed. | |
HttpblManagerInterface:: |
public | function | White-lists an IP address. |