Sunnysideup\DMS\Model\DMSDocumentSet
A document set is attached to Pages, and contains many DMSDocuments
Synopsis
class DMSDocumentSet
extends DataObject
{
- // members
- private static string $table_name = 'DMSDocumentSet';
- private static string $singular_name = 'DMS Document Set';
- private static string $plural_name = 'DMS Document Sets';
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- private static array $summary_fields = ;
- // methods
- public DataList|null getDocuments()
- public array getDocumentDisplayFields()
- public void validate()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
- public bool getGlobalPermission()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $has_one
- $many_many
- $many_many_extraFields
- $plural_name
- $singular_name
- $summary_fields
- $table_name
Methods
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- getDocumentDisplayFields() — Customise the display fields for the documents GridField
- getDocuments() — Retrieve a list of the documents in this set. An extension hook is provided before the result is returned.
- getGlobalPermission() — Checks if a then given (or logged in) member is either an ADMIN, SITETREE_EDIT_ALL or has access to the DMSDocumentAdmin module, in which case permissions is granted.
- validate()