Yaf_Config_Abstract::readonly

(Yaf >=1.0.0)

Yaf_Config_Abstract::readonlyCheck if configuration is read-only

Açıklama

abstract public function Yaf_Config_Abstract::readonly(): bool

Checks whether the configuration is read-only. This method is abstract and must be implemented by subclasses.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns true if the configuration is read-only, false otherwise.

Örnekler

Örnek 1 Yaf_Config_Abstract::readonly() example

<?php
$ini = new Yaf_Config_Ini('/etc/myapp/application.ini', 'common');
var_dump($ini->readonly()); // Yaf_Config_Ini is always read-only

$writable = new Yaf_Config_Simple(['env' => 'development']);
var_dump($writable->readonly());

$frozen = new Yaf_Config_Simple(['env' => 'development'], true);
var_dump($frozen->readonly());
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

bool(true)
bool(false)
bool(true)

Ayrıca Bakınız

add a note

User Contributed Notes

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