\DMSDocument_Controller
Synopsis
class DMSDocument_Controller
extends Controller
{
- // members
- public static boolean $testMode = false;
- private static array $allowed_actions = ;
- // methods
- public void init()
- protected DMSDocument|null getDocumentFromID()
- protected int getDocumentIdFromSlug()
- public void index()
- protected void sendFile()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
public
- $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()