| 1 | <?php |
||
| 19 | class config |
||
| 20 | { |
||
| 21 | 6 | public static function getConfiguration() |
|
| 22 | { |
||
| 23 | 6 | $context = \arc\context::$context; |
|
| 24 | 6 | if (!$context->arcConfig) { |
|
| 25 | 2 | $context->arcConfig = new config\Configuration( \arc\tree::expand()->cd( $context->arcPath ) ); |
|
| 26 | } |
||
| 27 | |||
| 28 | 6 | return $context->arcConfig; |
|
| 29 | } |
||
| 30 | |||
| 31 | 2 | public static function acquire($name, $path = null, $root = '/') |
|
| 35 | |||
| 36 | 2 | public static function configure($name, $value) |
|
| 40 | |||
| 41 | 4 | public static function cd($path) |
|
| 45 | |||
| 46 | public static function reset($config = null) { |
||
| 54 | } |
||
| 55 |