/** * Storeから取得する * @param string $key キー名 * @return string */ public static function get($key) { $id = self::id($key); if (Object::C(__CLASS__)->has_module("store_get")) { return Object::C(__CLASS__)->call_module("store_get", $id); } $path = File::absolute(App::work("store"), $id); if (is_file($path)) { return File::gzread($path); } if (is_file($path . "_s")) { return unserialize(File::gzread($path . "_s")); } return null; }