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.248

Latest news

  • ProcessWire Weekly #582
    The 582nd issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 5 July 2025
  • New ProcessWire admin redesign
    When you upgrade to ProcessWire 3.0.248 or newer (currently the dev branch), you’ll immediately notice something new and beautiful…
    Blog / 9 May 2025
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits