@@ -41,82 +41,82 @@ public function __construct()
41
41
42
42
public function setId (string $ id )
43
43
{
44
- $ this ->id = Common::validateData ($ id );
44
+ $ this ->id = \ Controllers \ Common::validateData ($ id );
45
45
}
46
46
47
47
public function setIp (string $ ip )
48
48
{
49
- $ this ->ip = Common::validateData ($ ip );
49
+ $ this ->ip = \ Controllers \ Common::validateData ($ ip );
50
50
}
51
51
52
52
public function setHostname (string $ hostname )
53
53
{
54
- $ this ->hostname = Common::validateData ($ hostname );
54
+ $ this ->hostname = \ Controllers \ Common::validateData ($ hostname );
55
55
}
56
56
57
57
public function setOS (string $ os )
58
58
{
59
- $ this ->os = Common::validateData ($ os );
59
+ $ this ->os = \ Controllers \ Common::validateData ($ os );
60
60
}
61
61
62
62
public function setOsVersion (string $ os_version )
63
63
{
64
- $ this ->os_version = Common::validateData ($ os_version );
64
+ $ this ->os_version = \ Controllers \ Common::validateData ($ os_version );
65
65
}
66
66
67
67
public function setOsFamily (string $ os_family )
68
68
{
69
- $ this ->os_family = Common::validateData ($ os_family );
69
+ $ this ->os_family = \ Controllers \ Common::validateData ($ os_family );
70
70
}
71
71
72
72
public function setType (string $ type )
73
73
{
74
- $ this ->type = Common::validateData ($ type );
74
+ $ this ->type = \ Controllers \ Common::validateData ($ type );
75
75
}
76
76
77
77
public function setKernel (string $ kernel )
78
78
{
79
- $ this ->kernel = Common::validateData ($ kernel );
79
+ $ this ->kernel = \ Controllers \ Common::validateData ($ kernel );
80
80
}
81
81
82
82
public function setArch (string $ arch )
83
83
{
84
- $ this ->arch = Common::validateData ($ arch );
84
+ $ this ->arch = \ Controllers \ Common::validateData ($ arch );
85
85
}
86
86
87
87
public function setProfile (string $ profile )
88
88
{
89
- $ this ->profile = Common::validateData ($ profile );
89
+ $ this ->profile = \ Controllers \ Common::validateData ($ profile );
90
90
}
91
91
92
92
public function setEnv (string $ env )
93
93
{
94
- $ this ->env = Common::validateData ($ env );
94
+ $ this ->env = \ Controllers \ Common::validateData ($ env );
95
95
}
96
96
97
97
public function setPackageId (string $ packageId )
98
98
{
99
- $ this ->packageId = Common::validateData ($ packageId );
99
+ $ this ->packageId = \ Controllers \ Common::validateData ($ packageId );
100
100
}
101
101
102
102
public function setPackageName (string $ packageName )
103
103
{
104
- $ this ->packageName = Common::validateData ($ packageName );
104
+ $ this ->packageName = \ Controllers \ Common::validateData ($ packageName );
105
105
}
106
106
107
107
public function setPackageVersion (string $ packageVersion )
108
108
{
109
- $ this ->packageVersion = Common::validateData ($ packageVersion );
109
+ $ this ->packageVersion = \ Controllers \ Common::validateData ($ packageVersion );
110
110
}
111
111
112
112
public function setAuthId (string $ authId )
113
113
{
114
- $ this ->authId = Common::validateData ($ authId );
114
+ $ this ->authId = \ Controllers \ Common::validateData ($ authId );
115
115
}
116
116
117
117
public function setToken (string $ token )
118
118
{
119
- $ this ->token = Common::validateData ($ token );
119
+ $ this ->token = \ Controllers \ Common::validateData ($ token );
120
120
}
121
121
122
122
public function getId ()
@@ -177,15 +177,15 @@ public function getHostnameById(int $id)
177
177
*/
178
178
public function getHostWithKernel (string $ kernel )
179
179
{
180
- return $ this ->model ->getHostWithKernel (Common:: validateData ( $ kernel) );
180
+ return $ this ->model ->getHostWithKernel ($ kernel );
181
181
}
182
182
183
183
/**
184
184
* Return hosts that have the specified profile
185
185
*/
186
- public function getHostWithProfile (string $ kernel )
186
+ public function getHostWithProfile (string $ profile )
187
187
{
188
- return $ this ->model ->getHostWithProfile (Common:: validateData ( $ kernel ) );
188
+ return $ this ->model ->getHostWithProfile ($ profile );
189
189
}
190
190
191
191
/**
@@ -261,7 +261,7 @@ public function getEventDetails(string $id, string $eventId, string $packageStat
261
261
throw new Exception ('Host Id must be specified ' );
262
262
}
263
263
264
- $ packageState = Common::validateData ($ packageState );
264
+ $ packageState = \ Controllers \ Common::validateData ($ packageState );
265
265
266
266
/**
267
267
* Ouverture de la BDD dédiée de l'hôte
@@ -553,7 +553,7 @@ public function setPackagesInventory(string $packagesInventory)
553
553
/**
554
554
* Les paquets sont transmis sous forme de chaine, séparés par une virgule. On explode cette chaine en array et on retire les entrées vides.
555
555
*/
556
- $ packagesList = array_filter (explode (", " , Common::validateData ($ packagesInventory )));
556
+ $ packagesList = array_filter (explode (", " , \ Controllers \ Common::validateData ($ packagesInventory )));
557
557
558
558
/**
559
559
* On traite si l'array n'est pas vide
@@ -659,7 +659,7 @@ public function setPackagesAvailable(string $packagesAvailable)
659
659
/**
660
660
* Les paquets sont transmis sous forme de chaine, séparés par une virgule. On explode cette chaine en array et on retire les entrées vides.
661
661
*/
662
- $ packagesList = array_filter (explode (", " , Common::validateData ($ packagesAvailable )));
662
+ $ packagesList = array_filter (explode (", " , \ Controllers \ Common::validateData ($ packagesAvailable )));
663
663
}
664
664
665
665
/**
@@ -1358,71 +1358,71 @@ public function getHostsWithPackage(array $hostsId, string $packageName)
1358
1358
*/
1359
1359
public function updateHostname (string $ hostname )
1360
1360
{
1361
- $ this ->model ->updateHostname ($ this ->id , Common::validateData ($ hostname ));
1361
+ $ this ->model ->updateHostname ($ this ->id , \ Controllers \ Common::validateData ($ hostname ));
1362
1362
}
1363
1363
1364
1364
/**
1365
1365
* Update OS in database
1366
1366
*/
1367
1367
public function updateOS (string $ os )
1368
1368
{
1369
- $ this ->model ->updateOS ($ this ->id , Common::validateData ($ os ));
1369
+ $ this ->model ->updateOS ($ this ->id , \ Controllers \ Common::validateData ($ os ));
1370
1370
}
1371
1371
1372
1372
/**
1373
1373
* Update OS version in database
1374
1374
*/
1375
1375
public function updateOsVersion (string $ osVersion )
1376
1376
{
1377
- $ this ->model ->updateOsVersion ($ this ->id , Common::validateData ($ osVersion ));
1377
+ $ this ->model ->updateOsVersion ($ this ->id , \ Controllers \ Common::validateData ($ osVersion ));
1378
1378
}
1379
1379
1380
1380
/**
1381
1381
* Update OS family in database
1382
1382
*/
1383
1383
public function updateOsFamily (string $ osFamily )
1384
1384
{
1385
- $ this ->model ->updateOsFamily ($ this ->id , Common::validateData ($ osFamily ));
1385
+ $ this ->model ->updateOsFamily ($ this ->id , \ Controllers \ Common::validateData ($ osFamily ));
1386
1386
}
1387
1387
1388
1388
/**
1389
1389
* Update virtualization type in database
1390
1390
*/
1391
1391
public function updateType (string $ virtType )
1392
1392
{
1393
- $ this ->model ->updateType ($ this ->id , Common::validateData ($ virtType ));
1393
+ $ this ->model ->updateType ($ this ->id , \ Controllers \ Common::validateData ($ virtType ));
1394
1394
}
1395
1395
1396
1396
/**
1397
1397
* Update kernel version in database
1398
1398
*/
1399
1399
public function updateKernel (string $ kernel )
1400
1400
{
1401
- $ this ->model ->updateKernel ($ this ->id , Common::validateData ($ kernel ));
1401
+ $ this ->model ->updateKernel ($ this ->id , \ Controllers \ Common::validateData ($ kernel ));
1402
1402
}
1403
1403
1404
1404
/**
1405
1405
* Update arch in database
1406
1406
*/
1407
1407
public function updateArch (string $ arch )
1408
1408
{
1409
- $ this ->model ->updateArch ($ this ->id , Common::validateData ($ arch ));
1409
+ $ this ->model ->updateArch ($ this ->id , \ Controllers \ Common::validateData ($ arch ));
1410
1410
}
1411
1411
1412
1412
/**
1413
1413
* Update profile in database
1414
1414
*/
1415
1415
public function updateProfile (string $ profile )
1416
1416
{
1417
- $ this ->model ->updateProfile ($ this ->id , Common::validateData ($ profile ));
1417
+ $ this ->model ->updateProfile ($ this ->id , \ Controllers \ Common::validateData ($ profile ));
1418
1418
}
1419
1419
1420
1420
/**
1421
1421
* Update environment in database
1422
1422
*/
1423
1423
public function updateEnv (string $ env )
1424
1424
{
1425
- $ this ->model ->updateEnv ($ this ->id , Common::validateData ($ env ));
1425
+ $ this ->model ->updateEnv ($ this ->id , \ Controllers \ Common::validateData ($ env ));
1426
1426
}
1427
1427
1428
1428
/**
@@ -1442,7 +1442,7 @@ public function updateAgentStatus(string $status)
1442
1442
*/
1443
1443
public function updateLinupdateVersion (string $ version )
1444
1444
{
1445
- $ this ->model ->updateLinupdateVersion ($ this ->id , Common::validateData ($ version ));
1445
+ $ this ->model ->updateLinupdateVersion ($ this ->id , \ Controllers \ Common::validateData ($ version ));
1446
1446
}
1447
1447
1448
1448
/**
0 commit comments