DOCS Update "download link" example to not reference old functionality

This commit is contained in:
Robbie Averill 2017-05-30 12:05:29 +12:00
parent 11819a1e16
commit d95b98d10d
1 changed files with 2 additions and 3 deletions

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