RSI helpers  0.1
RSI helpers
Rsi Class Reference

Static Public Member Functions

static commandLine ()
 Check if PHP is run from the command line. More...
 
static windows ()
 Check wether we are running on a Windows machine. More...
 
static parseArgs ()
 Simple command line argument parser. More...
 
static version ($version)
 Check PHP version. More...
 
static memoryLimit ()
 Script memory limit. More...
 
static nothing ($value)
 Check if a value is empty. More...
 

Detailed Description

Definition at line 3 of file Rsi.php.

Member Function Documentation

◆ commandLine()

static commandLine ( )
static

Check if PHP is run from the command line.

Returns
bool

Definition at line 9 of file Rsi.php.

◆ memoryLimit()

static memoryLimit ( )
static

Script memory limit.

Returns
int Maximum number of bytes.

Definition at line 51 of file Rsi.php.

◆ nothing()

static nothing (   $value)
static

Check if a value is empty.

Parameters
mixed$value
Returns
bool True when empty.

Definition at line 59 of file Rsi.php.

◆ parseArgs()

static parseArgs ( )
static

Simple command line argument parser.

Supports values of form key=value (value is true when omitted). When the same key is encountered multiple times an array will be returned.

Returns
array Assoc.array with the key=value pairs from the command line arguments.

Definition at line 25 of file Rsi.php.

◆ version()

static version (   $version)
static

Check PHP version.

Parameters
string$versionVersion to compare to.
Returns
bool True if the current PHP-version is greater or equal than the provided version.

Definition at line 44 of file Rsi.php.

◆ windows()

static windows ( )
static

Check wether we are running on a Windows machine.

Returns
bool

Definition at line 16 of file Rsi.php.


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