<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Edm\Type; use ModStart\Core\Type\BaseType; class EdmRandomType implements BaseType { const IMAGE = 1; const TEXT = 2; const RICH = 3; public static function getList() { return array(self::IMAGE => '图片', self::TEXT => '文字', self::RICH => '富文本'); } public static function convertFromText($zTlk4) { switch ($zTlk4) { case 'image': return self::IMAGE; case 'text': return self::TEXT; case 'rich': return self::RICH; } return null; } }