<?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($Mczr_, AbstractField $rZfgs) { return @json_decode($Mczr_, true); } public function serializeValue($Mczr_, $vn_cr) { return SerializeUtil::jsonEncode($Mczr_); } public function prepareInput($Mczr_, $vn_cr) { goto zdIwb; OUwr0: BizException::throwsIf($this->label . ' ' . L('Json Format Error'), $Mczr_ && null === $mpJUG); goto lChol; lChol: return $mpJUG; goto w4nx3; zdIwb: $mpJUG = @json_decode($Mczr_, true); goto OUwr0; w4nx3: } }