<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Values extends AbstractField { protected $value = array(); protected $width = 300; protected $listable = false; protected function setup() { $this->addVariables(array('viewMode' => 'default')); } public function viewMode($gJAGa) { $this->addVariables(array('viewMode' => $gJAGa)); return $this; } public function viewModeMini() { return $this->viewMode('mini'); } public function unserializeValue($FT9zA, AbstractField $SQ6_6) { goto bSx0L; fWEBd: return $FT9zA; goto Bcki1; bSx0L: $FT9zA = @json_decode($FT9zA, true); goto eL_2c; eL_2c: if (empty($FT9zA)) { $FT9zA = array(); } goto fWEBd; Bcki1: } public function serializeValue($FT9zA, $TAWWJ) { return json_encode($FT9zA); } public function prepareInput($FT9zA, $TAWWJ) { goto xTObv; xTObv: $FT9zA = @json_decode($FT9zA, true); goto rPj8u; rPj8u: if (empty($FT9zA)) { $FT9zA = array(); } goto M3Tw3; M3Tw3: return $FT9zA; goto Rf0Zt; Rf0Zt: } }