Sunnysideup\Ecommerce\Forms\Fields\ProductProductImageUploadField::__construct
Construct a new UploadField instance.
Signature
public function __construct(string
$name,
[string
$title = NULL,
[SS_List
$items = NULL]] )
Parameters
$name
—
string
- the internal field name, passed to forms
$title
—
string
- the field label
$items
—
SilverStripe\ORM\SS_List
- If no items are defined, the field will try to auto-detect an existing relation on
@see $record}, with the same name as the field name.