芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/cms.mgaplay.com.br/vendor/xibosignage/oauth2-xibo-cms/src/Entity/XiboPdf.php
. */ namespace Xibo\OAuth2\Client\Entity; use Xibo\OAuth2\Client\Exception\XiboApiException; class XiboPdf extends XiboWidget { /** @var int The Widget ID */ public $widgetId; /** @var int The Playlist ID */ public $playlistId; /** @var int The Owner ID */ public $ownerId; /** @var string The Widget Type */ public $type; /** @var int The Widget Duration */ public $duration; /** @var int The Display Order of the Widget */ public $displayOrder; /** @var int Flag indicating whether to use custom duration */ public $useDuration; /** @var string Optional Widget Name */ public $name; /** * Edit the PDF widget. * * @param string $name Optional widget name * @param int $duration Widget duration * @param int $useDuration Flag indicating whether to use custom duration * @param int $widgetId Widget ID * @param string $enableStat The settings to enable the collection of Proof of Play statistics, available options: ON, Off, Inherit * @return XiboPdf */ public function edit($name, $duration, $useDuration, $widgetId, $enableStat = '') { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->name = $name; $this->duration = $duration; $this->useDuration = $useDuration; $this->widgetId = $widgetId; $this->enableStat = $enableStat; $this->getLogger()->info('Editing PDF widget ID ' . $widgetId); $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray()); return $this->hydrate($response); } /** * Delete the widget. * */ public function delete() { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->getLogger()->info('Deleting widget ID ' . $this->widgetId); $this->doDelete('/playlist/widget/' . $this->widgetId , $this->toArray()); return true; } }