]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/config/ConfigIO.php
2b68fe6ab7b4af924371bf7b1403a0f39d2f784f
[github/shaarli/Shaarli.git] / application / config / ConfigIO.php
1 <?php
2
3 /**
4 * Interface ConfigIO
5 *
6 * This describes how Config types should store their configuration.
7 */
8 interface ConfigIO
9 {
10 /**
11 * Read configuration.
12 *
13 * @param string $filepath Config file absolute path.
14 *
15 * @return array All configuration in an array.
16 */
17 function read($filepath);
18
19 /**
20 * Write configuration.
21 *
22 * @param string $filepath Config file absolute path.
23 * @param array $conf All configuration in an array.
24 */
25 function write($filepath, $conf);
26
27 /**
28 * Get config file extension according to config type.
29 *
30 * @return string Config file extension.
31 */
32 function getExtension();
33 }