Class FieldtypeMulti
ProcessWire FieldtypeMulti
Interface and some functionality for Fieldtypes that can contain multiple values.
ProcessWire 2.x Copyright (C) 2010 by Ryan Cramer Licensed under GNU/GPL v2, see LICENSE.TXT
- Wire implements TrackChanges
-
WireData
implements
IteratorAggregate
-
Fieldtype
implements
Module
-
FieldtypeMulti
public
array
|
#
getDatabaseSchema(
Modify the default schema provided by Fieldtype to include a 'sort' field, and integrate that into the primary key. |
public
|
#
___getCompatibleFieldtypes(
Get an array of Fieldtypes that are compatible with this one (i.e. ones the user may change the type to) |
public
string|integer|object
|
#
getBlankValue(
Per Fieldtype interface, return a blank value of this Fieldtype |
public
string|integer|
|
#
sanitizeValue(
Per the Fieldtype interface, sanitize the combined value for use in a Page |
public
string|integer|array|object
|
#
___wakeupValue(
Process the value to convert it from array to whatever object it needs to be |
public
string|integer
|
#
___sleepValue(
Given an 'awake' value, as set by wakeupValue, convert the value back to a basic type for storage in DB. |
public
boolean
|
#
___savePageField(
Per the Fieldtype interface, Save the given Field from the given Page to the database |
public
|
#
getLoadQueryAutojoin(
Return the query used for Autojoining this field (if different from getLoadQuery) or NULL if autojoin not allowed. |
public
|
#
getMatchQuery(
Get the query that matches a Fieldtype table's data with a given value |
__get(),
__isset(),
__set(),
__unset(),
getArray(),
getIterator(),
has(),
isEqual(),
remove(),
set(),
setArray()
|
_(),
___changed(),
__call(),
_n(),
_x(),
addHook(),
addHookAfter(),
addHookBefore(),
addHookProperty(),
className(),
error(),
fuel(),
getAllFuel(),
getChanges(),
getFuel(),
getHooks(),
isChanged(),
isHooked(),
message(),
removeHook(),
resetTrackChanges(),
runHooks(),
setFuel(),
setTrackChanges(),
trackChange(),
trackChanges(),
untrackChange(),
useFuel()
|
string
|
multiValueSeparator
|
"\0," |
#
Separator for multi values when using GROUP_CONCAT() |
protected static
integer
|
$getMatchQueryCount | 0 |
#
For internal use to count the number of calls to getMatchQuery |
$data
|
$changes,
$defaultHookOptions,
$fuel,
$hookMethodCache,
$localHooks,
$staticHooks,
$trackChanges,
$useFuel
|