芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/lib/Widget/Flash.php
. */ namespace Xibo\Widget; class Flash extends ModuleWidget { public function editForm() { return 'generic-form-edit'; } /** * Preview code for a module * @param int $width * @param int $height * @param int $scaleOverride The Scale Override * @return string The Rendered Content */ public function preview($width, $height, $scaleOverride = 0) { if ($this->module->previewEnabled == 0) return parent::preview($width, $height, $scaleOverride); $url = $this->getApp()->urlFor('module.getResource', ['regionId' => $this->region->regionId, 'id' => $this->getWidgetId()]); return '
'; } /** * Get Resource * @param int $displayId * @return mixed */ public function getResource($displayId = 0) { $this->download(); } /** * Is this module valid * @return int */ public function isValid() { // Yes return 1; } }