<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Exception\BizException; class JsonKeyValue extends AbstractField { protected $width = 200; public function unserializeValue($FT9zA, AbstractField $SQ6_6) { return @json_decode($FT9zA, true); } public function serializeValue($FT9zA, $TAWWJ) { return json_encode($FT9zA, JSON_UNESCAPED_UNICODE); } public function prepareInput($FT9zA, $TAWWJ) { goto WmX0W; TjlUU: return $c8Hgd; goto GUxzK; WmX0W: $c8Hgd = @json_decode($FT9zA, true); goto FxfGD; FxfGD: BizException::throwsIf($this->label . ' ' . L('Json Format Error'), $FT9zA && null === $c8Hgd); goto TjlUU; GUxzK: } }