@@ 88-109 (lines=22) @@ | ||
85 | * @param string $root_path phpBB root path |
|
86 | * @param string $php_ext phpEx |
|
87 | */ |
|
88 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\captcha\factory $captcha_factory, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link, $root_path, $php_ext) |
|
89 | { |
|
90 | $this->db = $db; |
|
91 | $this->config = $config; |
|
92 | $this->language = $language; |
|
93 | $this->template = $template; |
|
94 | $this->user = $user; |
|
95 | $this->helper = $helper; |
|
96 | $this->request = $request; |
|
97 | $this->auth = $auth; |
|
98 | $this->captcha_factory = $captcha_factory; |
|
99 | $this->categorie = $categorie; |
|
100 | $this->link = $link; |
|
101 | $this->root_path = $root_path; |
|
102 | $this->php_ext = $php_ext; |
|
103 | ||
104 | $language->add_lang('directory', 'ernadoo/phpbbdirectory'); |
|
105 | ||
106 | $template->assign_vars(array( |
|
107 | 'S_PHPBB_DIRECTORY' => true, |
|
108 | )); |
|
109 | } |
|
110 | ||
111 | /** |
|
112 | * Delete a link |
@@ 70-91 (lines=22) @@ | ||
67 | * @param \ernadoo\phpbbdirectory\core\categorie $categorie PhpBB Directory extension categorie object |
|
68 | * @param \ernadoo\phpbbdirectory\core\link $link PhpBB Directory extension link object |
|
69 | */ |
|
70 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\pagination $pagination, \ernadoo\phpbbdirectory\search\fulltext_directory $search, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link) |
|
71 | { |
|
72 | $this->db = $db; |
|
73 | $this->config = $config; |
|
74 | $this->language = $language; |
|
75 | $this->template = $template; |
|
76 | $this->user = $user; |
|
77 | $this->helper = $helper; |
|
78 | $this->request = $request; |
|
79 | $this->auth = $auth; |
|
80 | $this->pagination = $pagination; |
|
81 | $this->search = $search; |
|
82 | $this->categorie = $categorie; |
|
83 | $this->link = $link; |
|
84 | ||
85 | $language->add_lang('directory', 'ernadoo/phpbbdirectory'); |
|
86 | $language->add_lang('search'); |
|
87 | ||
88 | $template->assign_vars(array( |
|
89 | 'S_PHPBB_DIRECTORY' => true, |
|
90 | )); |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * Search controller |