Subversion Repositories ALCASAR

Rev

Rev 3037 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3100
1
<?php
1
<?php
2
/**
2
/**
3
 * System TO class
3
 * System TO class
4
 *
4
 *
5
 * PHP version 5
5
 * PHP version 5
6
 *
6
 *
7
 * @category  PHP
7
 * @category  PHP
8
 * @package   PSI_TO
8
 * @package   PSI_TO
9
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
9
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
10
 * @copyright 2009 phpSysInfo
10
 * @copyright 2009 phpSysInfo
11
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
11
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
12
 * @version   SVN: $Id: class.System.inc.php 255 2009-06-17 13:39:41Z bigmichi1 $
12
 * @version   SVN: $Id: class.System.inc.php 255 2009-06-17 13:39:41Z bigmichi1 $
13
 * @link      http://phpsysinfo.sourceforge.net
13
 * @link      http://phpsysinfo.sourceforge.net
14
 */
14
 */
15
 /**
15
 /**
16
 * System TO class
16
 * System TO class
17
 *
17
 *
18
 * @category  PHP
18
 * @category  PHP
19
 * @package   PSI_TO
19
 * @package   PSI_TO
20
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
20
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
21
 * @copyright 2009 phpSysInfo
21
 * @copyright 2009 phpSysInfo
22
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
22
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
23
 * @version   Release: 3.0
23
 * @version   Release: 3.0
24
 * @link      http://phpsysinfo.sourceforge.net
24
 * @link      http://phpsysinfo.sourceforge.net
25
 */
25
 */
26
class System
26
class System
27
{
27
{
28
    /**
28
    /**
29
     * name of the host where phpSysInfo runs
29
     * name of the host where phpSysInfo runs
30
     *
30
     *
31
     * @var string
31
     * @var string
32
     */
32
     */
33
    private $_hostname = "localhost";
33
    private $_hostname = "localhost";
34
 
34
 
35
    /**
35
    /**
36
     * ip of the host where phpSysInfo runs
36
     * ip of the host where phpSysInfo runs
37
     *
37
     *
38
     * @var string
38
     * @var string
39
     */
39
     */
40
    private $_ip = "127.0.0.1";
40
    private $_ip = "127.0.0.1";
41
 
41
 
42
    /**
42
    /**
43
     * detailed information about the kernel
43
     * detailed information about the kernel
44
     *
44
     *
45
     * @var string
45
     * @var string
46
     */
46
     */
47
    private $_kernel = "Unknown";
47
    private $_kernel = "Unknown";
48
 
48
 
49
    /**
49
    /**
50
     * name of the distribution
50
     * name of the distribution
51
     *
51
     *
52
     * @var string
52
     * @var string
53
     */
53
     */
54
    private $_distribution = "Unknown";
54
    private $_distribution = "Unknown";
55
 
55
 
56
    /**
56
    /**
57
     * icon of the distribution (must be available in phpSysInfo)
57
     * icon of the distribution (must be available in phpSysInfo)
58
     *
58
     *
59
     * @var string
59
     * @var string
60
     */
60
     */
61
    private $_distributionIcon = "unknown.png";
61
    private $_distributionIcon = "unknown.png";
62
 
62
 
63
    /**
63
    /**
64
     * detailed Information about the machine name
64
     * detailed Information about the machine name
65
     *
65
     *
66
     * @var string
66
     * @var string
67
     */
67
     */
68
    private $_machine = "";
68
    private $_machine = "";
69
 
69
 
70
    /**
70
    /**
71
     * time in sec how long the system is running
71
     * time in sec how long the system is running
72
     *
72
     *
73
     * @var int
73
     * @var int
74
     */
74
     */
75
    private $_uptime = 0;
75
    private $_uptime = 0;
76
 
76
 
77
    /**
77
    /**
78
     * count of users that are currently logged in
78
     * count of users that are currently logged in
79
     *
79
     *
80
     * @var int
80
     * @var int
81
     */
81
     */
82
    private $_users = 0;
82
    private $_users = 0;
83
 
83
 
84
    /**
84
    /**
85
     * load of the system
85
     * load of the system
86
     *
86
     *
87
     * @var string
87
     * @var string
88
     */
88
     */
89
    private $_load = "";
89
    private $_load = "";
90
 
90
 
91
    /**
91
    /**
92
     * load of the system in percent (all cpus, if more than one)
92
     * load of the system in percent (all cpus, if more than one)
93
     *
93
     *
94
     * @var int
94
     * @var int
95
     */
95
     */
96
    private $_loadPercent = null;
96
    private $_loadPercent = null;
97
 
97
 
98
    /**
98
    /**
99
     * array with cpu devices
99
     * array with cpu devices
100
     *
100
     *
101
     * @see CpuDevice
101
     * @see CpuDevice
102
     *
102
     *
103
     * @var array
103
     * @var array
104
     */
104
     */
105
    private $_cpus = array();
105
    private $_cpus = array();
106
 
106
 
107
    /**
107
    /**
108
     * array with network devices
108
     * array with network devices
109
     *
109
     *
110
     * @see NetDevice
110
     * @see NetDevice
111
     *
111
     *
112
     * @var array
112
     * @var array
113
     */
113
     */
114
    private $_netDevices = array();
114
    private $_netDevices = array();
115
 
115
 
116
    /**
116
    /**
117
     * array with pci devices
117
     * array with pci devices
118
     *
118
     *
119
     * @see HWDevice
119
     * @see HWDevice
120
     *
120
     *
121
     * @var array
121
     * @var array
122
     */
122
     */
123
    private $_pciDevices = array();
123
    private $_pciDevices = array();
124
 
124
 
125
    /**
125
    /**
126
     * array with ide devices
126
     * array with ide devices
127
     *
127
     *
128
     * @see HWDevice
128
     * @see HWDevice
129
     *
129
     *
130
     * @var array
130
     * @var array
131
     */
131
     */
132
    private $_ideDevices = array();
132
    private $_ideDevices = array();
133
 
133
 
134
    /**
134
    /**
135
     * array with scsi devices
135
     * array with scsi devices
136
     *
136
     *
137
     * @see HWDevice
137
     * @see HWDevice
138
     *
138
     *
139
     * @var array
139
     * @var array
140
     */
140
     */
141
    private $_scsiDevices = array();
141
    private $_scsiDevices = array();
142
 
142
 
143
    /**
143
    /**
144
     * array with usb devices
144
     * array with usb devices
145
     *
145
     *
146
     * @see HWDevice
146
     * @see HWDevice
147
     *
147
     *
148
     * @var array
148
     * @var array
149
     */
149
     */
150
    private $_usbDevices = array();
150
    private $_usbDevices = array();
151
 
151
 
152
    /**
152
    /**
153
     * array with thunderbolt devices
153
     * array with thunderbolt devices
154
     *
154
     *
155
     * @see HWDevice
155
     * @see HWDevice
156
     *
156
     *
157
     * @var array
157
     * @var array
158
     */
158
     */
159
    private $_tbDevices = array();
159
    private $_tbDevices = array();
160
 
160
 
161
    /**
161
    /**
162
     * array with I2C devices
162
     * array with I2C devices
163
     *
163
     *
164
     * @see HWDevice
164
     * @see HWDevice
165
     *
165
     *
166
     * @var array
166
     * @var array
167
     */
167
     */
168
    private $_i2cDevices = array();
168
    private $_i2cDevices = array();
169
 
169
 
170
    /**
170
    /**
171
     * array with NVMe devices
171
     * array with NVMe devices
172
     *
172
     *
173
     * @see HWDevice
173
     * @see HWDevice
174
     *
174
     *
175
     * @var array
175
     * @var array
176
     */
176
     */
177
    private $_nvmeDevices = array();
177
    private $_nvmeDevices = array();
178
 
178
 
179
    /**
179
    /**
180
     * array with Mem devices
180
     * array with Mem devices
181
     *
181
     *
182
     * @see HWDevice
182
     * @see HWDevice
183
     *
183
     *
184
     * @var array
184
     * @var array
185
     */
185
     */
186
    private $_memDevices = array();
186
    private $_memDevices = array();
187
 
187
 
188
    /**
188
    /**
189
     * array with disk devices
189
     * array with disk devices
190
     *
190
     *
191
     * @see DiskDevice
191
     * @see DiskDevice
192
     *
192
     *
193
     * @var array
193
     * @var array
194
     */
194
     */
195
    private $_diskDevices = array();
195
    private $_diskDevices = array();
196
 
196
 
197
    /**
197
    /**
198
     * free memory in bytes
198
     * free memory in bytes
199
     *
199
     *
200
     * @var int
200
     * @var int
201
     */
201
     */
202
    private $_memFree = 0;
202
    private $_memFree = 0;
203
 
203
 
204
    /**
204
    /**
205
     * total memory in bytes
205
     * total memory in bytes
206
     *
206
     *
207
     * @var int
207
     * @var int
208
     */
208
     */
209
    private $_memTotal = 0;
209
    private $_memTotal = 0;
210
 
210
 
211
    /**
211
    /**
212
     * used memory in bytes
212
     * used memory in bytes
213
     *
213
     *
214
     * @var int
214
     * @var int
215
     */
215
     */
216
    private $_memUsed = 0;
216
    private $_memUsed = 0;
217
 
217
 
218
    /**
218
    /**
219
     * used memory by applications in bytes
219
     * used memory by applications in bytes
220
     *
220
     *
221
     * @var int
221
     * @var int
222
     */
222
     */
223
    private $_memApplication = null;
223
    private $_memApplication = null;
224
 
224
 
225
    /**
225
    /**
226
     * used memory for buffers in bytes
226
     * used memory for buffers in bytes
227
     *
227
     *
228
     * @var int
228
     * @var int
229
     */
229
     */
230
    private $_memBuffer = null;
230
    private $_memBuffer = null;
231
 
231
 
232
    /**
232
    /**
233
     * used memory for cache in bytes
233
     * used memory for cache in bytes
234
     *
234
     *
235
     * @var int
235
     * @var int
236
     */
236
     */
237
    private $_memCache = null;
237
    private $_memCache = null;
238
 
238
 
239
    /**
239
    /**
240
     * array with swap devices
240
     * array with swap devices
241
     *
241
     *
242
     * @see DiskDevice
242
     * @see DiskDevice
243
     *
243
     *
244
     * @var array
244
     * @var array
245
     */
245
     */
246
    private $_swapDevices = array();
246
    private $_swapDevices = array();
247
 
247
 
248
    /**
248
    /**
249
     * array of types of processes
249
     * array of types of processes
250
     *
250
     *
251
     * @var array
251
     * @var array
252
     */
252
     */
253
    private $_processes = array();
253
    private $_processes = array();
254
 
254
 
255
    /**
255
    /**
256
     *  array with Virtualizer information
256
     *  array with Virtualizer information
257
     *
257
     *
258
     * @var array
258
     * @var array
259
     */
259
     */
260
    private $_virtualizer = array();
260
    private $_virtualizer = array();
261
 
261
 
262
    /**
262
    /**
-
 
263
     * operating system type
-
 
264
     *
-
 
265
     * @var string
-
 
266
     */
-
 
267
    private $_OS = "";
-
 
268
 
-
 
269
    /**
263
     * remove duplicate Entries and Count
270
     * remove duplicate Entries and Count
264
     *
271
     *
265
     * @param array $arrDev list of HWDevices
272
     * @param array $arrDev list of HWDevices
266
     *
273
     *
267
     * @see HWDevice
274
     * @see HWDevice
268
     *
275
     *
269
     * @return array
276
     * @return array
270
     */
277
     */
271
    public static function removeDupsAndCount($arrDev)
278
    public static function removeDupsAndCount($arrDev)
272
    {
279
    {
273
        $result = array();
280
        $result = array();
274
        foreach ($arrDev as $dev) {
281
        foreach ($arrDev as $dev) {
275
            if (count($result) === 0) {
282
            if (count($result) === 0) {
276
                array_push($result, $dev);
283
                array_push($result, $dev);
277
            } else {
284
            } else {
278
                $found = false;
285
                $found = false;
279
                foreach ($result as $tmp) {
286
                foreach ($result as $tmp) {
280
                    if ($dev->equals($tmp)) {
287
                    if ($dev->equals($tmp)) {
281
                        $tmp->setCount($tmp->getCount() + 1);
288
                        $tmp->setCount($tmp->getCount() + 1);
282
                        $found = true;
289
                        $found = true;
283
                        break;
290
                        break;
284
                    }
291
                    }
285
                }
292
                }
286
                if (!$found) {
293
                if (!$found) {
287
                    array_push($result, $dev);
294
                    array_push($result, $dev);
288
                }
295
                }
289
            }
296
            }
290
        }
297
        }
291
 
298
 
292
        return $result;
299
        return $result;
293
    }
300
    }
294
 
301
 
295
    /**
302
    /**
296
     * return percent of used memory
303
     * return percent of used memory
297
     *
304
     *
298
     * @see System::_memUsed
305
     * @see System::_memUsed
299
     * @see System::_memTotal
306
     * @see System::_memTotal
300
     *
307
     *
301
     * @return int
308
     * @return int
302
     */
309
     */
303
    public function getMemPercentUsed()
310
    public function getMemPercentUsed()
304
    {
311
    {
305
        if ($this->_memTotal > 0) {
312
        if ($this->_memTotal > 0) {
306
            return round($this->_memUsed / $this->_memTotal * 100);
313
            return round($this->_memUsed / $this->_memTotal * 100);
307
        } else {
314
        } else {
308
            return 0;
315
            return 0;
309
        }
316
        }
310
    }
317
    }
311
 
318
 
312
    /**
319
    /**
313
     * return percent of used memory for applications
320
     * return percent of used memory for applications
314
     *
321
     *
315
     * @see System::_memApplication
322
     * @see System::_memApplication
316
     * @see System::_memTotal
323
     * @see System::_memTotal
317
     *
324
     *
318
     * @return int
325
     * @return int
319
     */
326
     */
320
    public function getMemPercentApplication()
327
    public function getMemPercentApplication()
321
    {
328
    {
322
        if ($this->_memApplication !== null) {
329
        if ($this->_memApplication !== null) {
323
            if (($this->_memApplication > 0) && ($this->_memTotal > 0)) {
330
            if (($this->_memApplication > 0) && ($this->_memTotal > 0)) {
324
                return round($this->_memApplication / $this->_memTotal * 100);
331
                return round($this->_memApplication / $this->_memTotal * 100);
325
            } else {
332
            } else {
326
                return 0;
333
                return 0;
327
            }
334
            }
328
        } else {
335
        } else {
329
            return null;
336
            return null;
330
        }
337
        }
331
    }
338
    }
332
 
339
 
333
    /**
340
    /**
334
     * return percent of used memory for cache
341
     * return percent of used memory for cache
335
     *
342
     *
336
     * @see System::_memCache
343
     * @see System::_memCache
337
     * @see System::_memTotal
344
     * @see System::_memTotal
338
     *
345
     *
339
     * @return int
346
     * @return int
340
     */
347
     */
341
    public function getMemPercentCache()
348
    public function getMemPercentCache()
342
    {
349
    {
343
        if ($this->_memCache !== null) {
350
        if ($this->_memCache !== null) {
344
            if (($this->_memCache > 0) && ($this->_memTotal > 0)) {
351
            if (($this->_memCache > 0) && ($this->_memTotal > 0)) {
345
                if (($this->_memApplication !== null) && ($this->_memApplication > 0)) {
352
                if (($this->_memApplication !== null) && ($this->_memApplication > 0)) {
346
                    return round(($this->_memCache + $this->_memApplication) / $this->_memTotal * 100) - $this->getMemPercentApplication();
353
                    return round(($this->_memCache + $this->_memApplication) / $this->_memTotal * 100) - $this->getMemPercentApplication();
347
                } else {
354
                } else {
348
                    return round($this->_memCache / $this->_memTotal * 100);
355
                    return round($this->_memCache / $this->_memTotal * 100);
349
                }
356
                }
350
            } else {
357
            } else {
351
                return 0;
358
                return 0;
352
            }
359
            }
353
        } else {
360
        } else {
354
            return null;
361
            return null;
355
        }
362
        }
356
    }
363
    }
357
 
364
 
358
    /**
365
    /**
359
     * return percent of used memory for buffer
366
     * return percent of used memory for buffer
360
     *
367
     *
361
     * @see System::_memBuffer
368
     * @see System::_memBuffer
362
     * @see System::_memTotal
369
     * @see System::_memTotal
363
     *
370
     *
364
     * @return int
371
     * @return int
365
     */
372
     */
366
    public function getMemPercentBuffer()
373
    public function getMemPercentBuffer()
367
    {
374
    {
368
        if ($this->_memBuffer !== null) {
375
        if ($this->_memBuffer !== null) {
369
            if (($this->_memBuffer > 0) && ($this->_memTotal > 0)) {
376
            if (($this->_memBuffer > 0) && ($this->_memTotal > 0)) {
370
                if (($this->_memCache !== null) && ($this->_memCache > 0)) {
377
                if (($this->_memCache !== null) && ($this->_memCache > 0)) {
371
                    if (($this->_memApplication !== null) && ($this->_memApplication > 0)) {
378
                    if (($this->_memApplication !== null) && ($this->_memApplication > 0)) {
372
                        return round(($this->_memBuffer + $this->_memApplication + $this->_memCache) / $this->_memTotal * 100) - $this->getMemPercentApplication() - $this->getMemPercentCache();
379
                        return round(($this->_memBuffer + $this->_memApplication + $this->_memCache) / $this->_memTotal * 100) - $this->getMemPercentApplication() - $this->getMemPercentCache();
373
                    } else {
380
                    } else {
374
                        return round(($this->_memBuffer + $this->_memCache) / $this->_memTotal * 100) - $this->getMemPercentCache();
381
                        return round(($this->_memBuffer + $this->_memCache) / $this->_memTotal * 100) - $this->getMemPercentCache();
375
                    }
382
                    }
376
                } elseif (($this->_memApplication !== null) && ($this->_memApplication > 0)) {
383
                } elseif (($this->_memApplication !== null) && ($this->_memApplication > 0)) {
377
                    return round(($this->_memBuffer + $this->_memApplication) / $this->_memTotal * 100) - $this->getMemPercentApplication();
384
                    return round(($this->_memBuffer + $this->_memApplication) / $this->_memTotal * 100) - $this->getMemPercentApplication();
378
                } else {
385
                } else {
379
                    return round($this->_memBuffer / $this->_memTotal * 100);
386
                    return round($this->_memBuffer / $this->_memTotal * 100);
380
                }
387
                }
381
            } else {
388
            } else {
382
                return 0;
389
                return 0;
383
            }
390
            }
384
        } else {
391
        } else {
385
            return null;
392
            return null;
386
        }
393
        }
387
    }
394
    }
388
 
395
 
389
    /**
396
    /**
390
     * Returns total free swap space
397
     * Returns total free swap space
391
     *
398
     *
392
     * @see System::_swapDevices
399
     * @see System::_swapDevices
393
     * @see DiskDevice::getFree()
400
     * @see DiskDevice::getFree()
394
     *
401
     *
395
     * @return int
402
     * @return int
396
     */
403
     */
397
    public function getSwapFree()
404
    public function getSwapFree()
398
    {
405
    {
399
        if (count($this->_swapDevices) > 0) {
406
        if (count($this->_swapDevices) > 0) {
400
            $free = 0;
407
            $free = 0;
401
            foreach ($this->_swapDevices as $dev) {
408
            foreach ($this->_swapDevices as $dev) {
402
                $free += $dev->getFree();
409
                $free += $dev->getFree();
403
            }
410
            }
404
 
411
 
405
            return $free;
412
            return $free;
406
        }
413
        }
407
 
414
 
408
        return null;
415
        return null;
409
    }
416
    }
410
 
417
 
411
    /**
418
    /**
412
     * Returns total swap space
419
     * Returns total swap space
413
     *
420
     *
414
     * @see System::_swapDevices
421
     * @see System::_swapDevices
415
     * @see DiskDevice::getTotal()
422
     * @see DiskDevice::getTotal()
416
     *
423
     *
417
     * @return int
424
     * @return int
418
     */
425
     */
419
    public function getSwapTotal()
426
    public function getSwapTotal()
420
    {
427
    {
421
        if (count($this->_swapDevices) > 0) {
428
        if (count($this->_swapDevices) > 0) {
422
            $total = 0;
429
            $total = 0;
423
            foreach ($this->_swapDevices as $dev) {
430
            foreach ($this->_swapDevices as $dev) {
424
                $total += $dev->getTotal();
431
                $total += $dev->getTotal();
425
            }
432
            }
426
 
433
 
427
            return $total;
434
            return $total;
428
        } else {
435
        } else {
429
            return null;
436
            return null;
430
        }
437
        }
431
    }
438
    }
432
 
439
 
433
    /**
440
    /**
434
     * Returns total used swap space
441
     * Returns total used swap space
435
     *
442
     *
436
     * @see System::_swapDevices
443
     * @see System::_swapDevices
437
     * @see DiskDevice::getUsed()
444
     * @see DiskDevice::getUsed()
438
     *
445
     *
439
     * @return int
446
     * @return int
440
     */
447
     */
441
    public function getSwapUsed()
448
    public function getSwapUsed()
442
    {
449
    {
443
        if (count($this->_swapDevices) > 0) {
450
        if (count($this->_swapDevices) > 0) {
444
            $used = 0;
451
            $used = 0;
445
            foreach ($this->_swapDevices as $dev) {
452
            foreach ($this->_swapDevices as $dev) {
446
                $used += $dev->getUsed();
453
                $used += $dev->getUsed();
447
            }
454
            }
448
 
455
 
449
            return $used;
456
            return $used;
450
        } else {
457
        } else {
451
            return null;
458
            return null;
452
        }
459
        }
453
    }
460
    }
454
 
461
 
455
    /**
462
    /**
456
     * return percent of total swap space used
463
     * return percent of total swap space used
457
     *
464
     *
458
     * @see System::getSwapUsed()
465
     * @see System::getSwapUsed()
459
     * @see System::getSwapTotal()
466
     * @see System::getSwapTotal()
460
     *
467
     *
461
     * @return int
468
     * @return int
462
     */
469
     */
463
    public function getSwapPercentUsed()
470
    public function getSwapPercentUsed()
464
    {
471
    {
465
        if ($this->getSwapTotal() !== null) {
472
        if ($this->getSwapTotal() !== null) {
466
            if ($this->getSwapTotal() > 0) {
473
            if ($this->getSwapTotal() > 0) {
467
                return round($this->getSwapUsed() / $this->getSwapTotal() * 100);
474
                return round($this->getSwapUsed() / $this->getSwapTotal() * 100);
468
            } else {
475
            } else {
469
                return 0;
476
                return 0;
470
            }
477
            }
471
        } else {
478
        } else {
472
            return null;
479
            return null;
473
        }
480
        }
474
    }
481
    }
475
 
482
 
476
    /**
483
    /**
477
     * Returns $_distribution.
484
     * Returns $_distribution.
478
     *
485
     *
479
     * @see System::$_distribution
486
     * @see System::$_distribution
480
     *
487
     *
481
     * @return String
488
     * @return String
482
     */
489
     */
483
    public function getDistribution()
490
    public function getDistribution()
484
    {
491
    {
485
        return $this->_distribution;
492
        return $this->_distribution;
486
    }
493
    }
487
 
494
 
488
    /**
495
    /**
489
     * Sets $_distribution.
496
     * Sets $_distribution.
490
     *
497
     *
491
     * @param String $distribution distributionname
498
     * @param String $distribution distributionname
492
     *
499
     *
493
     * @see System::$_distribution
500
     * @see System::$_distribution
494
     *
501
     *
495
     * @return void
502
     * @return void
496
     */
503
     */
497
    public function setDistribution($distribution)
504
    public function setDistribution($distribution)
498
    {
505
    {
499
        $this->_distribution = $distribution;
506
        $this->_distribution = $distribution;
500
    }
507
    }
501
 
508
 
502
    /**
509
    /**
503
     * Returns $_distributionIcon.
510
     * Returns $_distributionIcon.
504
     *
511
     *
505
     * @see System::$_distributionIcon
512
     * @see System::$_distributionIcon
506
     *
513
     *
507
     * @return String
514
     * @return String
508
     */
515
     */
509
    public function getDistributionIcon()
516
    public function getDistributionIcon()
510
    {
517
    {
511
        return $this->_distributionIcon;
518
        return $this->_distributionIcon;
512
    }
519
    }
513
 
520
 
514
    /**
521
    /**
515
     * Sets $_distributionIcon.
522
     * Sets $_distributionIcon.
516
     *
523
     *
517
     * @param String $distributionIcon distribution icon
524
     * @param String $distributionIcon distribution icon
518
     *
525
     *
519
     * @see System::$_distributionIcon
526
     * @see System::$_distributionIcon
520
     *
527
     *
521
     * @return void
528
     * @return void
522
     */
529
     */
523
    public function setDistributionIcon($distributionIcon)
530
    public function setDistributionIcon($distributionIcon)
524
    {
531
    {
525
        $this->_distributionIcon = $distributionIcon;
532
        $this->_distributionIcon = $distributionIcon;
526
    }
533
    }
527
 
534
 
528
    /**
535
    /**
529
     * Returns $_hostname.
536
     * Returns $_hostname.
530
     *
537
     *
531
     * @see System::$_hostname
538
     * @see System::$_hostname
532
     *
539
     *
533
     * @return String
540
     * @return String
534
     */
541
     */
535
    public function getHostname()
542
    public function getHostname()
536
    {
543
    {
537
        return $this->_hostname;
544
        return $this->_hostname;
538
    }
545
    }
539
 
546
 
540
    /**
547
    /**
541
     * Sets $_hostname.
548
     * Sets $_hostname.
542
     *
549
     *
543
     * @param String $hostname hostname
550
     * @param String $hostname hostname
544
     *
551
     *
545
     * @see System::$_hostname
552
     * @see System::$_hostname
546
     *
553
     *
547
     * @return void
554
     * @return void
548
     */
555
     */
549
    public function setHostname($hostname)
556
    public function setHostname($hostname)
550
    {
557
    {
551
        $this->_hostname = $hostname;
558
        $this->_hostname = $hostname;
552
    }
559
    }
553
 
560
 
554
    /**
561
    /**
555
     * Returns $_ip.
562
     * Returns $_ip.
556
     *
563
     *
557
     * @see System::$_ip
564
     * @see System::$_ip
558
     *
565
     *
559
     * @return String
566
     * @return String
560
     */
567
     */
561
    public function getIp()
568
    public function getIp()
562
    {
569
    {
563
        return $this->_ip;
570
        return $this->_ip;
564
    }
571
    }
565
 
572
 
566
    /**
573
    /**
567
     * Sets $_ip.
574
     * Sets $_ip.
568
     *
575
     *
569
     * @param String $ip IP
576
     * @param String $ip IP
570
     *
577
     *
571
     * @see System::$_ip
578
     * @see System::$_ip
572
     *
579
     *
573
     * @return void
580
     * @return void
574
     */
581
     */
575
    public function setIp($ip)
582
    public function setIp($ip)
576
    {
583
    {
577
        $this->_ip = $ip;
584
        $this->_ip = $ip;
578
    }
585
    }
579
 
586
 
580
    /**
587
    /**
581
     * Returns $_kernel.
588
     * Returns $_kernel.
582
     *
589
     *
583
     * @see System::$_kernel
590
     * @see System::$_kernel
584
     *
591
     *
585
     * @return String
592
     * @return String
586
     */
593
     */
587
    public function getKernel()
594
    public function getKernel()
588
    {
595
    {
589
        return $this->_kernel;
596
        return $this->_kernel;
590
    }
597
    }
591
 
598
 
592
    /**
599
    /**
593
     * Sets $_kernel.
600
     * Sets $_kernel.
594
     *
601
     *
595
     * @param String $kernel kernelname
602
     * @param String $kernel kernelname
596
     *
603
     *
597
     * @see System::$_kernel
604
     * @see System::$_kernel
598
     *
605
     *
599
     * @return void
606
     * @return void
600
     */
607
     */
601
    public function setKernel($kernel)
608
    public function setKernel($kernel)
602
    {
609
    {
603
        $this->_kernel = $kernel;
610
        $this->_kernel = $kernel;
604
    }
611
    }
605
 
612
 
606
    /**
613
    /**
607
     * Returns $_load.
614
     * Returns $_load.
608
     *
615
     *
609
     * @see System::$_load
616
     * @see System::$_load
610
     *
617
     *
611
     * @return String
618
     * @return String
612
     */
619
     */
613
    public function getLoad()
620
    public function getLoad()
614
    {
621
    {
615
        return $this->_load;
622
        return $this->_load;
616
    }
623
    }
617
 
624
 
618
    /**
625
    /**
619
     * Sets $_load.
626
     * Sets $_load.
620
     *
627
     *
621
     * @param String $load current system load
628
     * @param String $load current system load
622
     *
629
     *
623
     * @see System::$_load
630
     * @see System::$_load
624
     *
631
     *
625
     * @return void
632
     * @return void
626
     */
633
     */
627
    public function setLoad($load)
634
    public function setLoad($load)
628
    {
635
    {
629
        $this->_load = $load;
636
        $this->_load = $load;
630
    }
637
    }
631
 
638
 
632
    /**
639
    /**
633
     * Returns $_loadPercent.
640
     * Returns $_loadPercent.
634
     *
641
     *
635
     * @see System::$_loadPercent
642
     * @see System::$_loadPercent
636
     *
643
     *
637
     * @return int
644
     * @return int
638
     */
645
     */
639
    public function getLoadPercent()
646
    public function getLoadPercent()
640
    {
647
    {
641
        return $this->_loadPercent;
648
        return $this->_loadPercent;
642
    }
649
    }
643
 
650
 
644
    /**
651
    /**
645
     * Sets $_loadPercent.
652
     * Sets $_loadPercent.
646
     *
653
     *
647
     * @param int $loadPercent load percent
654
     * @param int $loadPercent load percent
648
     *
655
     *
649
     * @see System::$_loadPercent
656
     * @see System::$_loadPercent
650
     *
657
     *
651
     * @return void
658
     * @return void
652
     */
659
     */
653
    public function setLoadPercent($loadPercent)
660
    public function setLoadPercent($loadPercent)
654
    {
661
    {
655
        $this->_loadPercent = $loadPercent;
662
        $this->_loadPercent = $loadPercent;
656
    }
663
    }
657
 
664
 
658
    /**
665
    /**
659
     * Returns $_machine.
666
     * Returns $_machine.
660
     *
667
     *
661
     * @see System::$_machine
668
     * @see System::$_machine
662
     *
669
     *
663
     * @return String
670
     * @return String
664
     */
671
     */
665
    public function getMachine()
672
    public function getMachine()
666
    {
673
    {
667
        return $this->_machine;
674
        return $this->_machine;
668
    }
675
    }
669
 
676
 
670
    /**
677
    /**
671
     * Sets $_machine.
678
     * Sets $_machine.
672
     *
679
     *
673
     * @param string $machine machine
680
     * @param string $machine machine
674
     *
681
     *
675
     * @see System::$_machine
682
     * @see System::$_machine
676
     *
683
     *
677
     * @return void
684
     * @return void
678
     */
685
     */
679
    public function setMachine($machine)
686
    public function setMachine($machine)
680
    {
687
    {
681
        $this->_machine = $machine;
688
        $this->_machine = $machine;
682
    }
689
    }
683
 
690
 
684
    /**
691
    /**
685
     * Returns $_uptime.
692
     * Returns $_uptime.
686
     *
693
     *
687
     * @see System::$_uptime
694
     * @see System::$_uptime
688
     *
695
     *
689
     * @return int
696
     * @return int
690
     */
697
     */
691
    public function getUptime()
698
    public function getUptime()
692
    {
699
    {
693
        return $this->_uptime;
700
        return $this->_uptime;
694
    }
701
    }
695
 
702
 
696
    /**
703
    /**
697
     * Sets $_uptime.
704
     * Sets $_uptime.
698
     *
705
     *
699
     * @param integer $uptime uptime
706
     * @param integer $uptime uptime
700
     *
707
     *
701
     * @see System::$_uptime
708
     * @see System::$_uptime
702
     *
709
     *
703
     * @return void
710
     * @return void
704
     */
711
     */
705
    public function setUptime($uptime)
712
    public function setUptime($uptime)
706
    {
713
    {
707
        $this->_uptime = $uptime;
714
        $this->_uptime = $uptime;
708
    }
715
    }
709
 
716
 
710
    /**
717
    /**
711
     * Returns $_users.
718
     * Returns $_users.
712
     *
719
     *
713
     * @see System::$_users
720
     * @see System::$_users
714
     *
721
     *
715
     * @return int
722
     * @return int
716
     */
723
     */
717
    public function getUsers()
724
    public function getUsers()
718
    {
725
    {
719
        return $this->_users;
726
        return $this->_users;
720
    }
727
    }
721
 
728
 
722
    /**
729
    /**
723
     * Sets $_users.
730
     * Sets $_users.
724
     *
731
     *
725
     * @param int $users user count
732
     * @param int $users user count
726
     *
733
     *
727
     * @see System::$_users
734
     * @see System::$_users
728
     *
735
     *
729
     * @return void
736
     * @return void
730
     */
737
     */
731
    public function setUsers($users)
738
    public function setUsers($users)
732
    {
739
    {
733
        $this->_users = $users;
740
        $this->_users = $users;
734
    }
741
    }
735
 
742
 
736
    /**
743
    /**
737
     * Returns $_cpus.
744
     * Returns $_cpus.
738
     *
745
     *
739
     * @see System::$_cpus
746
     * @see System::$_cpus
740
     *
747
     *
741
     * @return array
748
     * @return array
742
     */
749
     */
743
    public function getCpus()
750
    public function getCpus()
744
    {
751
    {
745
        return $this->_cpus;
752
        return $this->_cpus;
746
    }
753
    }
747
 
754
 
748
    /**
755
    /**
749
     * Sets $_cpus.
756
     * Sets $_cpus.
750
     *
757
     *
751
     * @param CpuDevice $cpus cpu device
758
     * @param CpuDevice $cpus cpu device
752
     *
759
     *
753
     * @see System::$_cpus
760
     * @see System::$_cpus
754
     * @see CpuDevice
761
     * @see CpuDevice
755
     *
762
     *
756
     * @return void
763
     * @return void
757
     */
764
     */
758
    public function setCpus($cpus)
765
    public function setCpus($cpus)
759
    {
766
    {
760
        array_push($this->_cpus, $cpus);
767
        array_push($this->_cpus, $cpus);
761
    }
768
    }
762
 
769
 
763
    /**
770
    /**
764
     * Returns $_netDevices.
771
     * Returns $_netDevices.
765
     *
772
     *
766
     * @see System::$_netDevices
773
     * @see System::$_netDevices
767
     *
774
     *
768
     * @return array
775
     * @return array
769
     */
776
     */
770
    public function getNetDevices()
777
    public function getNetDevices()
771
    {
778
    {
772
        if (defined('PSI_SORT_NETWORK_INTERFACES_LIST') && PSI_SORT_NETWORK_INTERFACES_LIST) {
779
        if (defined('PSI_SORT_NETWORK_INTERFACES_LIST') && PSI_SORT_NETWORK_INTERFACES_LIST) {
773
            usort($this->_netDevices, array('CommonFunctions', 'name_natural_compare'));
780
            usort($this->_netDevices, array('CommonFunctions', 'name_natural_compare'));
774
        }
781
        }
775
 
782
 
776
        return $this->_netDevices;
783
        return $this->_netDevices;
777
    }
784
    }
778
 
785
 
779
    /**
786
    /**
780
     * Sets $_netDevices.
787
     * Sets $_netDevices.
781
     *
788
     *
782
     * @param NetDevice $netDevices network device
789
     * @param NetDevice $netDevices network device
783
     *
790
     *
784
     * @see System::$_netDevices
791
     * @see System::$_netDevices
785
     * @see NetDevice
792
     * @see NetDevice
786
     *
793
     *
787
     * @return void
794
     * @return void
788
     */
795
     */
789
    public function setNetDevices($netDevices)
796
    public function setNetDevices($netDevices)
790
    {
797
    {
791
        array_push($this->_netDevices, $netDevices);
798
        array_push($this->_netDevices, $netDevices);
792
    }
799
    }
793
 
800
 
794
    /**
801
    /**
795
     * Returns $_pciDevices.
802
     * Returns $_pciDevices.
796
     *
803
     *
797
     * @see System::$_pciDevices
804
     * @see System::$_pciDevices
798
     *
805
     *
799
     * @return array
806
     * @return array
800
     */
807
     */
801
    public function getPciDevices()
808
    public function getPciDevices()
802
    {
809
    {
803
        return $this->_pciDevices;
810
        return $this->_pciDevices;
804
    }
811
    }
805
 
812
 
806
    /**
813
    /**
807
     * Sets $_pciDevices.
814
     * Sets $_pciDevices.
808
     *
815
     *
809
     * @param HWDevice $pciDevices pci device
816
     * @param HWDevice $pciDevices pci device
810
     *
817
     *
811
     * @see System::$_pciDevices
818
     * @see System::$_pciDevices
812
     * @see HWDevice
819
     * @see HWDevice
813
     *
820
     *
814
     * @return void
821
     * @return void
815
     */
822
     */
816
    public function setPciDevices($pciDevices)
823
    public function setPciDevices($pciDevices)
817
    {
824
    {
818
        array_push($this->_pciDevices, $pciDevices);
825
        array_push($this->_pciDevices, $pciDevices);
819
    }
826
    }
820
 
827
 
821
    /**
828
    /**
822
     * Returns $_ideDevices.
829
     * Returns $_ideDevices.
823
     *
830
     *
824
     * @see System::$_ideDevices
831
     * @see System::$_ideDevices
825
     *
832
     *
826
     * @return array
833
     * @return array
827
     */
834
     */
828
    public function getIdeDevices()
835
    public function getIdeDevices()
829
    {
836
    {
830
        return $this->_ideDevices;
837
        return $this->_ideDevices;
831
    }
838
    }
832
 
839
 
833
    /**
840
    /**
834
     * Sets $_ideDevices.
841
     * Sets $_ideDevices.
835
     *
842
     *
836
     * @param HWDevice $ideDevices ide device
843
     * @param HWDevice $ideDevices ide device
837
     *
844
     *
838
     * @see System::$_ideDevices
845
     * @see System::$_ideDevices
839
     * @see HWDevice
846
     * @see HWDevice
840
     *
847
     *
841
     * @return void
848
     * @return void
842
     */
849
     */
843
    public function setIdeDevices($ideDevices)
850
    public function setIdeDevices($ideDevices)
844
    {
851
    {
845
        array_push($this->_ideDevices, $ideDevices);
852
        array_push($this->_ideDevices, $ideDevices);
846
    }
853
    }
847
 
854
 
848
    /**
855
    /**
849
     * Returns $_scsiDevices.
856
     * Returns $_scsiDevices.
850
     *
857
     *
851
     * @see System::$_scsiDevices
858
     * @see System::$_scsiDevices
852
     *
859
     *
853
     * @return array
860
     * @return array
854
     */
861
     */
855
    public function getScsiDevices()
862
    public function getScsiDevices()
856
    {
863
    {
857
        return $this->_scsiDevices;
864
        return $this->_scsiDevices;
858
    }
865
    }
859
 
866
 
860
    /**
867
    /**
861
     * Sets $_scsiDevices.
868
     * Sets $_scsiDevices.
862
     *
869
     *
863
     * @param HWDevice $scsiDevices scsi devices
870
     * @param HWDevice $scsiDevices scsi devices
864
     *
871
     *
865
     * @see System::$_scsiDevices
872
     * @see System::$_scsiDevices
866
     * @see HWDevice
873
     * @see HWDevice
867
     *
874
     *
868
     * @return void
875
     * @return void
869
     */
876
     */
870
    public function setScsiDevices($scsiDevices)
877
    public function setScsiDevices($scsiDevices)
871
    {
878
    {
872
        array_push($this->_scsiDevices, $scsiDevices);
879
        array_push($this->_scsiDevices, $scsiDevices);
873
    }
880
    }
874
 
881
 
875
    /**
882
    /**
876
     * Returns $_usbDevices.
883
     * Returns $_usbDevices.
877
     *
884
     *
878
     * @see System::$_usbDevices
885
     * @see System::$_usbDevices
879
     *
886
     *
880
     * @return array
887
     * @return array
881
     */
888
     */
882
    public function getUsbDevices()
889
    public function getUsbDevices()
883
    {
890
    {
884
        return $this->_usbDevices;
891
        return $this->_usbDevices;
885
    }
892
    }
886
 
893
 
887
    /**
894
    /**
888
     * Sets $_usbDevices.
895
     * Sets $_usbDevices.
889
     *
896
     *
890
     * @param HWDevice $usbDevices usb device
897
     * @param HWDevice $usbDevices usb device
891
     *
898
     *
892
     * @see System::$_usbDevices
899
     * @see System::$_usbDevices
893
     * @see HWDevice
900
     * @see HWDevice
894
     *
901
     *
895
     * @return void
902
     * @return void
896
     */
903
     */
897
    public function setUsbDevices($usbDevices)
904
    public function setUsbDevices($usbDevices)
898
    {
905
    {
899
        array_push($this->_usbDevices, $usbDevices);
906
        array_push($this->_usbDevices, $usbDevices);
900
    }
907
    }
901
 
908
 
902
    /**
909
    /**
903
     * Returns $_tbDevices.
910
     * Returns $_tbDevices.
904
     *
911
     *
905
     * @see System::$_tbDevices
912
     * @see System::$_tbDevices
906
     *
913
     *
907
     * @return array
914
     * @return array
908
     */
915
     */
909
    public function getTbDevices()
916
    public function getTbDevices()
910
    {
917
    {
911
        return $this->_tbDevices;
918
        return $this->_tbDevices;
912
    }
919
    }
913
 
920
 
914
    /**
921
    /**
915
     * Sets $_tbDevices.
922
     * Sets $_tbDevices.
916
     *
923
     *
917
     * @param HWDevice $tbDevices thunderbolt device
924
     * @param HWDevice $tbDevices thunderbolt device
918
     *
925
     *
919
     * @see System::$_tbDevices
926
     * @see System::$_tbDevices
920
     * @see HWDevice
927
     * @see HWDevice
921
     *
928
     *
922
     * @return void
929
     * @return void
923
     */
930
     */
924
    public function setTbDevices($tbDevices)
931
    public function setTbDevices($tbDevices)
925
    {
932
    {
926
        array_push($this->_tbDevices, $tbDevices);
933
        array_push($this->_tbDevices, $tbDevices);
927
    }
934
    }
928
 
935
 
929
    /**
936
    /**
930
     * Returns $_i2cDevices.
937
     * Returns $_i2cDevices.
931
     *
938
     *
932
     * @see System::$_i2cDevices
939
     * @see System::$_i2cDevices
933
     *
940
     *
934
     * @return array
941
     * @return array
935
     */
942
     */
936
    public function getI2cDevices()
943
    public function getI2cDevices()
937
    {
944
    {
938
        return $this->_i2cDevices;
945
        return $this->_i2cDevices;
939
    }
946
    }
940
 
947
 
941
    /**
948
    /**
942
     * Sets $_i2cDevices.
949
     * Sets $_i2cDevices.
943
     *
950
     *
944
     * @param HWDevice $i2cDevices I2C device
951
     * @param HWDevice $i2cDevices I2C device
945
     *
952
     *
946
     * @see System::$_i2cDevices
953
     * @see System::$_i2cDevices
947
     * @see HWDevice
954
     * @see HWDevice
948
     *
955
     *
949
     * @return void
956
     * @return void
950
     */
957
     */
951
    public function setI2cDevices($i2cDevices)
958
    public function setI2cDevices($i2cDevices)
952
    {
959
    {
953
        array_push($this->_i2cDevices, $i2cDevices);
960
        array_push($this->_i2cDevices, $i2cDevices);
954
    }
961
    }
955
 
962
 
956
    /**
963
    /**
957
     * Returns $_nvmeDevices.
964
     * Returns $_nvmeDevices.
958
     *
965
     *
959
     * @see System::$_nvmeDevices
966
     * @see System::$_nvmeDevices
960
     *
967
     *
961
     * @return array
968
     * @return array
962
     */
969
     */
963
    public function getNvmeDevices()
970
    public function getNvmeDevices()
964
    {
971
    {
965
        return $this->_nvmeDevices;
972
        return $this->_nvmeDevices;
966
    }
973
    }
967
 
974
 
968
    /**
975
    /**
969
     * Sets $_nvmeDevices.
976
     * Sets $_nvmeDevices.
970
     *
977
     *
971
     * @param HWDevice $nvmeDevices NVMe device
978
     * @param HWDevice $nvmeDevices NVMe device
972
     *
979
     *
973
     * @see System::$_nvmeDevices
980
     * @see System::$_nvmeDevices
974
     * @see HWDevice
981
     * @see HWDevice
975
     *
982
     *
976
     * @return void
983
     * @return void
977
     */
984
     */
978
    public function setNvmeDevices($nvmeDevices)
985
    public function setNvmeDevices($nvmeDevices)
979
    {
986
    {
980
        array_push($this->_nvmeDevices, $nvmeDevices);
987
        array_push($this->_nvmeDevices, $nvmeDevices);
981
    }
988
    }
982
 
989
 
983
    /**
990
    /**
984
     * Returns $_memDevices.
991
     * Returns $_memDevices.
985
     *
992
     *
986
     * @see System::$_memDevices
993
     * @see System::$_memDevices
987
     *
994
     *
988
     * @return array
995
     * @return array
989
     */
996
     */
990
    public function getMemDevices()
997
    public function getMemDevices()
991
    {
998
    {
992
        return $this->_memDevices;
999
        return $this->_memDevices;
993
    }
1000
    }
994
 
1001
 
995
    /**
1002
    /**
996
     * Sets $_memDevices.
1003
     * Sets $_memDevices.
997
     *
1004
     *
998
     * @param HWDevice $memDevices mem device
1005
     * @param HWDevice $memDevices mem device
999
     *
1006
     *
1000
     * @see System::$_memDevices
1007
     * @see System::$_memDevices
1001
     * @see HWDevice
1008
     * @see HWDevice
1002
     *
1009
     *
1003
     * @return void
1010
     * @return void
1004
     */
1011
     */
1005
    public function setMemDevices($memDevices)
1012
    public function setMemDevices($memDevices)
1006
    {
1013
    {
1007
        array_push($this->_memDevices, $memDevices);
1014
        array_push($this->_memDevices, $memDevices);
1008
    }
1015
    }
1009
 
1016
 
1010
    /**
1017
    /**
1011
     * Returns $_diskDevices.
1018
     * Returns $_diskDevices.
1012
     *
1019
     *
1013
     * @see System::$_diskDevices
1020
     * @see System::$_diskDevices
1014
     *
1021
     *
1015
     * @return array
1022
     * @return array
1016
     */
1023
     */
1017
    public function getDiskDevices()
1024
    public function getDiskDevices()
1018
    {
1025
    {
1019
        return $this->_diskDevices;
1026
        return $this->_diskDevices;
1020
    }
1027
    }
1021
 
1028
 
1022
    /**
1029
    /**
1023
     * Sets $_diskDevices.
1030
     * Sets $_diskDevices.
1024
     *
1031
     *
1025
     * @param DiskDevice $diskDevices disk device
1032
     * @param DiskDevice $diskDevices disk device
1026
     *
1033
     *
1027
     * @see System::$_diskDevices
1034
     * @see System::$_diskDevices
1028
     * @see DiskDevice
1035
     * @see DiskDevice
1029
     *
1036
     *
1030
     * @return void
1037
     * @return void
1031
     */
1038
     */
1032
    public function setDiskDevices($diskDevices)
1039
    public function setDiskDevices($diskDevices)
1033
    {
1040
    {
1034
        array_push($this->_diskDevices, $diskDevices);
1041
        array_push($this->_diskDevices, $diskDevices);
1035
    }
1042
    }
1036
 
1043
 
1037
    /**
1044
    /**
1038
     * Returns $_memApplication.
1045
     * Returns $_memApplication.
1039
     *
1046
     *
1040
     * @see System::$_memApplication
1047
     * @see System::$_memApplication
1041
     *
1048
     *
1042
     * @return int
1049
     * @return int
1043
     */
1050
     */
1044
    public function getMemApplication()
1051
    public function getMemApplication()
1045
    {
1052
    {
1046
        return $this->_memApplication;
1053
        return $this->_memApplication;
1047
    }
1054
    }
1048
 
1055
 
1049
    /**
1056
    /**
1050
     * Sets $_memApplication.
1057
     * Sets $_memApplication.
1051
     *
1058
     *
1052
     * @param int $memApplication application memory
1059
     * @param int $memApplication application memory
1053
     *
1060
     *
1054
     * @see System::$_memApplication
1061
     * @see System::$_memApplication
1055
     *
1062
     *
1056
     * @return void
1063
     * @return void
1057
     */
1064
     */
1058
    public function setMemApplication($memApplication)
1065
    public function setMemApplication($memApplication)
1059
    {
1066
    {
1060
        $this->_memApplication = $memApplication;
1067
        $this->_memApplication = $memApplication;
1061
    }
1068
    }
1062
 
1069
 
1063
    /**
1070
    /**
1064
     * Returns $_memBuffer.
1071
     * Returns $_memBuffer.
1065
     *
1072
     *
1066
     * @see System::$_memBuffer
1073
     * @see System::$_memBuffer
1067
     *
1074
     *
1068
     * @return int
1075
     * @return int
1069
     */
1076
     */
1070
    public function getMemBuffer()
1077
    public function getMemBuffer()
1071
    {
1078
    {
1072
        return $this->_memBuffer;
1079
        return $this->_memBuffer;
1073
    }
1080
    }
1074
 
1081
 
1075
    /**
1082
    /**
1076
     * Sets $_memBuffer.
1083
     * Sets $_memBuffer.
1077
     *
1084
     *
1078
     * @param int $memBuffer buffer memory
1085
     * @param int $memBuffer buffer memory
1079
     *
1086
     *
1080
     * @see System::$_memBuffer
1087
     * @see System::$_memBuffer
1081
     *
1088
     *
1082
     * @return void
1089
     * @return void
1083
     */
1090
     */
1084
    public function setMemBuffer($memBuffer)
1091
    public function setMemBuffer($memBuffer)
1085
    {
1092
    {
1086
        $this->_memBuffer = $memBuffer;
1093
        $this->_memBuffer = $memBuffer;
1087
    }
1094
    }
1088
 
1095
 
1089
    /**
1096
    /**
1090
     * Returns $_memCache.
1097
     * Returns $_memCache.
1091
     *
1098
     *
1092
     * @see System::$_memCache
1099
     * @see System::$_memCache
1093
     *
1100
     *
1094
     * @return int
1101
     * @return int
1095
     */
1102
     */
1096
    public function getMemCache()
1103
    public function getMemCache()
1097
    {
1104
    {
1098
        return $this->_memCache;
1105
        return $this->_memCache;
1099
    }
1106
    }
1100
 
1107
 
1101
    /**
1108
    /**
1102
     * Sets $_memCache.
1109
     * Sets $_memCache.
1103
     *
1110
     *
1104
     * @param int $memCache cache memory
1111
     * @param int $memCache cache memory
1105
     *
1112
     *
1106
     * @see System::$_memCache
1113
     * @see System::$_memCache
1107
     *
1114
     *
1108
     * @return void
1115
     * @return void
1109
     */
1116
     */
1110
    public function setMemCache($memCache)
1117
    public function setMemCache($memCache)
1111
    {
1118
    {
1112
        $this->_memCache = $memCache;
1119
        $this->_memCache = $memCache;
1113
    }
1120
    }
1114
 
1121
 
1115
    /**
1122
    /**
1116
     * Returns $_memFree.
1123
     * Returns $_memFree.
1117
     *
1124
     *
1118
     * @see System::$_memFree
1125
     * @see System::$_memFree
1119
     *
1126
     *
1120
     * @return int
1127
     * @return int
1121
     */
1128
     */
1122
    public function getMemFree()
1129
    public function getMemFree()
1123
    {
1130
    {
1124
        return $this->_memFree;
1131
        return $this->_memFree;
1125
    }
1132
    }
1126
 
1133
 
1127
    /**
1134
    /**
1128
     * Sets $_memFree.
1135
     * Sets $_memFree.
1129
     *
1136
     *
1130
     * @param int $memFree free memory
1137
     * @param int $memFree free memory
1131
     *
1138
     *
1132
     * @see System::$_memFree
1139
     * @see System::$_memFree
1133
     *
1140
     *
1134
     * @return void
1141
     * @return void
1135
     */
1142
     */
1136
    public function setMemFree($memFree)
1143
    public function setMemFree($memFree)
1137
    {
1144
    {
1138
        $this->_memFree = $memFree;
1145
        $this->_memFree = $memFree;
1139
    }
1146
    }
1140
 
1147
 
1141
    /**
1148
    /**
1142
     * Returns $_memTotal.
1149
     * Returns $_memTotal.
1143
     *
1150
     *
1144
     * @see System::$_memTotal
1151
     * @see System::$_memTotal
1145
     *
1152
     *
1146
     * @return int
1153
     * @return int
1147
     */
1154
     */
1148
    public function getMemTotal()
1155
    public function getMemTotal()
1149
    {
1156
    {
1150
        return $this->_memTotal;
1157
        return $this->_memTotal;
1151
    }
1158
    }
1152
 
1159
 
1153
    /**
1160
    /**
1154
     * Sets $_memTotal.
1161
     * Sets $_memTotal.
1155
     *
1162
     *
1156
     * @param int $memTotal total memory
1163
     * @param int $memTotal total memory
1157
     *
1164
     *
1158
     * @see System::$_memTotal
1165
     * @see System::$_memTotal
1159
     *
1166
     *
1160
     * @return void
1167
     * @return void
1161
     */
1168
     */
1162
    public function setMemTotal($memTotal)
1169
    public function setMemTotal($memTotal)
1163
    {
1170
    {
1164
        $this->_memTotal = $memTotal;
1171
        $this->_memTotal = $memTotal;
1165
    }
1172
    }
1166
 
1173
 
1167
    /**
1174
    /**
1168
     * Returns $_memUsed.
1175
     * Returns $_memUsed.
1169
     *
1176
     *
1170
     * @see System::$_memUsed
1177
     * @see System::$_memUsed
1171
     *
1178
     *
1172
     * @return int
1179
     * @return int
1173
     */
1180
     */
1174
    public function getMemUsed()
1181
    public function getMemUsed()
1175
    {
1182
    {
1176
        return $this->_memUsed;
1183
        return $this->_memUsed;
1177
    }
1184
    }
1178
 
1185
 
1179
    /**
1186
    /**
1180
     * Sets $_memUsed.
1187
     * Sets $_memUsed.
1181
     *
1188
     *
1182
     * @param int $memUsed used memory
1189
     * @param int $memUsed used memory
1183
     *
1190
     *
1184
     * @see System::$_memUsed
1191
     * @see System::$_memUsed
1185
     *
1192
     *
1186
     * @return void
1193
     * @return void
1187
     */
1194
     */
1188
    public function setMemUsed($memUsed)
1195
    public function setMemUsed($memUsed)
1189
    {
1196
    {
1190
        $this->_memUsed = $memUsed;
1197
        $this->_memUsed = $memUsed;
1191
    }
1198
    }
1192
 
1199
 
1193
    /**
1200
    /**
1194
     * Returns $_swapDevices.
1201
     * Returns $_swapDevices.
1195
     *
1202
     *
1196
     * @see System::$_swapDevices
1203
     * @see System::$_swapDevices
1197
     *
1204
     *
1198
     * @return array
1205
     * @return array
1199
     */
1206
     */
1200
    public function getSwapDevices()
1207
    public function getSwapDevices()
1201
    {
1208
    {
1202
        return $this->_swapDevices;
1209
        return $this->_swapDevices;
1203
    }
1210
    }
1204
 
1211
 
1205
    /**
1212
    /**
1206
     * Sets $_swapDevices.
1213
     * Sets $_swapDevices.
1207
     *
1214
     *
1208
     * @param DiskDevice $swapDevices swap devices
1215
     * @param DiskDevice $swapDevices swap devices
1209
     *
1216
     *
1210
     * @see System::$_swapDevices
1217
     * @see System::$_swapDevices
1211
     * @see DiskDevice
1218
     * @see DiskDevice
1212
     *
1219
     *
1213
     * @return void
1220
     * @return void
1214
     */
1221
     */
1215
    public function setSwapDevices($swapDevices)
1222
    public function setSwapDevices($swapDevices)
1216
    {
1223
    {
1217
        array_push($this->_swapDevices, $swapDevices);
1224
        array_push($this->_swapDevices, $swapDevices);
1218
    }
1225
    }
1219
 
1226
 
1220
    /**
1227
    /**
1221
     * Returns $_processes.
1228
     * Returns $_processes.
1222
     *
1229
     *
1223
     * @see System::$_processes
1230
     * @see System::$_processes
1224
     *
1231
     *
1225
     * @return array
1232
     * @return array
1226
     */
1233
     */
1227
    public function getProcesses()
1234
    public function getProcesses()
1228
    {
1235
    {
1229
        return $this->_processes;
1236
        return $this->_processes;
1230
    }
1237
    }
1231
 
1238
 
1232
    /**
1239
    /**
1233
     * Sets $_proceses.
1240
     * Sets $_proceses.
1234
     *
1241
     *
1235
     * @param $processes array of types of processes
1242
     * @param $processes array of types of processes
1236
     *
1243
     *
1237
     * @see System::$_processes
1244
     * @see System::$_processes
1238
     *
1245
     *
1239
     * @return void
1246
     * @return void
1240
     */
1247
     */
1241
    public function setProcesses($processes)
1248
    public function setProcesses($processes)
1242
    {
1249
    {
1243
        $this->_processes = $processes;
1250
        $this->_processes = $processes;
1244
/*
1251
/*
1245
        foreach ($processes as $proc_type=>$proc_count) {
1252
        foreach ($processes as $proc_type=>$proc_count) {
1246
            $this->_processes[$proc_type] = $proc_count;
1253
            $this->_processes[$proc_type] = $proc_count;
1247
        }
1254
        }
1248
*/
1255
*/
1249
    }
1256
    }
1250
 
1257
 
1251
    /**
1258
    /**
1252
     * Returns $_virtualizer.
1259
     * Returns $_virtualizer.
1253
     *
1260
     *
1254
     * @see System::$_virtualizer
1261
     * @see System::$_virtualizer
1255
     *
1262
     *
1256
     * @return array
1263
     * @return array
1257
     */
1264
     */
1258
    public function getVirtualizer()
1265
    public function getVirtualizer()
1259
    {
1266
    {
1260
        return $this->_virtualizer;
1267
        return $this->_virtualizer;
1261
    }
1268
    }
1262
 
1269
 
1263
    /**
1270
    /**
1264
     * Sets $_virtualizer.
1271
     * Sets $_virtualizer.
1265
     *
1272
     *
1266
     * @param String      $virtualizer virtualizername
1273
     * @param String      $virtualizer virtualizername
1267
     * @param Bool|String $value       true, false or virtualizername to replace
1274
     * @param Bool|String $value       true, false or virtualizername to replace
1268
     *
1275
     *
1269
     * @see System::$_virtualizer
1276
     * @see System::$_virtualizer
1270
     *
1277
     *
1271
     * @return void
1278
     * @return void
1272
     */
1279
     */
1273
    public function setVirtualizer($virtualizer, $value = true)
1280
    public function setVirtualizer($virtualizer, $value = true)
1274
    {
1281
    {
1275
        if (!isset($this->_virtualizer[$virtualizer])) {
1282
        if (!isset($this->_virtualizer[$virtualizer])) {
1276
            if (is_bool($value)) {
1283
            if (is_bool($value)) {
1277
                $this->_virtualizer[$virtualizer] = $value;
1284
                $this->_virtualizer[$virtualizer] = $value;
1278
            } else { // replace the virtualizer with another
1285
            } else { // replace the virtualizer with another
1279
                $this->_virtualizer[$virtualizer] = true;
1286
                $this->_virtualizer[$virtualizer] = true;
1280
                $this->_virtualizer[$value] = false;
1287
                $this->_virtualizer[$value] = false;
1281
            }
1288
            }
1282
        }
1289
        }
1283
    }
1290
    }
-
 
1291
 
-
 
1292
    /**
-
 
1293
     * Returns $_OS.
-
 
1294
     *
-
 
1295
     * @see System::$_OS
-
 
1296
     *
-
 
1297
     * @return string
-
 
1298
     */
-
 
1299
    public function getOS()
-
 
1300
    {
-
 
1301
        return $this->_OS;
-
 
1302
    }
-
 
1303
 
-
 
1304
    /**
-
 
1305
     * Sets $_OS.
-
 
1306
     *
-
 
1307
     * @param $os operating system type
-
 
1308
     *
-
 
1309
     * @see System::$_OS
-
 
1310
     *
-
 
1311
     * @return void
-
 
1312
     */
-
 
1313
    public function setOS($OS)
-
 
1314
    {
-
 
1315
        $this->_OS = $OS;
-
 
1316
    }
1284
}
1317
}
1285
 
1318