Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 37 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
update_navigation | |
0.00% |
0 / 37 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
get | |
0.00% |
0 / 36 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | /** |
3 | * |
4 | * This file is part of the phpBB Forum Software package. |
5 | * |
6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
7 | * @license GNU General Public License, version 2 (GPL-2.0) |
8 | * |
9 | * For full copyright and license information, please see |
10 | * the docs/CREDITS.txt file. |
11 | * |
12 | */ |
13 | |
14 | namespace phpbb\install\helper\navigation; |
15 | |
16 | use phpbb\install\helper\install_helper; |
17 | |
18 | class update_navigation implements navigation_interface |
19 | { |
20 | /** |
21 | * @var install_helper |
22 | */ |
23 | private $install_helper; |
24 | |
25 | /** |
26 | * Constructor |
27 | * |
28 | * @param install_helper $install_helper |
29 | */ |
30 | public function __construct(install_helper $install_helper) |
31 | { |
32 | $this->install_helper = $install_helper; |
33 | } |
34 | |
35 | /** |
36 | * {@inheritdoc} |
37 | */ |
38 | public function get() |
39 | { |
40 | if (!$this->install_helper->is_phpbb_installed()) |
41 | { |
42 | return array(); |
43 | } |
44 | |
45 | return array( |
46 | 'update' => array( |
47 | 'label' => 'UPDATE', |
48 | 'route' => 'phpbb_installer_update', |
49 | 'order' => 1, |
50 | array( |
51 | 'introduction' => array( |
52 | 'label' => 'INTRODUCTION_TITLE', |
53 | 'stage' => true, |
54 | 'order' => 0, |
55 | ), |
56 | 'requirements' => array( |
57 | 'label' => 'STAGE_REQUIREMENTS', |
58 | 'stage' => true, |
59 | 'order' => 1, |
60 | ), |
61 | 'obtain_data' => array( |
62 | 'label' => 'STAGE_OBTAIN_DATA', |
63 | 'stage' => true, |
64 | 'order' => 2, |
65 | ), |
66 | 'update_files' => array( |
67 | 'label' => 'STAGE_UPDATE_FILES', |
68 | 'stage' => true, |
69 | 'order' => 3, |
70 | ), |
71 | 'update_database' => array( |
72 | 'label' => 'STAGE_UPDATE_DATABASE', |
73 | 'stage' => true, |
74 | 'order' => 4, |
75 | ), |
76 | ), |
77 | ), |
78 | ); |
79 | } |
80 | } |