1 | <?php |
||
24 | abstract class base |
||
25 | { |
||
26 | /** @var auth */ |
||
27 | protected $auth; |
||
28 | |||
29 | /* @var config */ |
||
30 | protected $config; |
||
31 | |||
32 | /* @var helper */ |
||
33 | protected $helper; |
||
34 | |||
35 | /* @var \phpbb\ideas\factory\ideas|\phpbb\ideas\factory\idea */ |
||
36 | protected $ideas; |
||
37 | |||
38 | /** @var language */ |
||
39 | protected $language; |
||
40 | |||
41 | /* @var linkhelper */ |
||
42 | protected $link_helper; |
||
43 | |||
44 | /** @var pagination */ |
||
45 | protected $pagination; |
||
46 | |||
47 | /* @var request */ |
||
48 | protected $request; |
||
49 | |||
50 | /* @var template */ |
||
51 | protected $template; |
||
52 | |||
53 | /* @var user */ |
||
54 | protected $user; |
||
55 | |||
56 | /** @var string */ |
||
57 | protected $root_path; |
||
58 | |||
59 | /** @var string */ |
||
60 | protected $php_ext; |
||
61 | |||
62 | /** |
||
63 | * @param auth $auth |
||
64 | * @param config $config |
||
65 | * @param helper $helper |
||
66 | * @param language $language |
||
67 | * @param linkhelper $link_helper |
||
68 | * @param pagination $pagination |
||
69 | * @param request $request |
||
70 | * @param template $template |
||
71 | * @param user $user |
||
72 | * @param string $root_path |
||
73 | * @param string $php_ext |
||
74 | */ |
||
75 | public function __construct(auth $auth, config $config, helper $helper, language $language, linkhelper $link_helper, pagination $pagination, request $request, template $template, user $user, $root_path, $php_ext) |
||
91 | |||
92 | /** |
||
93 | * Set the Ideas entity |
||
94 | * |
||
95 | * @param string $entity |
||
96 | */ |
||
97 | public function get_entity($entity) |
||
101 | |||
102 | /** |
||
103 | * Check if Ideas is properly configured after installation |
||
104 | * Ideas is available only after forum settings have been set in ACP |
||
105 | * |
||
106 | * @return bool Depending on whether or not the extension is properly configured |
||
107 | */ |
||
108 | public function is_available() |
||
112 | |||
113 | /** |
||
114 | * Assign idea lists template variables |
||
115 | * |
||
116 | * @param string $block The template block var name |
||
117 | * @param array $rows The Idea row data |
||
118 | * |
||
119 | * @return void |
||
120 | */ |
||
121 | protected function assign_template_block_vars($block, $rows) |
||
142 | |||
143 | /** |
||
144 | * Assign common template variables for Ideas pages |
||
145 | * |
||
146 | * @return void |
||
147 | */ |
||
148 | protected function display_common_vars() |
||
158 | } |
||
159 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..