FieldtypeVerifiedURL class

and re-verifies it over time at set intervals.

Part of the ProFields package Please do not distribute.


Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the FieldtypeVerifiedURL class also inherits all the methods and properties of: FieldtypeURL, FieldtypeText, Fieldtype, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
FieldtypeVerifiedURL::checkValue(Page $page, Field $field, VerifiedURL $value)
bool

Check if value needs verification or re-verification and perform it if so

 
FieldtypeVerifiedURL::formatValue(Page $page, Field $field, $value)
string

Format value for output

FieldtypeVerifiedURL::getBlankValue(Page $page, Field $field)
VerifiedURL

Get a blank VerifiedURL value

 
FieldtypeVerifiedURL::getCompatibleFieldtypes(Field $field)
Fieldtypes

Return all Fieldtypes derived from FieldtypeText, which we will consider compatible

FieldtypeVerifiedURL::getConfigInputfields(Field $field)
InputfieldWrapper

Get Inputfields to configure Field

FieldtypeVerifiedURL::getDatabaseSchema(Field $field)
array

Return the database schema in specified format

 
FieldtypeVerifiedURL::getInputfield(Page $page, Field $field)
InputfieldURL

Get Inputfield for this Fieldtype

 
FieldtypeVerifiedURL::getMatchQuery($query, string $table, string $subfield, string $operator, mixed $value)
DatabaseQuery

Get the database query that matches a Fieldtype table’s data with a given value.

 
FieldtypeVerifiedURL::isDeleteValue(Page $page, Field $field, mixed $value)
bool

Is given value one that should cause the DB row(s) to be deleted rather than saved?

 
FieldtypeVerifiedURL::newVerifiedURL(Page $page, Field $field)
VerifiedURL

Create and return a new VerifiedURL instance

 
FieldtypeVerifiedURL::resetVerifyData(Field $field)
None

Reset all verified URL data for given field

 
FieldtypeVerifiedURL::sanitizeValue(Page $page, Field $field, string $value)
string

Sanitize value for storage

 
FieldtypeVerifiedURL::sanitizeValueURL(Page $page, Field $field, string $value)
string

Sanitize just a URL, delegating to the FieldtypeURL class

 
FieldtypeVerifiedURL::saveVerification(Page $page, Field $field, VerifiedURL $value)
bool

Save verification info for VerifiedURL value

 
FieldtypeVerifiedURL::sleepValue(Page $page, Field $field, $value)
string int float array

Given an 'awake' value, as set by wakeupValue(), convert the value back to a basic type for storage in database.

FieldtypeVerifiedURL::statusStr($value)
string array

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

 
FieldtypeVerifiedURL::verifyValue(Page $page, Field $field, VerifiedURL $value)
int

Determine HTTP response/status code for URL and populate/save with VerifiedURL

 
FieldtypeVerifiedURL::verifyValueData(Page $page, Field $field, VerifiedURL $value, array $data)
None

Hook called after value has been verified by verifyValue() method above, but before it has been saved

FieldtypeVerifiedURL::wakeupValue(Page $page, Field $field, $value)
VerifiedURL

Given a raw value (value as stored in database), return the value as it would appear in a Page object.

Additional methods and properties

In addition to the methods and properties above, FieldtypeVerifiedURL also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.259