<?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($zo4s9) { $this->addVariables(array('viewMode' => $zo4s9)); return $this; } public function viewModeMini() { return $this->viewMode('mini'); } public function unserializeValue($Gttsd, AbstractField $acdQI) { goto OzJOn; T05AB: $Gttsd = @json_decode($Gttsd, true); goto nGYm7; OzJOn: if (null === $Gttsd) { return $Gttsd; } goto T05AB; p2p2B: return $Gttsd; goto Yo30S; nGYm7: if (empty($Gttsd)) { $Gttsd = array(); } goto p2p2B; Yo30S: } public function serializeValue($Gttsd, $BWo2e) { return json_encode($Gttsd, JSON_UNESCAPED_UNICODE); } public function prepareInput($Gttsd, $BWo2e) { goto jIZga; s9XH5: if (empty($Gttsd)) { $Gttsd = array(); } goto WSz20; WSz20: return $Gttsd; goto aLtle; jIZga: $Gttsd = @json_decode($Gttsd, true); goto s9XH5; aLtle: } }