예제 #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);
     }
 }