4.6. Opl_Registry class
4.6.5. setState()
4.6.4. register()
« Previous
4.7. Opl_Translation_Interface
Next »

4.6.5. setState()

ConstructStatic method
Visibilitypublic
Referencevoid Opl_Registry::setState( string $name, mixed $value )
Argument list
$name - string
The new state name
$value - mixed
The state value
Versionssince 2.0.0-dev7

Stores the specified scalar $value (string, integer, boolean etc.) under the $name. This is used also as a global OPL configuration utility:

Opl_Registry::setState('foo', 'value');
echo Opl_Registry::getState('foo');

See also:

4.6.5. setState()
4.6. Opl_Registry class
« Previous
4.6.4. register()
Next »
4.7. Opl_Translation_Interface