Version: current

     1 <?php
     2 /**
     3  * Расширение страниц сайта для отображения виджета Избранного
     4  *
     5  * @author menedem
     6  */
     7 class FavoriteExtention extends Extension {
     8
     9     function extraStatics() {  }
    10
    11     function FavoriteInfo() {
    12         return DataObject::get_one('FavoritePage');
    13     }
    14
    15     function ClearFavoriteLink() {
    16         return FavoritePage::find_link('clear_favorite');
    17     }
    18 }
    19

[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. -