$name= path1
$key= key1
public static function getpath($name, $key)
{
if (!self::is_valid($name, $key)) return false;
$path = '/var/lib/fdata/'.$name.'/'.$key;
if (!is_file($path)) return false;
return $path;
}
public static function get($name, $key)
{
$path = self::getpath($name, $key);
if ($path === false) return false;
return file_get_contents($path);
}
$configmap = unserialize(fdata::get('base', 'key'));
質問は次のとおりです。
- 変数の場合
$path = self::getpath($name, $key);
、$ path =?そしてどういう意味ですかself::
- 変数の場合
$configmap = unserialize(fdata::get('base', 'key'));
、$ configmap =?そしてどういう意味ですかfdata::