1 : <?php
2 : /**
3 : * This file is part of NoiseLabs-PHP-ToolKit
4 : *
5 : * NoiseLabs-PHP-ToolKit is free software; you can redistribute it
6 : * and/or modify it under the terms of the GNU Lesser General Public
7 : * License as published by the Free Software Foundation; either
8 : * version 3 of the License, or (at your option) any later version.
9 : *
10 : * NoiseLabs-PHP-ToolKit is distributed in the hope that it will be
11 : * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 : * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 : * Lesser General Public License for more details.
14 : *
15 : * You should have received a copy of the GNU Lesser General Public
16 : * License along with NoiseLabs-PHP-ToolKit; if not, see
17 : * <http://www.gnu.org/licenses/>.
18 : *
19 : * Copyright (C) 2011 Vítor Brandão <noisebleed@noiselabs.org>
20 : *
21 : *
22 : * @category NoiseLabs
23 : * @package ConfigParser
24 : * @version 0.1.1
25 : * @author Vítor Brandão <noisebleed@noiselabs.org>
26 : * @copyright (C) 2011 Vítor Brandão <noisebleed@noiselabs.org>
27 : */
28 :
29 : namespace NoiseLabs\ToolKit\ConfigParser;
30 :
31 : /**
32 : * The Interface for the ConfigParser class.
33 : */
34 1 : interface ConfigParserInterface
35 : {
36 : public function defaults();
37 :
38 : public function sections();
39 :
40 : public function addSection($section);
41 :
42 : public function hasSection($section);
43 :
44 : public function options($section);
45 :
46 : public function hasOption($section, $option);
47 :
48 : public function read($filenames = array());
49 :
50 : public function readFile($filehandler);
51 :
52 : public function readString($string);
53 :
54 : public function readArray(array $array);
55 :
56 : public function get($section, $option);
57 :
58 : public function getInt($section, $option);
59 :
60 : public function getFloat($section, $option);
61 :
62 : public function getBoolean($section, $option);
63 :
64 : public function set($section, $option, $value);
65 :
66 : public function write($filename);
67 :
68 : public function save();
69 :
70 : public function removeOption($section, $option);
71 :
72 : public function removeSection($section);
73 :
74 : public function dump();
75 : }
76 :
|