- 4.6. Opl_Registry class
4.6.5. setState() - 4.6.4. register()
« Previous - 4.7. Opl_Translation_Interface
Next »
4.6.5. setState()
| Construct | Static method |
|---|---|
| Visibility | public |
| Reference | void Opl_Registry::setState( string $name, mixed $value ) |
| Argument list |
|
| Versions | since 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