1 | <?php |
||
10 | class Config |
||
11 | { |
||
12 | protected $path; |
||
13 | protected $options; |
||
14 | |||
15 | /** |
||
16 | * Constructor |
||
17 | * |
||
18 | * @param string $path The full path to a writeable directory, with or |
||
19 | * without a trailing slash. |
||
20 | * @param array $options Any other configuration options. |
||
21 | */ |
||
22 | 38 | public function __construct($path, array $options = array()) |
|
36 | |||
37 | /** |
||
38 | * Gets the path set during initialisation |
||
39 | * |
||
40 | * @return string The full file path, with no trailing slash. |
||
41 | */ |
||
42 | 33 | public function getPath() |
|
46 | |||
47 | /** |
||
48 | * Gets a specific option from the config |
||
49 | * |
||
50 | * @param string $name The name of the option to return. |
||
51 | * |
||
52 | * @return mixed The value of the option if it exists or null if it doesnt. |
||
53 | */ |
||
54 | 37 | public function getOption($name) |
|
58 | |||
59 | 38 | public function hasAPC() |
|
63 | } |
||
64 |