<?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($L1g9F, $IJdfw) { self::$list[$L1g9F] = $IJdfw; } public static function getList() { return self::$list; } public static function toDriverName($L1g9F) { if (!Str::startsWith($L1g9F, 'Data')) { $L1g9F = 'Data' . $L1g9F; } return 'DataStorage_' . $L1g9F; } }