Collect list objects registrations array
Inheritance: extends Symfony\Component\EventDispatcher\GenericEvent
コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 /**
  * 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'));
 }
コード例 #3
0
 /**
  * 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'));
 }
コード例 #4
0
 /**
  * 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'));
 }