/** * Register plugin list objects in Newscoop * * @param CollectObjectsDataEvent $event */ public function registerObjects(CollectObjectsDataEvent $event) { $event->registerListObject('ahs\\advertspluginbundle\\templatelist\\announcements', array('class' => 'AHS\\AdvertsPluginBundle\\TemplateList\\Announcements', 'list' => 'announcements', 'url_id' => 'ann')); $event->registerObjectTypes('announcement', array('class' => '\\AHS\\AdvertsPluginBundle\\Entity\\Announcement')); $event->registerListObject('ahs\\advertspluginbundle\\templatelist\\categories', array('class' => 'AHS\\AdvertsPluginBundle\\TemplateList\\Categories', 'list' => 'categories', 'url_id' => 'ctgr')); $event->registerObjectTypes('anouncements_category', array('class' => '\\AHS\\AdvertsPluginBundle\\Entity\\Category')); }
/** * Register plugin list objects in Newscoop * * @param CollectObjectsDataEvent $event */ public function registerObjects(CollectObjectsDataEvent $event) { $event->registerListObject('newscoop\\templatelist\\users', array('class' => 'Newscoop\\TemplateList\\Users', 'list' => 'users', 'url_id' => 'uid')); $event->registerListObject('newscoop\\templatelist\\slideshows', array('class' => 'Newscoop\\TemplateList\\Slideshows', 'list' => 'slideshows', 'url_id' => 'sliid')); $event->registerListObject('newscoop\\templatelist\\slideshowitems', array('class' => 'Newscoop\\TemplateList\\SlideshowItems', 'list' => 'slideshow_items', 'url_id' => 'slit')); $event->registerObjectTypes('slideshow', array('class' => '\\Newscoop\\TemplateList\\Meta\\SlideshowsMeta')); $event->registerObjectTypes('slideshow_item', array('class' => '\\Newscoop\\TemplateList\\Meta\\SlideshowItemMeta')); }
/** * Register plugin list objects in Newscoop * * @param CollectObjectsDataEvent $event */ public function registerObjects(CollectObjectsDataEvent $event) { $event->registerObjectTypes('subscriptions', array('class' => '\\Newscoop\\PaywallBundle\\Meta\\MetaSubscriptions')); $event->registerObjectTypes('subscription', array('class' => '\\Newscoop\\PaywallBundle\\Meta\\MetaMainSubscription')); $event->registerObjectTypes('user_subscription', array('class' => '\\Newscoop\\PaywallBundle\\Meta\\MetaSubscription')); $event->registerListObject('newscoop\\paywallbundle\\templatelist\\price', array('class' => 'Newscoop\\PaywallBundle\\TemplateList\\Price', 'list' => 'pricetable', 'url_id' => 'pslid')); $event->registerListObject('newscoop\\paywallbundle\\templatelist\\usersubscriptions', array('class' => 'Newscoop\\PaywallBundle\\TemplateList\\UserSubscriptions', 'list' => 'usersubscriptions', 'url_id' => 'pusid')); }
/** * Register plugin list objects in Newscoop * * @param CollectObjectsDataEvent $event */ public function registerObjects(CollectObjectsDataEvent $event) { $event->registerListObject('newscoop\\communitytickerbundle\\templatelist\\communityfeeds', array('class' => 'Newscoop\\CommunityTickerBundle\\TemplateList\\CommunityFeeds', 'list' => 'community_feeds', 'url_id' => 'cmfid')); $event->registerObjectTypes('community_feed', array('class' => '\\Newscoop\\CommunityTickerBundle\\Meta\\MetaCommunityTicker')); }