\CodeIgniter\ConfigView

View configuration

Not intended to be used on its own, this class will attempt to automatically populate the child class' properties with values from the environment.

These can be set within the .env file.

Summary

Methods
Properties
Constants
__construct()
$registrars
No constants found
initEnvValue()
getEnvValue()
registerProperties()
$didDiscovery
$moduleConfig
$coreFilters
$corePlugins
N/A
No private methods found
No private properties found
N/A

Properties

$registrars

$registrars : array

An optional array of classes that will act as Registrars for rapidly setting config class properties.

Type

array

$didDiscovery

$didDiscovery : boolean

Has module discovery happened yet?

Type

boolean

$moduleConfig

$moduleConfig : \CodeIgniter\Config\type

The modules configuration.

Type

\CodeIgniter\Config\type

$coreFilters

$coreFilters : \CodeIgniter\Config\type

Built-in View filters.

Type

\CodeIgniter\Config\type

$corePlugins

$corePlugins : \CodeIgniter\Config\type

Built-in View plugins.

Type

\CodeIgniter\Config\type

Methods

__construct()

__construct() 

Constructor.

Merge the built-in and developer-configured filters and plugins, with preference to the developer ones.

initEnvValue()

initEnvValue(  $property, string  $name, string  $prefix, string  $shortPrefix) : mixed

Initialization an environment-specific configuration setting

Parameters

$property
string $name
string $prefix
string $shortPrefix

Returns

mixed

getEnvValue()

getEnvValue(string  $property, string  $prefix, string  $shortPrefix) : mixed

Retrieve an environment-specific configuration setting

Parameters

string $property
string $prefix
string $shortPrefix

Returns

mixed

registerProperties()

registerProperties() 

Provides external libraries a simple way to register one or more options into a config file.

Throws

\ReflectionException