<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Image 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/image'))); } public function server($vhuku) { $this->addVariables(array('server' => $vhuku)); return $this; } public function mode($mmMF2) { $this->addVariables(array('mode' => $mmMF2)); return $this; } }