\MetadataField
A field that is attached to a specific schema - this is a pseudo-abstract class and must be extended.
Synopsis
class MetadataField
extends DataObject
{
- // members
- private static array $db = ;
- private static array $indexes = ;
- private static array $has_one = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- // methods
- public void getCMSFields()
- public string getFieldTitle()
- public FormField getFormField()
- public mixed processBeforeWrite()
- public mixed process()
- public void replaceKeyword()
- public void validateValue()
- public string getFormFieldName()
- public string getTitle()
- public void getValidator()
- public void validate()
- public string Type()
- public void onBeforeWrite()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $field_labels
- $has_one
- $indexes
- $summary_fields
Methods
public
- Type()
- getCMSFields()
- getFieldTitle() — Returns the title that describes the field type.
- getFormField() — Returns a form field instance allowing the user to input a metadata value.
- getFormFieldName() — Returns the form field name to use for the metadata field.
- getTitle()
- getValidator()
- onBeforeWrite()
- process() — Processes a field value, and returns the output that should be rendered into a template.
- processBeforeWrite() — Processes a field value before it is saved to the database, and returns the value.
- replaceKeyword()
- validate()
- validateValue() — Checks if a certain field value is valid.