Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * |
4 | * This file is part of the phpBB Forum Software package. |
5 | * |
6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
7 | * @license GNU General Public License, version 2 (GPL-2.0) |
8 | * |
9 | * For full copyright and license information, please see |
10 | * the docs/CREDITS.txt file. |
11 | * |
12 | */ |
13 | |
14 | namespace phpbb\textformatter; |
15 | |
16 | interface renderer_interface |
17 | { |
18 | /** |
19 | * Render given text |
20 | * |
21 | * @param string $text Text, as parsed by something that implements \phpbb\textformatter\parser |
22 | * @return string |
23 | */ |
24 | public function render($text); |
25 | |
26 | /** |
27 | * Set the smilies' path |
28 | * |
29 | * @return null |
30 | */ |
31 | public function set_smilies_path($path); |
32 | |
33 | /** |
34 | * Return the value of the "viewcensors" option |
35 | * |
36 | * @return bool Option's value |
37 | */ |
38 | public function get_viewcensors(); |
39 | |
40 | /** |
41 | * Return the value of the "viewimg" option |
42 | * |
43 | * @return bool Option's value |
44 | */ |
45 | public function get_viewimg(); |
46 | |
47 | /** |
48 | * Return the value of the "viewsmilies" option |
49 | * |
50 | * @return bool Option's value |
51 | */ |
52 | public function get_viewsmilies(); |
53 | |
54 | /** |
55 | * Set the "viewcensors" option |
56 | * |
57 | * @param bool $value Option's value |
58 | * @return null |
59 | */ |
60 | public function set_viewcensors($value); |
61 | |
62 | /** |
63 | * Set the "viewimg" option |
64 | * |
65 | * @param bool $value Option's value |
66 | * @return null |
67 | */ |
68 | public function set_viewimg($value); |
69 | |
70 | /** |
71 | * Set the "viewsmilies" option |
72 | * |
73 | * @param bool $value Option's value |
74 | * @return null |
75 | */ |
76 | public function set_viewsmilies($value); |
77 | |
78 | /** |
79 | * Set the "usemention" option |
80 | * |
81 | * @param bool $value Option's value |
82 | * @return null |
83 | */ |
84 | public function set_usemention($value); |
85 | } |