The Yaf_Config_Abstract class

(Yaf >=1.0.0)

Introduction

Yaf_Config_Abstract is the base class of the configuration adapters. It provides a uniform way to access a set of configuration values through nested property syntax ($config->section->key), array access and iteration. Concrete implementations are Yaf_Config_Ini (read-only, INI files with section inheritance) and Yaf_Config_Simple (PHP arrays, mutable).

Class synopsis

abstract class Yaf_Config_Abstract {
/* Properties */
protected $_config;
protected $_readonly;
/* Methods */
public function get(string $name = NULL): mixed
abstract public function readonly(): bool
abstract public function set(string $name, mixed $value): bool
public function toArray(): array
}

Properties

_config

_readonly

Table of Contents

add a note

User Contributed Notes

There are no user contributed notes for this page.