<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Data; use Illuminate\Support\Str; use ModStart\Core\Type\BaseType; class DataStorageType implements BaseType { private static $list = array('DataFile' => '本地存储'); public static function register($sQIr6, $g3XgV) { self::$list[$sQIr6] = $g3XgV; } public static function getList() { return self::$list; } public static function toDriverName($sQIr6) { if (!Str::startsWith($sQIr6, 'Data')) { $sQIr6 = 'Data' . $sQIr6; } return 'DataStorage_' . $sQIr6; } }