<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Audio extends AbstractField { const MODE_DEFAULT = 'default'; const MODE_RAW = 'raw'; protected $width = 80; protected function setup() { $this->addVariables(array('previewPlay' => false, 'category' => 'audio', 'mode' => self::MODE_DEFAULT, 'server' => modstart_admin_url('data/file_manager/audio'))); } public function previewPlay($uQg0u) { goto aZggS; aZggS: $this->addVariables(array('previewPlay' => $uQg0u)); goto cLvyF; Raru1: return $this; goto gp4oE; cLvyF: if ($uQg0u) { $this->width = 400; } goto Raru1; gp4oE: } public function server($RlLfN) { $this->addVariables(array('server' => $RlLfN)); return $this; } public function mode($qOE89) { $this->addVariables(array('mode' => $qOE89)); return $this; } }