_Setting, _String, _Time 클래스 재 명명
- autoload로 변환
This commit is contained in:
1 parent
a3f83d1e95
commit
002f9ba6cf
32 files changed
+109
-360
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
class Setting {
|
||||
private $basepath;
|
||||
private $settingFile;
|
||||
private $exist = false;
|
||||
|
||||
public function __construct($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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user