You are here

public function HttpblEvaluator::getHumanStatus in http:BL 8

Translates status codes to Mnemonic.

Parameters

int $status: The ID for an Httpbl managed IP address.

Return value

string A translatable text equivalent of the status.

Overrides HttpblEvaluatorInterface::getHumanStatus

File

src/HttpblEvaluator.php, line 530

Class

HttpblEvaluator
HttpblEvaluator evaluates visitor/host page requests.

Namespace

Drupal\httpbl

Code

public function getHumanStatus($status) {
  switch ($status) {
    case '0':
      $human = t('White-listed');
      break;
    case '1':
      $human = t('Blacklisted');
      break;
    case '2':
      $human = t('Grey-listed');
      break;
  }
  return $human;
}