PhpIni
extends Rule
in package
Prüft, ob ein Wert in der php.ini richtig gesetzt wurde.
Tags
Table of Contents
Constants
- EQUAL = '='
- gleich
- GREATER = '>'
- größer
- GREATERTHANOREQUAL = '>='
- Größer als
- LESS = '<'
- kleiner
- LESSTHANOREQUAL = '<='
- Kleiner als
Properties
- $expected : string
- $key : string
- $operation : string
Methods
- __construct() : mixed
- Erstellt eine neue Regel, die Einstelungen in der php.ini prüft.
- check() : void
- Prüffunktion
Constants
EQUAL
gleich
public
mixed
EQUAL
= '='
GREATER
größer
public
mixed
GREATER
= '>'
GREATERTHANOREQUAL
Größer als
public
mixed
GREATERTHANOREQUAL
= '>='
LESS
kleiner
public
mixed
LESS
= '<'
LESSTHANOREQUAL
Kleiner als
public
mixed
LESSTHANOREQUAL
= '<='
Properties
$expected
protected
string
$expected
= null
Erwarteter Wert
$key
protected
string
$key
= null
Schlüssel in der php.ini
$operation
protected
string
$operation
= null
Operator
Methods
__construct()
Erstellt eine neue Regel, die Einstelungen in der php.ini prüft.
public
__construct(string $key, mixed $expected[, mixed $operation = PhpIni::EQUAL ]) : mixed
Der Typ des erwarteten Wertes ist wichtig, da hier bei der Prüfung anhand des erwarteten Typs eine Prüfung durchgeführt wird.
Parameters
- $key : string
-
Schlüssel aus der php.ini
- $expected : mixed
-
Erwarteter Wert und Typ
- $operation : mixed = PhpIni::EQUAL
check()
Prüffunktion
public
check() : void
Prüffunktion, ob die Regel erfüllt ist. Wird als erwarteter Wert ein boolean übergeben, so kann als gesetzter Wert On, true, 1 konfiguriert sein.