mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-06 21:50:39 +08:00
34 lines
530 B
PHP
Executable File
34 lines
530 B
PHP
Executable File
<?php
|
|
|
|
require_once APPPATH . '/libraries/storage/disk.php';
|
|
|
|
class Storage {
|
|
|
|
public $name;
|
|
|
|
public static function factory($name)
|
|
{
|
|
$ci =& get_instance();
|
|
$ci->load->config('storage');
|
|
$type = $ci->config->item('storage_type');
|
|
|
|
$type = strtolower($type);
|
|
|
|
return new Storage_Disk($name);
|
|
}
|
|
|
|
public function __construct($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
function writeFile($content, $path)
|
|
{
|
|
}
|
|
|
|
function removeFile($path)
|
|
{
|
|
}
|
|
|
|
}
|