(Yaf >=1.0.0)
Yaf_Config_Ini::readonly — Check if configuration is read-only
Checks whether the configuration is read-only. Yaf_Config_Ini is always read-only.
This function has no parameters.
Always returns true.
Example #1 Yaf_Config_Ini::readonly() example
<?php
$config = new Yaf_Config_Ini('/etc/myapp/application.ini', 'common');
// Yaf_Config_Ini is always read-only
var_dump($config->readonly());
// Attempts to write are rejected (and a warning is emitted)
var_dump($config->set('version', '2.0'));
?>The above example will output something similar to:
bool(true) bool(false)