Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
LibPhpini Class Reference
+ Collaboration diagram for LibPhpini:

Static Public Member Functions

static applyLimits ()
 
static setCoreApplication (\Application $coreApplication)
 

Static Public Attributes

static $coreApplication = null
 

Static Protected Member Functions

static applyLimit ($phpIniValueName, $dcpParameterName, $defaultValue, $infinityValue=0)
 
static getParam ($name, $defaultValue)
 
static return_bytes ($val)
 

Detailed Description

Definition at line 5 of file Lib.Phpini.php.

Member Function Documentation

static applyLimit (   $phpIniValueName,
  $dcpParameterName,
  $defaultValue,
  $infinityValue = 0 
)
staticprotected

Apply a limit to $phpIniValueName value by choosing "best" value between php.ini and CORE parameter $dcpParameterName

Parameters
string$phpIniValueNamename of the php.ini parameter
string$dcpParameterNamename of the core parameter containing dcp value
int$defaultValuedefault value for the core parameter if empty
int$infinityValueinfinity value (often -1 or 0)
Returns
array

Definition at line 37 of file Lib.Phpini.php.

+ Here is the call graph for this function:

static applyLimits ( )
static

Definition at line 12 of file Lib.Phpini.php.

static getParam (   $name,
  $defaultValue 
)
staticprotected

Definition at line 64 of file Lib.Phpini.php.

+ Here is the call graph for this function:

static return_bytes (   $val)
staticprotected

convert a php.ini value into bytes

Parameters
string | int$valthe value from php.ini with optional unit)
Returns
int

PhpMissingBreakStatementInspection

PhpMissingBreakStatementInspection

Definition at line 89 of file Lib.Phpini.php.

static setCoreApplication ( \Application  $coreApplication)
static
Parameters
\Application$coreApplication

Definition at line 22 of file Lib.Phpini.php.

Field Documentation

$coreApplication = null
static

Definition at line 10 of file Lib.Phpini.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen