Bummzack\SortableFile\Forms\SortableUploadField
Extension of the UploadField to add sorting of files
- Author: bummzack
Synopsis
class SortableUploadField
extends UploadField
{
- // members
- private static array $dependencies = ;
- protected string $sortColumn = 'SortOrder';
- protected null|array $rawSubmittal = NULL;
- public LoggerInterface $logger;
- // methods
- public void getSchemaDataDefaults()
- public $this setSortColumn()
- public string getSortColumn()
- public array getItems()
- public void saveInto()
- public void setSubmittedValue()
- protected void sortManyManyRelation()
- protected void sortManyManyThroughRelation()
Hierarchy
Extends
- SilverStripe\AssetAdmin\Forms\UploadField
Members
private
- $dependencies
protected
- $rawSubmittal
—
Bummzack\SortableFile\Forms\null|array
Raw submitted form data - $sortColumn
—
string
The column to be used for sorting
public
- $logger — Psr\Log\LoggerInterface
Methods
protected
- sortManyManyRelation() — Apply sorting to a many_many relation
- sortManyManyThroughRelation() — Apply sorting to a many_many_through relation
public
- getItems() — Return the files in sorted order
- getSchemaDataDefaults()
- getSortColumn() — Returns the column to be used for sorting
- saveInto()
- setSortColumn() — Set the column to be used for sorting
- setSubmittedValue()