示例#1
0
 /**
  * Trigger point actions for asset download
  *
  * @param AssetEvent $event
  */
 public function onAssetDownload(AssetLoadEvent $event)
 {
     $asset = $event->getRecord()->getAsset();
     if ($asset !== null) {
         $this->factory->getModel('campaign.event')->triggerEvent('asset.download', $asset, 'asset', $asset->getId());
     }
 }
示例#2
0
 /**
  * Trigger point actions for asset download
  *
  * @param AssetLoadEvent $event
  */
 public function onAssetDownload(AssetLoadEvent $event)
 {
     $asset = $event->getRecord()->getAsset();
     if ($asset !== null) {
         $this->factory->getModel('point')->triggerAction('asset.download', $asset);
     }
 }