Version: current

     1 <?php
     2 /**
     3  * Виджет Форма фильтра каталога
     4  *
     5  * @package widgets
     6  * @author  menedem
     7  */
     8 class CatalogFilterSidebarWidget extends SidebarWidget {
     9
    10     public $needObjects = array(
    11         'Catalog' => 'Page'
    12     );
    13
    14     function Filters() {
    15         $controller = Controller::curr();
    16         return ($controller->hasMethod('Filters')) ? $controller->Filters() : false;
    17     }
    18
    19     function hasContent() {
    20         return ($this->Filters()) ? true : false;
    21     }
    22 }
    23
    24

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