Symbiote\MultiValueField\ORM\FieldType\MultiValueField
A DB field that serialises an array before writing it to the db, and returning the array back to the end user.
- Author: Marcus Nyeholt <marcus@symbiote.com.au>
Synopsis
class MultiValueField
extends DBComposite
{
- // members
- private static array $composite_db = ;
- protected boolean $changed = false;
- // methods
- public mixed getValue()
- public void getValues()
- public $this setValue()
- protected string serializeValue()
- protected array unserializeData()
- public void prepValueForDB()
- public void isChanged()
- public void scaffoldFormField()
- public void csv()
- public string Implode()
- public void __toString()
- public void ItemByKey()
- public void Items()
- public void forTemplate()
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBComposite
Members
private
- $composite_db
protected
- $changed — boolean
Methods
protected
- serializeValue() — Serializes a value object to a json string
- unserializeData() — Unserialises data, depending on new or old format
public
- Implode() — Return all items separated by a separator, defaulting to a comma and space.
- ItemByKey()
- Items()
- __toString()
- csv() — Convert to a textual list of items.
- forTemplate()
- getValue() — Returns the value of this field.
- getValues()
- isChanged()
- prepValueForDB() — (non-PHPdoc).
- scaffoldFormField()
- setValue() — Set the value on the field. Ensures the underlying composite field logic that looks for Value will trigger if the value set is