1 | <?php |
||
18 | abstract class block implements block_interface |
||
19 | { |
||
20 | /** |
||
21 | * Block name |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $name; |
||
25 | |||
26 | /** |
||
27 | * Template object for Sitemaker blocks |
||
28 | * @var \blitze\sitemaker\services\template |
||
29 | */ |
||
30 | protected $ptemplate; |
||
31 | |||
32 | /** |
||
33 | * Set block template object |
||
34 | * |
||
35 | * @param \phpbb\template\template $ptemplate Template object |
||
36 | */ |
||
37 | 87 | public function set_template(\blitze\sitemaker\services\template $ptemplate) |
|
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | 2 | public function get_name() |
|
46 | { |
||
47 | 2 | return $this->name; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 3 | public function set_name($name) |
|
54 | { |
||
55 | 3 | $this->name = $name; |
|
56 | 3 | } |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 5 | public function get_config(array $settings) |
|
65 | } |
||
66 |