<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Values extends AbstractField { protected $width = 300; protected $listable = false; protected function setup() { $this->addVariables(array('viewMode' => 'default')); } public function viewMode($qL2Is) { $this->addVariables(array('viewMode' => $qL2Is)); return $this; } public function viewModeMini() { return $this->viewMode('mini'); } public function unserializeValue($gwXrh, AbstractField $VWt5t) { goto VmQOn; VZ5G5: if (empty($gwXrh)) { $gwXrh = array(); } goto TpHH2; TpHH2: return $gwXrh; goto rH0vC; pzCdG: $gwXrh = @json_decode($gwXrh, true); goto VZ5G5; VmQOn: if (null === $gwXrh) { return $gwXrh; } goto pzCdG; rH0vC: } public function serializeValue($gwXrh, $uV19D) { return json_encode($gwXrh, JSON_UNESCAPED_UNICODE); } public function prepareInput($gwXrh, $uV19D) { goto y78uP; y78uP: $gwXrh = @json_decode($gwXrh, true); goto ltc4Y; HJYTF: return $gwXrh; goto dIrJZ; ltc4Y: if (empty($gwXrh)) { $gwXrh = array(); } goto HJYTF; dIrJZ: } }