<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Util\ConvertUtil; class Files extends AbstractField { const MODE_DEFAULT = 'default'; const MODE_RAW = 'raw'; protected $width = 80; protected function setup() { $this->addVariables(array('mode' => self::MODE_DEFAULT, 'server' => modstart_admin_url('data/file_manager/file'))); } public function server($J1_hF) { $this->addVariables(array('server' => $J1_hF)); return $this; } public function mode($ybhyk) { $this->addVariables(array('mode' => $ybhyk)); return $this; } public function unserializeValue($gwXrh, AbstractField $VWt5t) { if (null === $gwXrh) { return $gwXrh; } return ConvertUtil::toArray($gwXrh); } public function serializeValue($gwXrh, $uV19D) { return json_encode($gwXrh); } public function prepareInput($gwXrh, $uV19D) { return ConvertUtil::toArray($gwXrh); } }