Merge pull request #195 from qunabucom/master
Allow more sophisticated trackview as data extension
This commit is contained in:
commit
2922e83dc1
|
@ -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