<?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($Xr2W1) { $this->addVariables(array('viewMode' => $Xr2W1)); return $this; } public function viewModeMini() { return $this->viewMode('mini'); } public function unserializeValue($wvO30, AbstractField $Lgjfa) { goto P0ivo; cpSGr: if (empty($wvO30)) { $wvO30 = array(); } goto eryVz; P0ivo: if (null === $wvO30) { return $wvO30; } goto AJCC9; AJCC9: $wvO30 = @json_decode($wvO30, true); goto cpSGr; eryVz: return $wvO30; goto eAOG9; eAOG9: } public function serializeValue($wvO30, $w5oww) { return json_encode($wvO30, JSON_UNESCAPED_UNICODE); } public function prepareInput($wvO30, $w5oww) { goto iiHPC; tpnrT: return $wvO30; goto q3rm2; dsgJ4: if (empty($wvO30)) { $wvO30 = array(); } goto tpnrT; iiHPC: $wvO30 = @json_decode($wvO30, true); goto dsgJ4; q3rm2: } }