FieldtypeSelector class

Located in file /wire/modules/Fieldtype/FieldtypeSelector.module

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

Show class?             Show args?        

Common

NameReturnSummary 
FieldtypeSelector::formatValue($page, $field, $value)
mixedFormat the given value for output and return a string of the formatted value
FieldtypeSelector::getCompatibleFieldtypes($field)
Fieldtypes nullGet an array of Fieldtypes that are compatible with this one
FieldtypeSelector::getConfigInputfields($field)
InputfieldWrapperGet any Inputfields used for configuration of this Fieldtype.
FieldtypeSelector::getDatabaseSchema(Field $field)
arrayReturn the database schema in specified format 
FieldtypeSelector::getInputfield($page, $field)
Inputfield nullReturn new instance of the Inputfield module associated with this Fieldtype. 
FieldtypeSelector::getMatchQuery(DatabaseQuerySelect $query, string $table, string $subfield, string $operator, mixed $value)
DatabaseQuery DatabaseQuerySelectUpdate a query to match the text with a fulltext index 
FieldtypeSelector::getModuleInfo()
(nothing) 
FieldtypeSelector::sanitizeValue($page, $field, $value)
string int WireArray objectSanitize the value for runtime storage and return it. 
FieldtypeSelector::sleepValue($page, $field, $value)
string int float arrayGiven an 'awake' value, as set by wakeupValue(), convert the value back to a basic type for storage in database.
FieldtypeSelector::wakeupValue($page, $field, $value)
string int array objectGiven 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, FieldtypeSelector also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #550
    In the 550th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party module called PagefileMetadata, and more. Read on!
    Weekly.pw / 23 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.