<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Util\SerializeUtil; class Values extends AbstractField { protected $width = 300; protected $listable = false; protected function setup() { $this->addVariables(array('viewMode' => 'default')); } public function viewMode($PpJLb) { $this->addVariables(array('viewMode' => $PpJLb)); return $this; } public function viewModeMini() { return $this->viewMode('mini'); } public function unserializeValue($HDpl6, AbstractField $E8QRJ) { goto QYUYN; QYUYN: if (null === $HDpl6) { return $HDpl6; } goto gf09D; Nx3S_: return $HDpl6; goto YsolT; gf09D: $HDpl6 = @json_decode($HDpl6, true); goto NtSJr; NtSJr: if (empty($HDpl6)) { $HDpl6 = array(); } goto Nx3S_; YsolT: } public function serializeValue($HDpl6, $xTADA) { return SerializeUtil::jsonEncode($HDpl6); } public function prepareInput($HDpl6, $xTADA) { goto JERIl; JERIl: $HDpl6 = @json_decode($HDpl6, true); goto hX2OB; hX2OB: if (empty($HDpl6)) { $HDpl6 = array(); } goto re2aY; re2aY: return $HDpl6; goto scHN0; scHN0: } }