Merge pull request #142 from creative-commoners/pulls/2.0/fix-download-link-docs

DOCS Update "download link" example to not reference old functionality
This commit is contained in:
sachajudd 2017-05-30 16:23:29 +12:00 committed by GitHub
commit a0ef0dc437

View File

@ -5,9 +5,8 @@
You can use `DMSDocument::getLink` to retrieve the secure route to download a DMS document:
```php
$dms = DMS::inst();
$docs = $dms->getByTag('priority', 'important')->First();
$link = $doc->getLink();
$document = DMSDocument::get()->byId(123);
$link = $document->getLink();
```
## Default download behaviour