Class System
Commodity class for inspecting the System.
This static class provides several commodity functions to inspect system and configuration parameters and to format their input in various ways.
Methods summary
public static
string
|
|
public static
integer
|
|
public static
integer
|
|
public static
string
|
|
public static
boolean
|
|
public static
integer
|
|
public static
integer
|
|
public static
boolean
|
|
public static
|
|
public static
string
|
|
public static
integer
|
#
getMinHuCoreVersionAsInteger( )
Returns the minimum acceptable HuCore version in integer notation. |
public static
boolean
|
|
public static
boolean
|
|
public static
string
|
#
getHucoreVersionAsString( integer $version = -1 )
Returns the hucore version as its string representation. |
public static
boolean
|
|
public static
boolean
|
|
public static
string
|
|
public static
String
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
getDatabaseType( )
Returns the database type as reported by ADOdb. To be compatible with the HRM it should be one of 'mysql' or 'postgresql'. |
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
getPostMaxSizeFromConfig( string $unit = 'M' )
Max allowed size for an HTTP post as set in the HRM configuration files. |
public static
string
|
|
public static
string
|
#
isDownloadEnabledFromConfig( )
Returns the status of file downloads through HTTP as set in the HRM configuration. |
public static
string
|
#
isUploadEnabledFromConfig( )
Returns the status of file uploads through HTTP as set in the HRM configuration. |
public static
string
|
|
public static
string
|
#
isUploadEnabled( )
Returns the status of file uploads through HTTP as set in php.ini and the HRM configuration. |
public static
string
|
#
isUploadMaxFileSizeFromIni( string $unit = 'M' )
Max allowed size for a file upload as set in php.ini |
public static
string
|
#
isUploadMaxFileSizeFromConfig( string $unit = 'M' )
Max allowed size for a file upload as set in the HRM configuration files. |
public static
string
|
|
public static
string
|
Constants summary
integer |
HRM_VERSION_MAJOR
Current HRM major version. This value has to be set by the developers! |
#
3
|
integer |
HRM_VERSION_MINOR
Current HRM minor version. This value has to be set by the developers! |
#
4
|
integer |
HRM_VERSION_MAINTENANCE
Current HRM maintenance (patch) version. This value has to be set by the developers! |
#
0
|
integer |
DB_LAST_REVISION
Database revision needed by current HRM version. This value has to be set by the developers! |
#
15
|
integer |
MIN_HUCORE_VERSION_MAJOR
Minimum HuCore (major) version number to be compatible with the HRM. This value has to be set by the developers! |
#
14
|
integer |
MIN_HUCORE_VERSION_MINOR
Minimum HuCore (minor) version number to be compatible with the HRM. This value has to be set by the developers! |
#
6
|
integer |
MIN_HUCORE_VERSION_MAINTENANCE
Minimum HuCore (maintenance) version number to be compatible with the HRM. This value has to be set by the developers! |
#
1
|
integer |
MIN_HUCORE_VERSION_PATCH
Minimum HuCore (patch) version number to be compatible with the HRM. This value has to be set by the developers! |
#
7
|