Yaf_Config_Ini::readonly

(Yaf >=1.0.0)

Yaf_Config_Ini::readonlyCheck if configuration is read-only

Опис

public function Yaf_Config_Ini::readonly(): bool

Checks whether the configuration is read-only. Yaf_Config_Ini is always read-only.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Always returns true.

Приклади

Приклад #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'));
?>

Поданий вище приклад виведе щось схоже на:

bool(true)
bool(false)

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top