<?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($P9LI4) { $this->addVariables(array('viewMode' => $P9LI4)); return $this; } public function viewModeMini() { return $this->viewMode('mini'); } public function unserializeValue($ib3B9, AbstractField $pu1ro) { goto PvSiN; PvSiN: if (null === $ib3B9) { return $ib3B9; } goto KABau; b9s_3: if (empty($ib3B9)) { $ib3B9 = array(); } goto qgt2A; KABau: $ib3B9 = @json_decode($ib3B9, true); goto b9s_3; qgt2A: return $ib3B9; goto qIeHE; qIeHE: } public function serializeValue($ib3B9, $nzuw7) { return json_encode($ib3B9, JSON_UNESCAPED_UNICODE); } public function prepareInput($ib3B9, $nzuw7) { goto vjOqr; vjOqr: $ib3B9 = @json_decode($ib3B9, true); goto ghx8Q; ghx8Q: if (empty($ib3B9)) { $ib3B9 = array(); } goto Hd32W; Hd32W: return $ib3B9; goto zLci2; zLci2: } }