FieldtypeOptions::addOptions() FieldtypeOptions::addOptions($field, SelectableOptionArray $options) FieldtypeOptions::addOptions($field, SelectableOptionArray $options) | int | Add the given new options | |
FieldtypeOptions::cloneField() FieldtypeOptions::cloneField(Field $field) FieldtypeOptions::cloneField(Field $field) | Field | Return a cloned copy of $field | |
FieldtypeOptions::deleteField() FieldtypeOptions::deleteField(Field $field) FieldtypeOptions::deleteField(Field $field) | bool | Delete the given field | |
FieldtypeOptions::deleteOptions() FieldtypeOptions::deleteOptions($field, SelectableOptionArray $options) FieldtypeOptions::deleteOptions($field, SelectableOptionArray $options) | int | Delete the given options | |
FieldtypeOptions::exportConfigData() FieldtypeOptions::exportConfigData(Field $field, array $data) FieldtypeOptions::exportConfigData(Field $field, array $data) | array | Export configuration values for external consumption | |
FieldtypeOptions::formatValue() FieldtypeOptions::formatValue(Page $page, Field $field, SelectableOptionArray $value) FieldtypeOptions::formatValue(Page $page, Field $field, SelectableOptionArray $value) | SelectableOptionArray | Prep a value for front-end output | |
FieldtypeOptions::get() FieldtypeOptions::get(string $key) FieldtypeOptions::get(string $key) | mixed SelectableOptionManager | Get a property from the Fieldtype | |
FieldtypeOptions::getBlankValue() FieldtypeOptions::getBlankValue(Page $page, Field $field) FieldtypeOptions::getBlankValue(Page $page, Field $field) | SelectableOptionArray | Get a blank SelectableOptionArray | |
FieldtypeOptions::getCompatibleFieldtypes() FieldtypeOptions::getCompatibleFieldtypes(Field $field) FieldtypeOptions::getCompatibleFieldtypes(Field $field) | Fieldtypes | Get Fieldtypes that are known compatible with this one | |
FieldtypeOptions::getConfigInputfields() FieldtypeOptions::getConfigInputfields(Field $field) FieldtypeOptions::getConfigInputfields(Field $field) | InputfieldWrapper | Get Inputfields needed to configure this Fieldtype | |
FieldtypeOptions::getDatabaseSchema() FieldtypeOptions::getDatabaseSchema(Field $field) FieldtypeOptions::getDatabaseSchema(Field $field) | array | Get schema for the Fieldtype's database table | |
FieldtypeOptions::getFieldSetups() FieldtypeOptions::getFieldSetups() FieldtypeOptions::getFieldSetups() | array | Get setup options and setup functions for new fields | |
FieldtypeOptions::getInputfield() FieldtypeOptions::getInputfield(Page $page, Field $field) FieldtypeOptions::getInputfield(Page $page, Field $field) | Inputfield | Get the Inputfield that provides input for this Fieldtype | |
FieldtypeOptions::getMatchQuery() FieldtypeOptions::getMatchQuery(PageFinderDatabaseQuerySelect $query, string $table, string $subfield, string $operator, mixed $value) FieldtypeOptions::getMatchQuery(PageFinderDatabaseQuerySelect $query, string $table, string $subfield, string $operator, mixed $value) | DatabaseQuery | Update a database query for finding values from this Fieldtype | |
FieldtypeOptions::getOptions() FieldtypeOptions::getOptions($field) FieldtypeOptions::getOptions($field) | SelectableOptionArray | Get all options available for the given field | |
FieldtypeOptions::getSelectorInfo() FieldtypeOptions::getSelectorInfo(Field $field) FieldtypeOptions::getSelectorInfo(Field $field, array $data = []) | array | Get information used for InputfieldSelector interactive selector builder | |
FieldtypeOptions::importConfigData() FieldtypeOptions::importConfigData(Field $field, array $data) FieldtypeOptions::importConfigData(Field $field, array $data) | array | Convert an array of exported data to a format that will be understood internally (opposite of exportConfigData) | |
FieldtypeOptions::manager | SelectableOptionManager | | |
FieldtypeOptions::markupValue() FieldtypeOptions::markupValue(Page $page, Field $field) FieldtypeOptions::markupValue(Page $page, Field $field, mixed $value = null, string $property = '') | string | Render a markup string of the value | |
FieldtypeOptions::sanitizeValue() FieldtypeOptions::sanitizeValue(Page $page, Field $field, mixed $value) FieldtypeOptions::sanitizeValue(Page $page, Field $field, mixed $value) | SelectableOptionArray | Sanitize value for storage in a page | |
FieldtypeOptions::setOptions() FieldtypeOptions::setOptions($field, SelectableOptionArray $options) FieldtypeOptions::setOptions($field, SelectableOptionArray $options) | array | Update, add, delete as needed to match the given $options | |
FieldtypeOptions::sleepValue() FieldtypeOptions::sleepValue(Page $page, Field $field, SelectableOptionArray $value) FieldtypeOptions::sleepValue(Page $page, Field $field, SelectableOptionArray $value) | array | Prep value for DB storage | |
FieldtypeOptions::upgrade() FieldtypeOptions::upgrade(string $fromVersion, string $toVersion) FieldtypeOptions::upgrade(string $fromVersion, string $toVersion) | (nothing) | Upgrade module version | |
FieldtypeOptions::wakeupValue() FieldtypeOptions::wakeupValue(Page $page, Field $field, array $value) FieldtypeOptions::wakeupValue(Page $page, Field $field, array $value) | SelectableOptionArray | Prep value from DB for storage in Page | |
FieldtypeOptions::wired() FieldtypeOptions::wired() FieldtypeOptions::wired() | (nothing) | | |