public function BulkPriceTable()
 {
     if ($this->owner->dataRecord instanceof Product) {
         $prices = $this->owner->dataRecord->BulkPrices();
     } else {
         $prices = ArrayList::create();
     }
     $vars = array("BulkPrices" => $prices, "SiteConfig" => Siteconfig::current_site_config());
     return $this->owner->renderWith("BulkPriceTable", $vars);
 }
 public function rss()
 {
     $rss = new RSSFeed($list = MagnificGalleryItem::get()->sort('Created DESC')->limit(10)->toArray(), $link = Director::absoluteURL($this->RssLink()), $title = _t('MagnificGalleryPage.RSS_TITLE', 'Recent images from %s', array(Siteconfig::current_site_config()->Title)), $description = _t('MagnificGalleryPage.RSS_DESCRIPTION', 'Get recents images from our website'));
     // Outputs the RSS feed to the user.
     return $rss->outputToBrowser();
 }