SilverStripe\AssetAdmin\Forms\FileFormFactory
Synopsis
class FileFormFactory
extends AssetFormFactory
{
- // Inherited constants from AssetFormFactory
- const TYPE_INSERT_MEDIA = 'insert-media';
- const TYPE_INSERT_LINK = 'insert-link';
- const TYPE_SELECT = 'select';
- const TYPE_ADMIN = 'admin';
- // members
- private static bool $show_history = false;
- // methods
- protected TabSet getFormFieldTabs()
- protected Tab getFormFieldDetailsTab()
- protected Tab getFormFieldUsageTab()
- protected Tab getFormFieldLinkOptionsTab()
- protected Tab getFormFieldAttributesTab()
- protected Tab getFormFieldHistoryTab()
- protected FieldList getFormFields()
- protected FormAction getPublishAction()
- protected FieldList getFormActions()
- protected null|string getSpecsMarkup()
- protected null|string getStatusFlagMarkup()
- protected FormAction getUnpublishAction()
- protected FormAction getReplaceFileAction()
- protected FormAction getDownloadFileAction()
- protected array getPopoverActions()
- protected FormAction getInsertAction()
- protected FormAction getInsertLinkAction()
- public array getRequiredContext()
- // Inherited methods from AssetFormFactory
- public void __construct()
- public Form getForm()
- protected RequiredFields getValidator()
- protected string getFormType()
- protected TabSet getFormFieldTabs()
- protected FormAction getSaveAction()
- protected FormAction getDeleteAction()
- protected FieldList getFormActions()
- protected FieldList getFormFields()
- protected PopoverField getPopoverMenu()
- protected array getPopoverActions()
- protected Tab getFormFieldDetailsTab()
- protected string getPath()
- protected Tab getFormFieldSecurityTab()
- public void getRequiredContext()
- protected string buildFileStatusIcon()
Hierarchy
Constants
Name | Value |
---|---|
TYPE_INSERT_MEDIA | 'insert-media' |
TYPE_INSERT_LINK | 'insert-link' |
TYPE_SELECT | 'select' |
TYPE_ADMIN | 'admin' |
Members
private
- $show_history
—
SilverStripe\AssetAdmin\Forms\bool
History tab/form to be shown to the user or not
Methods
protected
- getDownloadFileAction() — Get Download file action
- getFormActions()
- getFormFieldAttributesTab() — Create tab for file attributes
- getFormFieldDetailsTab()
- getFormFieldHistoryTab()
- getFormFieldLinkOptionsTab()
- getFormFieldTabs()
- getFormFieldUsageTab()
- getFormFields() — Get fields for this form
- getInsertAction()
- getInsertLinkAction()
- getPopoverActions() — Get actions that go into the Popover menu
- getPublishAction() — Get publish action
- getReplaceFileAction() — Get Replace file action
- getSpecsMarkup() — get HTML for status icon
- getStatusFlagMarkup() — Get published status flag
- getUnpublishAction() — Get action for publishing
public
Inherited from SilverStripe\AssetAdmin\Forms\AssetFormFactory
protected
- buildFileStatusIcon()
- getDeleteAction() — Get delete action, if this record is deletable
- getFormActions()
- getFormFieldDetailsTab() — Build "details" formfield tab
- getFormFieldSecurityTab() — Build security tab
- getFormFieldTabs() — Gets the main tabs for the file edit form
- getFormFields() — Get fields for this form
- getFormType() — Get form type from 'type' context
- getPath() — Get user-visible "Path" for this record
- getPopoverActions() — Get actions that go into the Popover menu
- getPopoverMenu() — Build popup menu
- getSaveAction()
- getValidator() — Get the validator for the form to be built