mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
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:
parent
ee9d2dfb58
commit
a61d294419
@ -235,6 +235,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
$this->ViewCount = $count;
|
$this->ViewCount = $count;
|
||||||
|
|
||||||
DB::query("UPDATE \"DMSDocument\" SET \"ViewCount\"='$count' WHERE \"ID\"={$this->ID}");
|
DB::query("UPDATE \"DMSDocument\" SET \"ViewCount\"='$count' WHERE \"ID\"={$this->ID}");
|
||||||
|
|
||||||
|
$this->extend('trackView');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
Reference in New Issue
Block a user