Documentation

PhpIni extends Rule
in package

Prüft, ob ein Wert in der php.ini richtig gesetzt wurde.

Tags
category

Framework

author

schukai GmbH [email protected]

license

http://alvine.io/license/ Licence

link

Alvine

since
20130309

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

GREATERTHANOREQUAL

Größer als

public mixed GREATERTHANOREQUAL = '>='

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

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.

Tags
throws
DependencyException

Fehlende Abhängigkeit

Return values
void

        
On this page

Search results