<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Exception\BizException; use ModStart\Core\Util\SerializeUtil; class JsonKeyValue extends AbstractField { protected $width = 200; public function unserializeValue($cBDsM, AbstractField $Ldet7) { return @json_decode($cBDsM, true); } public function serializeValue($cBDsM, $GMqtO) { return SerializeUtil::jsonEncode($cBDsM); } public function prepareInput($cBDsM, $GMqtO) { goto gFGx7; v_EQb: return $fgYNs; goto qDEwV; AHEAr: BizException::throwsIf($this->label . ' ' . L('Json Format Error'), $cBDsM && null === $fgYNs); goto v_EQb; gFGx7: $fgYNs = @json_decode($cBDsM, true); goto AHEAr; qDEwV: } }