<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Res\Type; use ModStart\Core\Type\BaseType; class ResAssetFileType implements BaseType { const FILE = 1; const TEXT = 2; public static function getList() { return array(self::FILE => '本地上传', self::TEXT => '下载信息'); } public static function enabled() { goto MRF6Z; aCJJM: return $PcqTW; goto m2GxP; MRF6Z: $PcqTW = array(); goto ZIaCm; t23GY: foreach (self::getList() as $kEhTf => $y2Ltn) { if (in_array($kEhTf, $sB5xH)) { $PcqTW[$kEhTf] = $y2Ltn; } } goto aCJJM; ZIaCm: $sB5xH = modstart_config()->getArray('Res_AssetFileTypes', array()); goto t23GY; m2GxP: } public static function filter($Ub4by) { goto vxkD3; YlDwL: foreach (self::getList() as $kEhTf => $y2Ltn) { if (in_array($kEhTf, $Ub4by)) { $PcqTW[$kEhTf] = $y2Ltn; } } goto Kvalj; vxkD3: $PcqTW = array(); goto YlDwL; Kvalj: return $PcqTW; goto aS0Lt; aS0Lt: } public static function exists($ofwGA) { $K938W = self::getList(); return isset($K938W[$ofwGA]); } }