/** * 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()); } }
/** * 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); } }