<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class KeyValueList extends AbstractField { protected $value = array(); protected $width = 300; protected $listable = false; protected function setup() { $this->addVariables(array('keyLabel' => 'k', 'valueLabel' => 'v')); } public function keyLabel($kTbvg) { $this->addVariables(array('keyLabel' => $kTbvg)); return $this; } public function valueLabel($JY71Z) { $this->addVariables(array('valueLabel' => $JY71Z)); return $this; } public function unserializeValue($tzAUI, AbstractField $Q2vn5) { goto HfBOs; HfBOs: $tzAUI = @json_decode($tzAUI, true); goto o89I2; o89I2: if (empty($tzAUI)) { $tzAUI = array(); } goto iojlX; iojlX: return $tzAUI; goto luBsV; luBsV: } public function serializeValue($tzAUI, $pWRTh) { return json_encode($tzAUI); } public function prepareInput($tzAUI, $pWRTh) { goto tPaQM; tPaQM: $tzAUI = @json_decode($tzAUI, true); goto B8aCn; B8aCn: if (empty($tzAUI)) { $tzAUI = array(); } goto sGlBZ; sGlBZ: return $tzAUI; goto PBdJ7; PBdJ7: } }