Configuration Base Class updated!

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-13 18:21:05 +01:00
parent 44e53ccc1b
commit ac570213a5
5 changed files with 44 additions and 91 deletions

View file

@ -156,8 +156,16 @@ class Config{
$this->config[$k] = $v;
}
public function getAll(){
return ($this->config);
public function exists($k){
return isset($this->config[$k]);
}
public function remove($k){
unset($this->config[$k]);
}
public function getAll($keys = false){
return ($keys === true ? array_keys($this->config):$this->config);
}
private function fillDefaults($default, &$data){