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