Time2Configure

Interpolation

FinalYes

Inside a configuration, a compiled value is automatically promoted to an interpolation value containing the base value and its compilation.

The interpolation mecanism implies that a stored value in a configuration may be either the base value set by the user, or an interpolation of its base value. An interpolation stores itself the base value and its compilation that, if executed, return an interpolated value.

By default, the behaviour of accessing an interpolation is to execute the compilation to return the interpolated value. Nevertheless, it can be usefull to be able to access to the base value, or to the interpolation value itself. That is for this purpose that the ReadingMode enum exists. Every base access method of BaseConfiguration takes the reading mode as a parameter to choose which value to return.

Tags
author

Olivier Rodriguez (zuri)

template

V

see
Interpolator

Table of Contents

Properties

$baseValue  : V
$compilation  : mixed

Properties

$baseValue read-only

public V $baseValue

The base value before it was compiled.

$compilation read-only

public mixed $compilation

The compilation made by an interpolator.


        
On this page

Search results