Allow more sophisticated trackview

adds `$this->extend('trackView');` into `trackView` function so developers can work on more sophisticated  track view of downloaded file, eg how had downloaded or when.
This commit is contained in:
Mateusz Qunabu 2017-08-16 11:23:59 +02:00 committed by GitHub
parent ee9d2dfb58
commit a61d294419
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
$this->ViewCount = $count;
DB::query("UPDATE \"DMSDocument\" SET \"ViewCount\"='$count' WHERE \"ID\"={$this->ID}");
$this->extend('trackView');
}
return $this;