SilverStripe\VersionedAdmin\Forms\DiffField
This form field is both a field object in it's own right, and a decorator for another field type.
It is used to render differences between two data entries into the field type it wraps
e.g. a TextField with the value "Old data" can be transformed with and then having setValue called again to load in "New data" - this field will then render
the value "<ins>New</ins> <del>Old</del> data". Most useful in historic version comparisons
Synopsis
class DiffField
extends HTMLReadonlyField
{
- // members
- protected FormField $comparisonField;
- // methods
- public $this setComparisonField()
- public FormField getComparisonField()
- public void Value()
- public FormField getOutdatedField()
- public void getSchemaDataDefaults()
- public void getSchemaStateDefaults()
Hierarchy
Extends
- SilverStripe\Forms\HTMLReadonlyField
Members
protected
- $comparisonField — SilverStripe\Forms\FormField
Methods
public
- Value()
- getComparisonField()
- getOutdatedField() — This function is so named not in the manner of chronology, but rather in terms of succession.
- getSchemaDataDefaults()
- getSchemaStateDefaults()
- setComparisonField()