FieldtypeFile::allowFieldtypes | array | Allowed Fieldtype types for custom fields | |
FieldtypeFile::cloneField() FieldtypeFile::cloneField(Field $field) FieldtypeFile::cloneField(Field $field) | Field | Return a cloned copy of $field | |
FieldtypeFile::defaultFileExtensions | string | | |
FieldtypeFile::deleteField() FieldtypeFile::deleteField(Field $field) FieldtypeFile::deleteField(Field $field) | bool | Delete field | |
FieldtypeFile::deletePageField() FieldtypeFile::deletePageField(Page $page, Field $field) FieldtypeFile::deletePageField(Page $page, Field $field) | bool | Delete field from page | |
FieldtypeFile::emptyPageField() FieldtypeFile::emptyPageField(Page $page, Field $field) FieldtypeFile::emptyPageField(Page $page, Field $field) | bool | Empty field from page | |
FieldtypeFile::exportValue() FieldtypeFile::exportValue(Page $page, Field $field, $value) FieldtypeFile::exportValue(Page $page, Field $field, $value, array $options = []) | array float int string | Export value | |
FieldtypeFile::formatValue() FieldtypeFile::formatValue(Page $page, Field $field, Pagefiles $value) FieldtypeFile::formatValue(Page $page, Field $field, Pagefiles $value) | Pagefiles Pagefile | Perform output formatting on the value delivered to the API | |
FieldtypeFile::formatValueString() FieldtypeFile::formatValueString(Page $page, Field $field, $value) FieldtypeFile::formatValueString(Page $page, Field $field, $value) | string | | |
FieldtypeFile::get() FieldtypeFile::get($key) FieldtypeFile::get($key) | mixed | Get a property from this Fieldtype’s data | |
FieldtypeFile::getBlankValue() FieldtypeFile::getBlankValue(Page $page, Field $field) FieldtypeFile::getBlankValue(Page $page, Field $field) | Pagefiles | Get blank value | |
FieldtypeFile::getCompatibleFieldtypes() FieldtypeFile::getCompatibleFieldtypes(Field $field) FieldtypeFile::getCompatibleFieldtypes(Field $field) | Fieldtypes | Get compatible Fieldtypes | |
FieldtypeFile::getConfigAdvancedInputfields() FieldtypeFile::getConfigAdvancedInputfields(Field $field) FieldtypeFile::getConfigAdvancedInputfields(Field $field) | InputfieldWrapper | Field advanced config | |
FieldtypeFile::getConfigInputfields() FieldtypeFile::getConfigInputfields(Field $field) FieldtypeFile::getConfigInputfields(Field $field) | InputfieldWrapper | Field config | |
FieldtypeFile::getDatabaseSchema() FieldtypeFile::getDatabaseSchema(Field $field) FieldtypeFile::getDatabaseSchema(Field $field) | array | Get database schema | |
FieldtypeFile::getFieldSetups() FieldtypeFile::getFieldSetups() FieldtypeFile::getFieldSetups() | array | Get setup options and setup functions for new fields | |
FieldtypeFile::getFilesPath() FieldtypeFile::getFilesPath(Page $page, Field $field) FieldtypeFile::getFilesPath(Page $page, Field $field) | string | Get path where files are (or would be) stored | |
FieldtypeFile::getInputfield() FieldtypeFile::getInputfield(Page $page, Field $field) FieldtypeFile::getInputfield(Page $page, Field $field) | Inputfield | Get the Inputfield module to handle input for this Fieldtype | |
FieldtypeFile::getLoadQueryAutojoin() FieldtypeFile::getLoadQueryAutojoin(Field $field, DatabaseQuerySelect $query) FieldtypeFile::getLoadQueryAutojoin(Field $field, DatabaseQuerySelect $query) | DatabaseQuerySelect null | Disable autojoin for files | |
FieldtypeFile::getMatchQuery() FieldtypeFile::getMatchQuery($query, string $table, string $subfield, string $operator, mixed $value) FieldtypeFile::getMatchQuery($query, string $table, string $subfield, string $operator, mixed $value) | DatabaseQuery DatabaseQuerySelect | Get match query | |
FieldtypeFile::getPagefile() FieldtypeFile::getPagefile(Page $page, string $basename) FieldtypeFile::getPagefile(Page $page, string $basename) | Pagefile null | Given a Page and file basename, return the Pagefile object if file is found for Page | |
FieldtypeFile::getPagefiles() FieldtypeFile::getPagefiles(Page $page, Field $field) FieldtypeFile::getPagefiles(Page $page, Field $field) | Pagefiles | Get Pagefiles | |
FieldtypeFile::getSelectorInfo() FieldtypeFile::getSelectorInfo(Field $field) FieldtypeFile::getSelectorInfo(Field $field, array $data = []) | array | Get selector info | |
FieldtypeFile::getValidFileExtensions() FieldtypeFile::getValidFileExtensions($field) FieldtypeFile::getValidFileExtensions($field, array $validateExtensions = []) | array | Check file extensions for given field and return array of validity information | |
FieldtypeFile::loadPageField() FieldtypeFile::loadPageField(Page $page, Field $field) FieldtypeFile::loadPageField(Page $page, Field $field) | array null | @param Page $page | |
FieldtypeFile::markupValue() FieldtypeFile::markupValue(Page $page, Field $field) FieldtypeFile::markupValue(Page $page, Field $field, mixed $value = null, string $property = '') | string MarkupFieldtype | Render a markup string of the value. | |
FieldtypeFile::renamedField() FieldtypeFile::renamedField(Field $field, string $prevName) FieldtypeFile::renamedField(Field $field, string $prevName) | (nothing) | Called after field renamed | |
FieldtypeFile::sanitizeValue() FieldtypeFile::sanitizeValue(Page $page, Field $field, mixed $value) FieldtypeFile::sanitizeValue(Page $page, Field $field, mixed $value) | Pagefiles | Sanitize value | |
FieldtypeFile::sleepValue() FieldtypeFile::sleepValue(Page $page, Field $field, $value) FieldtypeFile::sleepValue(Page $page, Field $field, $value) | array | Given an 'awake' value, as set by wakeupValue, convert the value back to a basic type for storage in DB. | |
FieldtypeFile::wakeupValue() FieldtypeFile::wakeupValue(Page $page, Field $field, $value) FieldtypeFile::wakeupValue(Page $page, Field $field, $value) | Pagefiles null | Given a raw value (value as stored in DB), return the value as it would appear in a Page object | |