<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Input\Response; use ModStart\Data\DataManager; class FileTemp extends AbstractField { protected $width = 80; protected static $js = array('asset/common/uploadButton.js'); protected function setup() { $this->addVariables(array('autoSave' => true, 'server' => modstart_admin_url('data/file_manager/file'))); } public function server($vhuku) { $this->addVariables(array('server' => $vhuku)); return $this; } public function autoSave($FT9zA) { $this->addVariables(array('autoSave' => $FT9zA)); return $this; } public function prepareInput($FT9zA, $TAWWJ) { if (!empty($this->variables['autoSave']) && DataManager::isDataTemp($FT9zA)) { goto iL_sM; NdvcE: return DataManager::fix($JOw_A['data']['path']); goto i2Bl2; jJOAx: if (Response::isError($JOw_A)) { return $FT9zA; } goto NdvcE; iL_sM: $JOw_A = DataManager::storeTempDataByPath($FT9zA); goto jJOAx; i2Bl2: } return $FT9zA; } }