cakephp / 2.10.3 / class-configreaderinterface.html /

Interface ConfigReaderInterface

An interface for creating objects compatible with Configure::load()

Direct Implementers

Package: Cake\ Core
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Configure/ConfigReaderInterface.php

Method Summary

  • dump() public
    Dumps the configure data into source.
  • read() public

    Read method is used for reading configuration information from sources. These sources can either be static resources like files, or dynamic ones like a database, or other datasource.

Method Detail

dump()source public

dump( string $key , array $data )

Dumps the configure data into source.

Parameters

string $key
The identifier to write to.
array $data
The data to dump.

Returns

boolean
True on success or false on failure.

read()source public

read( string $key )

Read method is used for reading configuration information from sources. These sources can either be static resources like files, or dynamic ones like a database, or other datasource.

Parameters

string $key
Key to read.

Returns

array
An array of data to merge into the runtime configuration

© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/class-ConfigReaderInterface.html