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