Files
core/f_func/class._Setting.php
T

38 lines
736 B
PHP

<?php
require_once('_common.php');
class _Setting {
private $basepath;
private $settingFile;
private $exist = 0;
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 = 1;
}
}
public function isExist() {
return $this->exist;
}
public function getShortName(){
return basename($this->basepath);
}
public function getBasePath(){
return $this->basepath;
}
public function getSettingFile() {
return $this->settingFile;
}
}