1 | <?php |
||
14 | class textarea extends base |
||
15 | { |
||
16 | /** @var \phpbb\auth\auth */ |
||
17 | protected $auth; |
||
18 | |||
19 | /** @var \phpbb\config\config */ |
||
20 | protected $config; |
||
21 | |||
22 | /** @var \phpbb\pagination */ |
||
23 | protected $pagination; |
||
24 | |||
25 | /** @var \phpbb\template\template */ |
||
26 | protected $template; |
||
27 | |||
28 | /** @var \phpbb\template\context */ |
||
29 | protected $template_context; |
||
30 | |||
31 | /** @var \blitze\sitemaker\services\util */ |
||
32 | protected $util; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $phpbb_root_path; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $php_ext; |
||
39 | |||
40 | /** |
||
41 | * Constructor |
||
42 | * |
||
43 | * @param \phpbb\language\language $language Language object |
||
44 | * @param \phpbb\request\request_interface $request Request object |
||
45 | * @param \blitze\sitemaker\services\template $ptemplate Sitemaker template object |
||
46 | * @param \phpbb\auth\auth $auth Auth object |
||
47 | * @param \phpbb\config\config $config Config object |
||
48 | * @param \phpbb\pagination $pagination Pagination object |
||
49 | * @param \phpbb\template\template $template Template object |
||
50 | * @param \phpbb\template\context $template_context Template context object |
||
51 | * @param \blitze\sitemaker\services\util $util Sitemaker utility object |
||
52 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
53 | * @param string $php_ext php file extension |
||
54 | */ |
||
55 | 16 | public function __construct(\phpbb\language\language $language, \phpbb\request\request_interface $request, \blitze\sitemaker\services\template $ptemplate, \phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\pagination $pagination, \phpbb\template\template $template, \phpbb\template\context $template_context, \blitze\sitemaker\services\util $util, $phpbb_root_path, $php_ext) |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 4 | public function get_name() |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 3 | public function get_default_props() |
|
89 | |||
90 | /** |
||
91 | * Display content field |
||
92 | * |
||
93 | * @param array $data |
||
94 | * @param string $view_mode |
||
95 | * @param array $topic_data |
||
96 | * @return mixed |
||
97 | */ |
||
98 | 11 | public function display_field(array $data = array(), $view_mode = 'summary', array $topic_data = array()) |
|
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | 2 | public function show_form_field($name, array &$data, $forum_id = 0) |
|
137 | |||
138 | /** |
||
139 | * @param int $forum_id |
||
140 | * @return array |
||
141 | */ |
||
142 | 1 | protected function get_editor($forum_id) |
|
160 | |||
161 | /** |
||
162 | * @param string $html |
||
163 | * @param int $max_chars |
||
164 | * @return string |
||
165 | */ |
||
166 | 5 | protected function get_summary_value($html, $max_chars) |
|
175 | |||
176 | /** |
||
177 | * @param array $pages |
||
178 | * @param array $titles |
||
179 | * @param array $data |
||
180 | * @return mixed |
||
181 | */ |
||
182 | 6 | protected function get_detail_value(array $pages, array $titles, array $data) |
|
200 | |||
201 | /** |
||
202 | * Generate pagination for topic subpages |
||
203 | * |
||
204 | * @param string $topic_url |
||
205 | * @param int $total_pages |
||
206 | * @param int $start |
||
207 | * @return void |
||
208 | */ |
||
209 | 5 | protected function generate_page_nav($topic_url, $total_pages, &$start) |
|
215 | |||
216 | /** |
||
217 | * Generate Table of contents |
||
218 | * |
||
219 | * @param int $start |
||
220 | * @param string $topic_url |
||
221 | * @param array $page_titles |
||
222 | * @return void |
||
223 | */ |
||
224 | 5 | protected function generate_toc($start, $topic_url, array $page_titles) |
|
240 | |||
241 | /** |
||
242 | * When Previewing topic, we show all pages |
||
243 | * |
||
244 | * @param array $pages |
||
245 | * @return mixed |
||
246 | */ |
||
247 | 5 | protected function get_page_content($start, $field_name, array $pages) |
|
261 | |||
262 | /** |
||
263 | * @param int $forum_id |
||
264 | * @return bool |
||
265 | */ |
||
266 | 1 | protected function allow_bbcode($forum_id) |
|
270 | |||
271 | /** |
||
272 | * @param int $forum_id |
||
273 | * @return bool |
||
274 | */ |
||
275 | protected function allow_flash_bbcode($forum_id) |
||
279 | |||
280 | protected function set_custom_bbcodes() |
||
293 | } |
||
294 |