1 | <?php |
||
15 | class manager implements manager_interface |
||
16 | { |
||
17 | /** |
||
18 | * @var driver_interface Database object |
||
19 | */ |
||
20 | protected $db; |
||
21 | |||
22 | /** |
||
23 | * @var string Topic prefixes data table name |
||
24 | */ |
||
25 | protected $prefixes_table; |
||
26 | |||
27 | /** |
||
28 | * Listener constructor |
||
29 | * |
||
30 | * @param driver_interface $db Database object |
||
31 | * @param string $prefixes_table Topic prefixes data table name |
||
32 | */ |
||
33 | public function __construct(driver_interface $db, $prefixes_table) |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function get_prefix($id) |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function get_prefixes($forum_id = 0) |
||
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | public function get_active_prefixes($forum_id = 0) |
||
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | public function add_prefix($tag, $forum_id) |
||
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | public function delete_prefix($id) |
||
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | */ |
||
100 | public function is_enabled(array $row) |
||
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | public function prepend_prefix($prefix, $subject) |
||
117 | } |
||
118 |