<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Util\ConvertUtil; class Images extends AbstractField { protected $width = 80; protected function setup() { $this->addVariables(array('server' => modstart_admin_url('data/file_manager/image'))); } public function server($GBwzV) { $this->addVariables(array('server' => $GBwzV)); return $this; } public function unserializeValue($mdHu1, AbstractField $Mk6lP) { if (null === $mdHu1) { return $mdHu1; } return ConvertUtil::toArray($mdHu1); } public function serializeValue($mdHu1, $DRh9Q) { return json_encode($mdHu1); } public function prepareInput($mdHu1, $DRh9Q) { return ConvertUtil::toArray($mdHu1); } }