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

Latest news

  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH