/** * Deletes vwvr clip * * @param int $id * @return int */ public function deleteClip($id) { $this->clipDao->deleteById($id); BOL_CommentService::getInstance()->deleteEntityComments('vwvr_comments', $id); BOL_RateService::getInstance()->deleteEntityRates($id, 'vwvr_rates'); BOL_TagService::getInstance()->deleteEntityTags($id, 'vwvr'); // $this->clipFeaturedDao->markUnfeatured($id); BOL_FlagService::getInstance()->deleteByTypeAndEntityId('vwvr_clip', $id); OW::getEventManager()->trigger(new OW_Event('feed.delete_item', array('entityType' => 'vwvr_comments', 'entityId' => $id))); return true; }