FieldtypeMulti class

Located in file /wire/core/FieldtypeMulti.php

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

Show class?             Show args?        

Common

NameReturnSummary 
FieldtypeMulti::deletePageFieldRows(Page $page, Field $field, $value)
int
FieldtypeMulti::getBlankValue(Page $page, Field $field)
WireArrayPer Fieldtype interface, return a blank value of this Fieldtype 
FieldtypeMulti::getCompatibleFieldtypes(Field $field)
Fieldtypes nullGet an array of Fieldtypes that are compatible with this one (i.e. ones the user may change the type to)
FieldtypeMulti::getDatabaseSchema(Field $field)
arrayModify the default schema provided by Fieldtype to include a 'sort' field, and integrate that into the primary key. 
FieldtypeMulti::getLoadQueryAutojoin(Field $field, DatabaseQuerySelect $query)
DatabaseQuerySelect nullReturn the query used for Autojoining this field (if different from getLoadQuery) or NULL if autojoin not allowed. 
FieldtypeMulti::getMatchQuery(PageFinderDatabaseQuerySelect $query, string $table, string $subfield, string $operator, mixed $value)
PageFinderDatabaseQuerySelect DatabaseQuerySelectGet the query that matches a Fieldtype table's data with a given value 
FieldtypeMulti::getSelectorInfo(Field $field)
arrayReturn array with information about what properties and operators can be used with this field
FieldtypeMulti::sanitizeValue(Page $page, Field $field, mixed $value)
WireArrayPer the Fieldtype interface, sanitize the combined value for use in a Page 
FieldtypeMulti::savePageField(Page $page, Field $field)
boolPer the Fieldtype interface, Save the given Field from the given Page to the database
FieldtypeMulti::savePageFieldRows(Page $page, Field $field, $value)
bool
FieldtypeMulti::sleepValue(Page $page, Field $field, WireArray $value)
arrayGiven an 'awake' value, as set by wakeupValue, convert the value back to a basic type for storage in DB.
FieldtypeMulti::wakeupValue(Page $page, Field $field, array $value)
WireArrayProcess the value to convert it from array to whatever object it needs to be

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.244

Latest news

  • ProcessWire Weekly #558
    In the 558th issue of ProcessWire Weekly we'll check out the blog post that introduces ProcessWire 3.0.244, share some recent ProcessWire highlights, and more. Read on!
    Weekly.pw / 18 January 2025
  • 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

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull