-
Notifications
You must be signed in to change notification settings - Fork 4
/
resources.class.php
39 lines (34 loc) · 957 Bytes
/
resources.class.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
<?php
/** resources class include
*
*
*
* @author Rafael Martin Soto
* @author {@link http://www.inatica.com/ Inatica}
* @since July 2021
* @version 1.0
* @license GNU General Public License v3.0
*/
/* resources class
*/
class resources
{
public $TotalHD;
public $OSVersion;
public $HWVersion;
public $ReleaseDistrib;
public $NumCPUs;
/**
* On create class, it get itself and set the values of Hardware that it can take from the system
* Works in GNU/Linux & Windows systems
*/
public function __construct( ) {
// Load Fixed Values of the System Resources
$this->TotalHD = $this->fGetTotalHD();
$this->OSVersion = $this->fGetOSVersion();
$this->HWVersion = $this->fGetHWVersion();
$this->ReleaseDistrib = $this->fGetReleaseDistrib();
$this->NumCPUs = $this->fGetNumCPUs();
} // /__construct()
} // /resources class
?>