Sunnysideup\DMS\Control\DMSDocumentController
Synopsis
class DMSDocumentController
extends Controller
{
- // members
- protected static boolean $testMode = false;
- private static array $allowed_actions = ;
- // methods
- public void init()
- public void index()
- protected DMSDocument|null getDocumentFromID()
- protected int getDocumentIdFromSlug()
- protected void sendFile()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $allowed_actions
protected
- $testMode
—
boolean
Mode to switch for testing. Does not return document download, just document URL.
Methods
protected
- getDocumentFromID() — Returns the document object from the request object's ID parameter.
- getDocumentIdFromSlug() — Get a document's ID from a "friendly" URL slug containing a numeric ID and slugged title
- sendFile()