芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/lib/Widget/PowerPoint.php
. */ namespace Xibo\Widget; class PowerPoint extends ModuleWidget { /** @inheritdoc */ public function edit() { $this->setDuration($this->getSanitizer()->getInt('duration', $this->getDuration())); $this->setUseDuration($this->getSanitizer()->getCheckbox('useDuration')); $this->setOption('name', $this->getSanitizer()->getString('name')); $this->setOption('enableStat', $this->getSanitizer()->getString('enableStat')); $this->saveWidget(); } /** * Javascript functions for the layout designer */ public function layoutDesignerJavaScript() { // We use the same javascript as the data set view designer return 'powerpoint-designer-javascript'; } /** @inheritdoc */ public function isValid() { // Client dependant return self::$STATUS_PLAYER; } /** @inheritdoc */ public function editForm() { return 'generic-form-edit'; } /** * Override previewAsClient * @param float $width * @param float $height * @param int $scaleOverride * @return string */ public function previewAsClient($width, $height, $scaleOverride = 0) { return $this->previewIcon(); } /** * Get Resource * @param int $displayId * @return mixed */ public function getResource($displayId = 0) { $this->download(); } }