首页›文件与媒体›FileDriver 高层封装
FileDriver 高层封装
Kuoqi\FileDriver(329 行):下载/输出/转码/另存
本页内容
- 方法清单
- 已知缺陷
方法清单
| 方法 | 签名 | 说明 |
|---|---|---|
copyFromfile | copyFromfile($filename) | 从文件复制 |
download | download($filename="") | Code200 响应头输出附件下载 |
flushTofile | flushTofile() | 内容刷入文件 |
readAsconfig | readAsconfig() | 读为 ConfigFiledriver |
readAsphp | readAsphp($args,$isOnce=false) | include 渲染捕获输出 |
readAsJson | readAsJson() | 读为 JSON 数组 |
saveAs | saveAs($nfile) | 另存为 |
toImage | toImage() | 转为 Image 对象(空基类) |
toJpgSource/toPngSource/toWebpSource | () | GD 资源 |
toWebp | toWebp() | 转 WebP |
formatBytes | formatBytes($bytes) | 字节格式化 |
已知缺陷
readAscss/readAsmp4/readAsjs 引用不存在的 Reader 类;downloadWithRetry 内部调用 downloadLargeFile 未加 self::(PHP 会当未定义函数报错)。
KuoqiPHP v1.05 · 离线静态文档 · 界面基于 KuoqiUI ·
返回首页