FieldtypeVerifiedURL::statusStr()

Get a string that represents the HTTP code status for a VerifiedURL value

Examples:

  • Verified 200 OK (1 day ago)
  • Verified 301 Moved permanently (1 day ago)
  • Error 404 Not Found (3 weeks ago)
  • Not yet verified

Usage

// basic usage
$string = $fieldtypeVerifiedURL->statusStr($value);

// usage with all arguments
$string = $fieldtypeVerifiedURL->statusStr($value, $options = []);

Arguments

NameType(s)Description
$valueVerifiedURL int

A VerifiedURL instance or an HTTP status code

$options (optional)array bool

Specify options array or bool for verbose option.

  • verbose (bool): Include additional verbose info for errors? good for debugging Default:false
  • type (bool): Show the type of status, either “Verified” or “Error”? Default:true
  • code (bool): Show the error code number? Default:true
  • desc (bool): Show the error code description? Default:true
  • tries (bool): Show the number of tries when errors present? Default:true
  • when (string): Show when item was verified? Specify wireDate format or blank to disable Default:'relative'
  • getArray (bool): Return an associative array rather than a string? Default:false

Return value

string array

Exceptions

Method can throw exceptions on error:

  • WireException - if given invalid argument


FieldtypeVerifiedURL methods and properties

API reference based on ProcessWire core version 3.0.259