You are here

public static function HostQuery::loadHostsByIp in http:BL 8

Implemented in HostQuery.

Overrides Host::loadHostsByIp

6 calls to HostQuery::loadHostsByIp()
drush_httpbl_sol in drush/httpbl.drush.inc
Command handler. Quickly remove localhost (or any given IP) from ban & httpbl tabled. Useful for testing.
HttpblEvaluator::drushWhitelist in src/HttpblEvaluator.php
Emergency White-list Update of Host IP.
HttpblEvaluator::getIpLocalStatus in src/HttpblEvaluator.php
Get status of IP in httpbl_host table of stored hosts.
HttpblEvaluator::setIpLocalStatus in src/HttpblEvaluator.php
Create and store new evaluated hosts to httpbl_host table.
HttpblEvaluator::updateIpLocalStatus in src/HttpblEvaluator.php
Update stored status of Host IP.

... See full list

File

src/HostQuery.php, line 30
Contains \Drupal\httpbl\HostQuery.

Class

HostQuery

Namespace

Drupal\httpbl

Code

public static function loadHostsByIp($ip) {
  $hosts = self::getHostsByIp($ip);

  /** @var array $hosts */
  $hosts = Host::loadMultiple($hosts);
  return $hosts;
}