1 | <?php |
||
15 | class whats_new extends \blitze\sitemaker\services\blocks\driver\block |
||
16 | { |
||
17 | /** @var \phpbb\user */ |
||
18 | protected $user; |
||
19 | |||
20 | /** @var \blitze\sitemaker\services\forum\data */ |
||
21 | protected $forum_data; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $phpbb_root_path; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $php_ext; |
||
28 | |||
29 | /** |
||
30 | * Constructor |
||
31 | * |
||
32 | * @param \phpbb\user $user User object |
||
33 | * @param \blitze\sitemaker\services\forum\data $forum_data Forum Data object |
||
34 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
35 | * @param string $php_ext php file extension |
||
36 | */ |
||
37 | public function __construct(\phpbb\user $user, \blitze\sitemaker\services\forum\data $forum_data, $phpbb_root_path, $php_ext) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function get_config(array $settings) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function display(array $bdata, $edit_mode = false) |
||
79 | |||
80 | /** |
||
81 | * @param array $settings |
||
82 | */ |
||
83 | private function _fetch_new(array $settings) |
||
102 | |||
103 | /** |
||
104 | * @param array $settings |
||
105 | * @return array |
||
106 | */ |
||
107 | private function _get_topics(array $settings) |
||
128 | |||
129 | /** |
||
130 | * @return array |
||
131 | */ |
||
132 | private function _get_topics_sql() |
||
141 | |||
142 | /** |
||
143 | * @return array |
||
144 | */ |
||
145 | private function _get_posts_sql() |
||
156 | } |
||
157 |