interface SimpleTextExportableAttributeInterface (View source)

Attribute controllers should implement this interface if they support importing/exporting to/from plain text.

For complex data see MulticolumnTextExportableAttributeInterface

Methods

string
getAttributeValueTextRepresentation()

Get a string containing the text representation of the attribute value currently set in the controller.

updateAttributeValueFromTextRepresentation(string $textRepresentation, ErrorList $warnings)

Update or create the attribute value starting from its text representation.

Details

string getAttributeValueTextRepresentation()

Get a string containing the text representation of the attribute value currently set in the controller.

Return Value

string

AbstractValue|null updateAttributeValueFromTextRepresentation(string $textRepresentation, ErrorList $warnings)

Update or create the attribute value starting from its text representation.

Parameters

string $textRepresentation the text representation of the attribute value
ErrorList $warnings An ErrorList instance that the method can add decoding warnings to

Return Value

AbstractValue|null Returns NULL if the controller doesn't have already a value and $textRepresentation is empty