<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class File extends AbstractField { const MODE_DEFAULT = 'default'; const MODE_RAW = 'raw'; protected function setup() { $this->addVariables(array('category' => 'file', 'mode' => self::MODE_DEFAULT, 'server' => modstart_admin_url('data/file_manager/file'))); } public function server($YSNPl) { $this->addVariables(array('server' => $YSNPl)); return $this; } public function mode($TaJ4B) { $this->addVariables(array('mode' => $TaJ4B)); return $this; } }