Setting 클래스 변경. 해당 클래스에서 한국어명 등을 모두 관리.

- 해당 클래스를 참조하는 코드들 수정
This commit is contained in:
2018-03-25 17:56:07 +09:00
parent b7c03e5554
commit 7a34cc4089
8 changed files with 99 additions and 22 deletions
+10 -5
View File
@@ -8,14 +8,19 @@ if(!defined('ROOT')){
class AppConf{
private static $serverList = null;
/**
* 서버 설정 반환
*
* @return \sammo\Setting[]
*/
public static function getList(){
if(self::$serverList === null){
self::$serverList = [
'che'=>['체', 'white', new Setting(ROOT.'/che')],
'kwe'=>['퀘', 'yellow', new Setting(ROOT.'/kwe')],
'pwe'=>['풰', 'orange', new Setting(ROOT.'/pwe')],
'twe'=>['퉤', 'magenta', new Setting(ROOT.'/twe')],
'hwe'=>['훼', 'red', new Setting(ROOT.'/hwe')]
'che'=>new Setting(ROOT.'/che', '', 'white'),
'kwe'=>new Setting(ROOT.'/kwe', '퀘', 'yellow'),
'pwe'=>new Setting(ROOT.'/pwe', '풰', 'orange'),
'twe'=>new Setting(ROOT.'/twe', '퉤', 'magenta'),
'hwe'=>new Setting(ROOT.'/hwe', '', 'red')
];
}
return self::$serverList;