Version: current

     1 <?php
     2 /**
     3  * Виджет "Курсы валют"
     4  *
     5  * @package widgets
     6  * @author  menedem
     7  */
     8 class CurrencyWidget extends SidebarWidget {
     9
    10     public $needObjects = array(
    11         'PageInformerRates' => 'Class'
    12     );
    13
    14     function RatesList() {
    15         return singleton('PageInformerRates')->ExchangeRate();
    16     }
    17
    18     function hasContent() {
    19         return true;
    20     }
    21 }
    22
    23

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -