1 | <?php |
||
18 | abstract class abstract_module implements module_interface |
||
19 | { |
||
20 | /** |
||
21 | * @var driver_interface |
||
22 | */ |
||
23 | protected $db; |
||
24 | |||
25 | /** |
||
26 | * @var user |
||
27 | */ |
||
28 | protected $user; |
||
29 | |||
30 | /** |
||
31 | * @var template |
||
32 | */ |
||
33 | protected $template; |
||
34 | |||
35 | /** |
||
36 | * This method is called to show the UCP page. |
||
37 | * You can assign template variables to the template, or do anything else here. |
||
38 | * |
||
39 | * @param string $table |
||
40 | * @param string $where Extra where clause. Please make sure to use AND as first. |
||
41 | */ |
||
42 | protected function show_ucp_complete($table, $where = '') |
||
63 | |||
64 | /** |
||
65 | * Check if the provided user has a specific key in the table provided |
||
66 | * |
||
67 | * @param string $table Table to check in |
||
68 | * @param int $user_id The specific user |
||
69 | * @param string $where Extra where clause. Be sure to include AND |
||
70 | * |
||
71 | * @return bool |
||
72 | */ |
||
73 | protected function check_table_for_user($table, $user_id, $where = '') |
||
84 | } |
||
85 |