1: <?php
2:
3: /**
4: * This file is part of the Nette Framework.
5: *
6: * Copyright (c) 2004, 2010 David Grudl (http://davidgrudl.com)
7: *
8: * This source file is subject to the "Nette license", and/or
9: * GPL license. For more information please see http://nette.org
10: * @package Nette\Config
11: */
12:
13:
14:
15: /**
16: * Adapter for reading and writing configuration files.
17: *
18: * @author David Grudl
19: */
20: interface IConfigAdapter
21: {
22:
23: /**
24: * Reads configuration from file.
25: * @param string file name
26: * @param string section to load
27: * @return array
28: */
29: static function load($file, $section = NULL);
30:
31: /**
32: * Writes configuration to file.
33: * @param NConfig to save
34: * @param string file
35: * @param string section name
36: * @return void
37: */
38: static function save($config, $file, $section = NULL);
39:
40: }
41: