mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Configuration Base Class updated!
This commit is contained in:
parent
44e53ccc1b
commit
ac570213a5
5 changed files with 44 additions and 91 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue