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
| Name | Type(s) | Description |
|---|---|---|
$value | VerifiedURL int | A VerifiedURL instance or an HTTP status code |
$options (optional) | array bool | Specify options array or bool for
|
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