Version: current

     1 <?php
     2 /**
     3  * Расширение для отображения ближайших событий
     4  *
     5  * @author menedem
     6  */
     7 class NearestEventExtention extends Extension {
     8     //Ближайшие мероприятия
     9     function NearestEvents($count = 1) {
    10         return Event::getNearestEvents($count);
    11     }
    12 }
    13

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