| @@ 63-76 (lines=14) @@ | ||
| 60 | * @param \phpbb\user $user |
|
| 61 | * @param string $php_ext |
|
| 62 | */ |
|
| 63 | public function __construct(auth $auth, config $config, helper $helper, ideas $ideas, language $language, linkhelper $link_helper, template $template, user $user, $php_ext) |
|
| 64 | { |
|
| 65 | $this->auth = $auth; |
|
| 66 | $this->config = $config; |
|
| 67 | $this->helper = $helper; |
|
| 68 | $this->ideas = $ideas; |
|
| 69 | $this->language = $language; |
|
| 70 | $this->link_helper = $link_helper; |
|
| 71 | $this->template = $template; |
|
| 72 | $this->user = $user; |
|
| 73 | $this->php_ext = $php_ext; |
|
| 74 | ||
| 75 | $this->language->add_lang('common', 'phpbb/ideas'); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * @inheritDoc |
|
| @@ 88-101 (lines=14) @@ | ||
| 85 | * @param string $table_topics |
|
| 86 | * @param string $phpEx |
|
| 87 | */ |
|
| 88 | public function __construct(auth $auth, config $config, driver_interface $db, language $language, user $user, $table_ideas, $table_votes, $table_topics, $phpEx) |
|
| 89 | { |
|
| 90 | $this->auth = $auth; |
|
| 91 | $this->config = $config; |
|
| 92 | $this->db = $db; |
|
| 93 | $this->language = $language; |
|
| 94 | $this->user = $user; |
|
| 95 | ||
| 96 | $this->php_ext = $phpEx; |
|
| 97 | ||
| 98 | $this->table_ideas = $table_ideas; |
|
| 99 | $this->table_votes = $table_votes; |
|
| 100 | $this->table_topics = $table_topics; |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * Returns an array of ideas. Defaults to ten ideas ordered by date |
|