1 | <?php |
||
15 | class forumlist extends module_base |
||
16 | { |
||
17 | /** |
||
18 | * Allowed columns: Just sum up your options (Exp: left + right = 10) |
||
19 | * top 1 |
||
20 | * left 2 |
||
21 | * center 4 |
||
22 | * right 8 |
||
23 | * bottom 16 |
||
24 | */ |
||
25 | public $columns = 21; |
||
26 | |||
27 | /** |
||
28 | * Default modulename |
||
29 | */ |
||
30 | public $name = 'PORTAL_FORUMLIST'; |
||
31 | |||
32 | /** |
||
33 | * Default module-image: |
||
34 | * file must be in "{T_THEME_PATH}/images/portal/" |
||
35 | */ |
||
36 | public $image_src = ''; |
||
37 | |||
38 | /** |
||
39 | * module-language file |
||
40 | * file must be in "language/{$user->lang}/mods/portal/" |
||
41 | */ |
||
42 | public $language = 'portal_forumlist_module'; |
||
43 | |||
44 | /** |
||
45 | * custom acp template |
||
46 | * file must be in "adm/style/portal/" |
||
47 | */ |
||
48 | public $custom_acp_tpl = ''; |
||
49 | |||
50 | /** @var \phpbb\auth\auth */ |
||
51 | protected $auth; |
||
52 | |||
53 | /** @var \phpbb\config\config */ |
||
54 | protected $config; |
||
55 | |||
56 | /** @var \phpbb\template */ |
||
57 | protected $template; |
||
58 | |||
59 | /** @var string PHP file extension */ |
||
60 | protected $php_ext; |
||
61 | |||
62 | /** @var string phpBB root path */ |
||
63 | protected $phpbb_root_path; |
||
64 | |||
65 | /** @var \phpbb\user */ |
||
66 | protected $user; |
||
67 | |||
68 | /** |
||
69 | * Construct a forumlist object |
||
70 | * |
||
71 | * @param \phpbb\auth\auth $auth phpBB auth service |
||
72 | * @param \phpbb\config\config $config phpBB config |
||
73 | * @param \phpbb\template $template phpBB template |
||
74 | * @param string $phpEx php file extension |
||
75 | * @param string $phpbb_root_path phpBB root path |
||
76 | * @param \phpbb\user $user phpBB user object |
||
77 | */ |
||
78 | public function __construct($auth, $config, $template, $phpbb_root_path, $phpEx, $user) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function get_template_center($module_id) |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function get_template_acp($module_id) |
||
121 | } |
||
122 |