| @@ 65-76 (lines=12) @@ | ||
| 62 | * @param string $php_ext php_ext |
|
| 63 | * @access public |
|
| 64 | */ |
|
| 65 | public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\language\language $language, \phpbb\log\log $log, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user, $root_path, $php_ext) |
|
| 66 | { |
|
| 67 | $this->config = $config; |
|
| 68 | $this->db = $db; |
|
| 69 | $this->language = $language; |
|
| 70 | $this->log = $log; |
|
| 71 | $this->request = $request; |
|
| 72 | $this->template = $template; |
|
| 73 | $this->user = $user; |
|
| 74 | $this->phpbb_root_path = $root_path; |
|
| 75 | $this->php_ext = $php_ext; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Display the options a user can configure for this extension |
|
| @@ 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 |
|