Files
core/f_func/class._Setting.php
T
Hide_D 1c4709ea65 Setting 클래스들 접근 방법을 변경
-global 없이 사용가능
-isExist()를 isExists()로 변경
2018-03-19 00:30:52 +09:00

38 lines
744 B
PHP

<?php
require_once('_common.php');
class _Setting {
private $basepath;
private $settingFile;
private $exist = false;
public function __construct($basepath) {
$basepath = realpath($basepath);
$this->basepath = $basepath;
$this->settingFile = realpath($basepath.'/d_setting/conf.php');
if(file_exists($this->settingFile)) {
$this->exist = true;
}
}
public function isExists() {
return $this->exist;
}
public function getShortName(){
return basename($this->basepath);
}
public function getBasePath(){
return $this->basepath;
}
public function getSettingFile() {
return $this->settingFile;
}
}