You are here

interface HttpblManagerInterface in http:BL 8

Provides an interface defining the Httpbl manager.

Hierarchy

Expanded class hierarchy of HttpblManagerInterface

All classes that implement HttpblManagerInterface

File

src/Future/HttpblManagerInterface.php, line 10

Namespace

Drupal\httpbl
View 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

Namesort descending Modifiers Type Description Overrides
HttpblManagerInterface::blacklistIp public function Blacklists an IP address.
HttpblManagerInterface::greylistIp public function Grey-lists an IP address.
HttpblManagerInterface::isBlacklisted public function Returns if this IP address is blacklisted.
HttpblManagerInterface::isGreylisted public function Returns if this IP address is greylisted.
HttpblManagerInterface::isSafe public function Returns if this IP address is white-listed.
HttpblManagerInterface::whitelistIp public function White-lists an IP address.