Open Journal Systems  3.3.0
RuntimeEnvironment Class Reference

Public Member Functions

 __construct ($phpVersionMin=PHP_REQUIRED_VERSION, $phpVersionMax=null, $phpExtensions=array(), $externalPrograms=array())
 
 getExternalPrograms ()
 
 getPhpExtensions ()
 
 getPhpVersionMax ()
 
 getPhpVersionMin ()
 
 isCompatible ()
 

Data Fields

 $_externalPrograms
 
 $_phpExtensions
 
 $_phpVersionMax
 
 $_phpVersionMin
 

Detailed Description

Class that describes a runtime environment.

Definition at line 16 of file RuntimeEnvironment.inc.php.

Constructor & Destructor Documentation

◆ __construct()

RuntimeEnvironment::__construct (   $phpVersionMin = PHP_REQUIRED_VERSION,
  $phpVersionMax = null,
  $phpExtensions = array(),
  $externalPrograms = array() 
)

Definition at line 41 of file RuntimeEnvironment.inc.php.

Member Function Documentation

◆ getExternalPrograms()

RuntimeEnvironment::getExternalPrograms ( )

Get the required external programs

Returns
array

Definition at line 79 of file RuntimeEnvironment.inc.php.

References $_externalPrograms.

◆ getPhpExtensions()

RuntimeEnvironment::getPhpExtensions ( )

Get the required PHP extensions

Returns
array

Definition at line 71 of file RuntimeEnvironment.inc.php.

References $_phpExtensions.

◆ getPhpVersionMax()

RuntimeEnvironment::getPhpVersionMax ( )

Get the max required PHP version

Returns
string

Definition at line 63 of file RuntimeEnvironment.inc.php.

References $_phpVersionMax.

◆ getPhpVersionMin()

RuntimeEnvironment::getPhpVersionMin ( )

Get the min required PHP version

Returns
string

Definition at line 55 of file RuntimeEnvironment.inc.php.

References $_phpVersionMin.

◆ isCompatible()

RuntimeEnvironment::isCompatible ( )

Checks whether the current runtime environment is compatible with the specified parameters.

Returns
boolean

Definition at line 92 of file RuntimeEnvironment.inc.php.

References checkPhpVersion(), and Config\getVar().

Field Documentation

◆ $_externalPrograms

array RuntimeEnvironment::$_externalPrograms

Definition at line 39 of file RuntimeEnvironment.inc.php.

Referenced by getExternalPrograms().

◆ $_phpExtensions

array RuntimeEnvironment::$_phpExtensions

Definition at line 33 of file RuntimeEnvironment.inc.php.

Referenced by getPhpExtensions().

◆ $_phpVersionMax

string RuntimeEnvironment::$_phpVersionMax

Definition at line 27 of file RuntimeEnvironment.inc.php.

Referenced by getPhpVersionMax().

◆ $_phpVersionMin

string RuntimeEnvironment::$_phpVersionMin

Definition at line 21 of file RuntimeEnvironment.inc.php.

Referenced by getPhpVersionMin().


The documentation for this class was generated from the following file: