| 1 | <?php |
||
| 26 | class HtmlWidget implements WidgetInterface |
||
| 27 | { |
||
| 28 | protected $widgetModel; |
||
| 29 | |||
| 30 | public function __construct($widgetModel) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Render widget content |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function render() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Check if widget should be rendered |
||
| 47 | * |
||
| 48 | * @return boolean |
||
| 49 | */ |
||
| 50 | public function isVisible() |
||
| 54 | } |
||
| 55 |