Documentation

FileConfiguration

Table of Contents

Properties

$configs  : array<string, array<string|int, mixed>>

Methods

configurationFileExists()  : bool
Checks for the existence of a file with the given filename
getConfigurationFromFileName()  : array<string|int, mixed>
Retrieves a config array by its corresponding filename
loadConfigurationFile()  : void
Loads and parses a php ini file into an array keyed by ini sections

Properties

$configs

private array<string, array<string|int, mixed>> $configs = []

An array of configuration arrays

Methods

configurationFileExists()

Checks for the existence of a file with the given filename

protected configurationFileExists(string $configurationFileName) : bool
Parameters
$configurationFileName : string

The name of the file without extension or path

Return values
bool

getConfigurationFromFileName()

Retrieves a config array by its corresponding filename

protected getConfigurationFromFileName(string $configurationFileName) : array<string|int, mixed>
Parameters
$configurationFileName : string

The name of the file without extension or path

Return values
array<string|int, mixed>

loadConfigurationFile()

Loads and parses a php ini file into an array keyed by ini sections

private loadConfigurationFile(string $configurationFileName) : void
Parameters
$configurationFileName : string

The name of the file without extension or path


        
On this page

Search results