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 \blitze\sitemaker\services\util */ |
||
29 | protected $util; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $phpbb_root_path; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $php_ext; |
||
36 | |||
37 | /** |
||
38 | * Constructor |
||
39 | * |
||
40 | * @param \phpbb\language\language $language Language object |
||
41 | * @param \phpbb\request\request_interface $request Request object |
||
42 | * @param \blitze\sitemaker\services\template $ptemplate Sitemaker template object |
||
43 | * @param \phpbb\auth\auth $auth Auth object |
||
44 | * @param \phpbb\config\config $config Config object |
||
45 | * @param \phpbb\pagination $pagination Pagination object |
||
46 | * @param \phpbb\template\template $template Template object |
||
47 | * @param \blitze\sitemaker\services\util $util Sitemaker utility object |
||
48 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
49 | * @param string $php_ext php file extension |
||
50 | */ |
||
51 | 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, \blitze\sitemaker\services\util $util, $phpbb_root_path, $php_ext) |
|
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | 4 | public function get_name() |
|
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 3 | public function get_default_props() |
|
84 | |||
85 | /** |
||
86 | * Display content field |
||
87 | * |
||
88 | * @param array $data |
||
89 | * @param string $view_mode |
||
90 | * @param array $topic_data |
||
91 | * @return mixed |
||
92 | */ |
||
93 | 11 | public function display_field(array $data = array(), $view_mode = 'summary', array $topic_data = array()) |
|
111 | |||
112 | /** |
||
113 | * @inheritdoc |
||
114 | */ |
||
115 | 2 | public function show_form_field($name, array &$data, $forum_id = 0) |
|
132 | |||
133 | /** |
||
134 | * @param int $forum_id |
||
135 | * @return array |
||
136 | */ |
||
137 | 1 | protected function get_editor($forum_id) |
|
155 | |||
156 | /** |
||
157 | * @param string $html |
||
158 | * @param int $max_chars |
||
159 | * @return string |
||
160 | */ |
||
161 | 5 | protected function get_summary_value($html, $max_chars) |
|
170 | |||
171 | /** |
||
172 | * @param array $pages |
||
173 | * @param array $titles |
||
174 | * @param array $data |
||
175 | * @return mixed |
||
176 | */ |
||
177 | 6 | protected function get_detail_value(array $pages, array $titles, array $data) |
|
195 | |||
196 | /** |
||
197 | * Generate pagination for topic subpages |
||
198 | * |
||
199 | * @param string $topic_url |
||
200 | * @param int $total_pages |
||
201 | * @param int $start |
||
202 | * @return void |
||
203 | */ |
||
204 | 5 | protected function generate_page_nav($topic_url, $total_pages, &$start) |
|
210 | |||
211 | /** |
||
212 | * Generate Table of contents |
||
213 | * |
||
214 | * @param int $start |
||
215 | * @param string $topic_url |
||
216 | * @param array $page_titles |
||
217 | * @return void |
||
218 | */ |
||
219 | 5 | protected function generate_toc($start, $topic_url, array $page_titles) |
|
235 | |||
236 | /** |
||
237 | * When Previewing topic, we show all pages |
||
238 | * |
||
239 | * @param int $start |
||
240 | * @param string $field_name |
||
241 | * @param array $pages |
||
242 | * @return mixed |
||
243 | */ |
||
244 | 5 | protected function get_page_content($start, $field_name, array $pages) |
|
258 | |||
259 | /** |
||
260 | * @param int $forum_id |
||
261 | * @return bool |
||
262 | */ |
||
263 | 1 | protected function allow_bbcode($forum_id) |
|
267 | |||
268 | /** |
||
269 | * @param int $forum_id |
||
270 | * @return bool |
||
271 | */ |
||
272 | protected function allow_flash_bbcode($forum_id) |
||
276 | |||
277 | protected function set_custom_bbcodes() |
||
289 | } |
||
290 |