<?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($P6Nu0) { $this->addVariables(array('server' => $P6Nu0)); return $this; } public function mode($bJtEU) { $this->addVariables(array('mode' => $bJtEU)); return $this; } public function unserializeValue($Gttsd, AbstractField $acdQI) { if (null === $Gttsd) { return $Gttsd; } return ConvertUtil::toArray($Gttsd); } public function serializeValue($Gttsd, $BWo2e) { return json_encode($Gttsd); } public function prepareInput($Gttsd, $BWo2e) { return ConvertUtil::toArray($Gttsd); } }