1 | <?php |
||
19 | abstract class AbstractWidgetHandler implements WidgetHandlerInterface |
||
20 | { |
||
21 | protected static $expectedParameters = []; |
||
22 | |||
23 | protected $widgetModel; |
||
24 | |||
25 | /** |
||
26 | * @return array |
||
27 | */ |
||
28 | public static function getExpectedParameters() |
||
32 | |||
33 | /** |
||
34 | * AbstractWidgetHandler constructor. |
||
35 | * |
||
36 | * @param WidgetModelInterface $widgetModel |
||
37 | */ |
||
38 | public function __construct(WidgetModelInterface $widgetModel) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function isVisible() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getId() |
||
58 | |||
59 | /** |
||
60 | * @param $name |
||
61 | * |
||
62 | * @return null|string |
||
63 | */ |
||
64 | protected function getModelParameter($name) |
||
80 | |||
81 | /** |
||
82 | * Returns associative array with all expected parameters and their values. |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | protected function getAllParametersWithValue() |
||
95 | } |
||
96 |