-
Notifications
You must be signed in to change notification settings - Fork 0
/
flightlog.inc.php
189 lines (158 loc) · 9.58 KB
/
flightlog.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
dol_include_once('/includes/autoload.php');
//traits
dol_include_once("/flightlog/class/Common/ValueObject/Id.php");
dol_include_once("/flightlog/lib/flightLog.lib.php");
dol_include_once('/flightlog/class/card/Tab.php');
dol_include_once('/flightlog/class/card/TabCollection.php');
dol_include_once('/flightlog/class/bbcvols.class.php');
dol_include_once('/flightlog/class/bbctypes.class.php');
dol_include_once('/flightlog/class/GraphicalData.php');
dol_include_once('/flightlog/class/GraphicalType.php');
dol_include_once('/flightlog/class/GraphicalValue.php');
dol_include_once('/flightlog/class/GraphicalValueType.php');
dol_include_once('/flightlog/class/YearGraphicalData.php');
dol_include_once('/flightlog/class/flight/FlightBonus.php');
dol_include_once('/flightlog/class/flight/FlightPoints.php');
dol_include_once('/flightlog/class/flight/FlightTypeCount.php');
dol_include_once('/flightlog/class/flight/Pilot.php');
dol_include_once('/flightlog/class/missions/PilotMissions.php');
dol_include_once('/flightlog/class/missions/FlightMission.php');
dol_include_once('/flightlog/class/missions/QuarterMission.php');
dol_include_once('/flightlog/class/missions/QuarterPilotMissionCollection.php');
dol_include_once('/flightlog/class/Damage/DamageAmount.php');
dol_include_once('/flightlog/class/Damage/FlightDamage.php');
dol_include_once('/flightlog/class/Damage/FlightId.php');
dol_include_once('/flightlog/class/Damage/DamageId.php');
dol_include_once('/flightlog/class/Damage/AuthorId.php');
dol_include_once('/flightlog/class/Damage/FlightDamageCount.php');
dol_include_once('/flightlog/class/Damage/FlightInvoicedDamageCount.php');
dol_include_once('/flightlog/class/Damage/ValueObject/DamageLabel.php');
dol_include_once('flightlog/class/Pilot/Pilot.php');
dol_include_once('flightlog/class/Pilot/ValueObject/DateTrait.php');
dol_include_once('flightlog/class/Pilot/ValueObject/LicenceNumberTrait.php');
dol_include_once('flightlog/class/Pilot/ValueObject/EndDate.php');
dol_include_once('flightlog/class/Pilot/ValueObject/FireCertificationNumber.php');
dol_include_once('flightlog/class/Pilot/ValueObject/FirstHelpCertificationNumber.php');
dol_include_once('flightlog/class/Pilot/ValueObject/IsOwner.php');
dol_include_once('flightlog/class/Pilot/ValueObject/LastTrainingDate.php');
dol_include_once('flightlog/class/Pilot/ValueObject/PilotId.php');
dol_include_once('flightlog/class/Pilot/ValueObject/PilotLicenceNumber.php');
dol_include_once('flightlog/class/Pilot/ValueObject/PilotTrainingLicenceNumber.php');
dol_include_once('flightlog/class/Pilot/ValueObject/RadioLicenceDate.php');
dol_include_once('flightlog/class/Pilot/ValueObject/RadioLicenceNumber.php');
dol_include_once('flightlog/class/Pilot/ValueObject/StartDate.php');
dol_include_once('/flightlog/exceptions/NoMissionException.php');
dol_include_once('/flightlog/query/BillableFlightQuery.php');
dol_include_once('/flightlog/query/BillableFlightQueryHandler.php');
dol_include_once('/flightlog/query/GetPilotsWithMissionsQueryHandler.php');
dol_include_once('/flightlog/query/GetPilotsWithMissionsQuery.php');
dol_include_once('/flightlog/query/FlightForQuarterAndPilotQuery.php');
dol_include_once('/flightlog/query/FlightForQuarterAndPilotQueryHandler.php');
dol_include_once('/flightlog/Application/Damage/Query/GetDamagesForFlightQueryRepositoryInterface.php');
dol_include_once('/flightlog/Application/Damage/Query/GetPilotDamagesQueryRepositoryInterface.php');
dol_include_once('/flightlog/Application/Flight/Query/GetBillableFlightPerMonthQueryRepositoryInterface.php');
dol_include_once('/flightlog/Application/Flight/Query/GetBillableFlightPerMonthQueryRepositoryInterface.php');
dol_include_once('/flightlog/command/CommandHandlerInterface.php');
dol_include_once('/flightlog/command/CommandInterface.php');
dol_include_once('/flightlog/command/CreateExpenseNoteCommandHandler.php');
dol_include_once('/flightlog/command/CreateExpenseNoteCommand.php');
dol_include_once('/flightlog/command/ClassifyFlightHandler.php');
dol_include_once('/flightlog/command/ClassifyFlight.php');
dol_include_once('/flightlog/command/CreateFlightBillCommand.php');
dol_include_once('/flightlog/command/CreateFlightBillCommandHandlerFactory.php');
dol_include_once('/flightlog/Application/Damage/Command/CreateDamageCommand.php');
dol_include_once('/flightlog/Application/Damage/Command/CreateDamageCommandHandler.php');
dol_include_once('/flightlog/Application/Damage/Command/InvoiceDamageCommand.php');
dol_include_once('/flightlog/Application/Damage/Command/InvoiceDamageCommandHandler.php');
dol_include_once('/flightlog/Application/Common/ViewModel/ViewModel.php');
dol_include_once('/flightlog/Application/Damage/ViewModel/Damage.php');
dol_include_once('/flightlog/Application/Damage/ViewModel/TotalDamage.php');
dol_include_once('/flightlog/Application/Flight/ViewModel/BillableFlightByYearMonth.php');
dol_include_once('/flightlog/Application/Flight/ViewModel/Statistic.php');
dol_include_once('/flightlog/Application/Flight/ViewModel/TakeOffPlace.php');
dol_include_once('/flightlog/Application/Flight/ViewModel/Balloon.php');
dol_include_once("/flightlog/command/CreateFlightCommand.php");
dol_include_once("/flightlog/command/CreateFlightCommandHandler.php");
dol_include_once('/flightlog/validators/ValidatorInterface.php');
dol_include_once('/flightlog/validators/AbstractValidator.php');
dol_include_once('/flightlog/validators/FlightValidator.php');
dol_include_once('/flightlog/validators/SimpleOrderValidator.php');
dol_include_once('/flightlog/Form/FormElementInterface.php');
dol_include_once('/flightlog/Form/FormInterface.php');
dol_include_once('/flightlog/Form/BaseInput.php');
dol_include_once('/flightlog/Form/Form.php');
dol_include_once('/flightlog/Form/Hidden.php');
dol_include_once('/flightlog/Form/Csrf.php');
dol_include_once('/flightlog/Form/Input.php');
dol_include_once('/flightlog/Form/InputTime.php');
dol_include_once('/flightlog/Form/InputDate.php');
dol_include_once('/flightlog/Form/InputTextarea.php');
dol_include_once('/flightlog/Form/Number.php');
dol_include_once('/flightlog/Form/Select.php');
dol_include_once('/flightlog/Form/FlightTypeSelect.php');
dol_include_once('/flightlog/Form/UserSelect.php');
dol_include_once('/flightlog/Form/BalloonSelect.php');
dol_include_once('/flightlog/Form/SimpleFormRenderer.php');
dol_include_once('/flightlog/Form/FlightForm.php');
dol_include_once('/flightlog/Form/InputCheckBox.php');
dol_include_once('/flightlog/Http/Web/Controller/WebController.php');
dol_include_once('/flightlog/Http/Web/Controller/AddFlightDamageController.php');
dol_include_once('/flightlog/Http/Web/Controller/FlightDamageController.php');
dol_include_once('/flightlog/Http/Web/Controller/DamageController.php');
dol_include_once('/flightlog/Http/Web/Controller/FlightController.php');
dol_include_once('/flightlog/Http/Web/Controller/StatisticalGraphController.php');
dol_include_once('/flightlog/Http/Web/Controller/PilotEditController.php');
dol_include_once('/flightlog/Http/Web/Requests/Request.php');
dol_include_once('/flightlog/Http/Web/Response/Response.php');
dol_include_once('/flightlog/Http/Web/Response/Redirect.php');
dol_include_once('/flightlog/Http/Web/Form/DamageCreationForm.php');
dol_include_once('/flightlog/Http/Web/Form/PilotForm.php');
dol_include_once('/flightlog/Http/Web/Form/SupplierBillSelect.php');
dol_include_once('/flightlog/Application/Pilot/CreateUpdatePilotInformationCommandHandler.php');
dol_include_once('/flightlog/Application/Pilot/CreateUpdatePilotInformationCommand.php');
dol_include_once('/flightlog/Infrastructure/Common/Repository/AbstractDomainRepository.php');
dol_include_once('/flightlog/Infrastructure/Damage/Repository/FlightDamageRepository.php');
dol_include_once('/flightlog/Infrastructure/Damage/Query/Repository/GetDamageQueryRepository.php');
dol_include_once('/flightlog/Infrastructure/Damage/Query/Repository/GetDamagesForFlightQueryRepository.php');
dol_include_once('/flightlog/Infrastructure/Damage/Query/Repository/GetPilotDamagesQueryRepository.php');
dol_include_once('/flightlog/Infrastructure/Flight/Query/Repository/GetBillableFlightPerMonthQueryRepository.php');
dol_include_once('/flightlog/Infrastructure/Flight/Query/Repository/TakeOffQueryRepository.php');
dol_include_once('/flightlog/Infrastructure/Flight/Query/Repository/BalloonQueryRepository.php');
dol_include_once('/flightlog/Infrastructure/Common/Routes/Route.php');
dol_include_once('/flightlog/Infrastructure/Common/Routes/RouteManager.php');
dol_include_once('/flightlog/Infrastructure/Common/Routes/Guard.php');
dol_include_once('/flightlog/Infrastructure/Pilot/Repository/PilotRepository.php');
dol_include_once('/core/lib/ajax.lib.php');
dol_include_once('/core/lib/price.lib.php');
dol_include_once('/core/class/dolgraph.class.php');
dol_include_once('/fourn/class/fournisseur.facture.class.php');
scan(__DIR__.'/Http/Web/Controller');
scan(__DIR__.'/Infrastructure');
scan(__DIR__.'/Application');
function scan(string $root)
{
if (is_file($root) && substr($root, -4) === '.php' && substr($root, -9) !== '.conf.php') {
include_once(str_replace('../flightlog', __DIR__, $root));
return;
}
if (is_dir($root)) {
$lists = scandir($root);
foreach ($lists as $match) {
if ($match === 'vendor') {
continue;
}
if ($match === 'templates') {
continue;
}
if($match == ".." || $match == "." || substr($match, 0,1) === '.'){
continue;
}
$element = $root . DIRECTORY_SEPARATOR . $match;
if(substr_count($element, '/', 3) >= 1){
scan($element);
}
continue;
}
}
}