芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/sommatv/lib/Entity/WidgetAudio.php
setCommonDependencies($store, $log); } /** * Get Id * @return int */ public function getId() { return $this->mediaId; } /** * Save this widget audio */ public function save() { $sql = ' INSERT INTO `lkwidgetaudio` (widgetId, mediaId, `volume`, `loop`) VALUES (:widgetId, :mediaId, :volume, :loop) ON DUPLICATE KEY UPDATE volume = :volume, `loop` = :loop '; $this->getStore()->insert($sql, array( 'widgetId' => $this->widgetId, 'mediaId' => $this->mediaId, 'volume' => $this->volume, 'loop' => $this->loop )); } /** * Delete this widget audio */ public function delete() { $this->getStore()->update(' DELETE FROM `lkwidgetaudio` WHERE widgetId = :widgetId AND mediaId = :mediaId ', [ 'widgetId' => $this->widgetId, 'mediaId' => $this->mediaId ]); } }