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