Setting 클래스들 접근 방법을 변경
-global 없이 사용가능 -isExist()를 isExists()로 변경
This commit is contained in:
+14
-7
@@ -17,10 +17,17 @@ define('MEMBER', 'member');
|
||||
define('MANAGE', 'manage');
|
||||
define('ICON', 'icon');
|
||||
|
||||
$serverList = [
|
||||
'che'=>['체', 'white', new _Setting(__DIR__.'/../che')],
|
||||
'kwe'=>['퀘', 'yellow', new _Setting(__DIR__.'/../kwe')],
|
||||
'pwe'=>['풰', 'orange', new _Setting(__DIR__.'/../pwe')],
|
||||
'twe'=>['퉤', 'magenta', new _Setting(__DIR__.'/../twe')],
|
||||
'hwe'=>['훼', 'red', new _Setting(__DIR__.'/../hwe')]
|
||||
];
|
||||
function getServerConfigList(){
|
||||
static $serverList = null;
|
||||
if($serverList !== null){
|
||||
return $serverList;
|
||||
}
|
||||
$serverList = [
|
||||
'che'=>['체', 'white', new _Setting(__DIR__.'/../che')],
|
||||
'kwe'=>['퀘', 'yellow', new _Setting(__DIR__.'/../kwe')],
|
||||
'pwe'=>['풰', 'orange', new _Setting(__DIR__.'/../pwe')],
|
||||
'twe'=>['퉤', 'magenta', new _Setting(__DIR__.'/../twe')],
|
||||
'hwe'=>['훼', 'red', new _Setting(__DIR__.'/../hwe')]
|
||||
];
|
||||
return $serverList;
|
||||
}
|
||||
Reference in New Issue
Block a user