芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/vendor/xibosignage/oauth2-xibo-cms/src/Entity/XiboSchedule.php
doGet($this->url2, $params); foreach ($response as $item) { $entries[] = clone $this->hydrate($item); } return $entries; } /** * @param $id * @return XiboSchedule * @throws XiboApiException */ public function getById($id) { $response = $this->doGet($this->url2, [ 'eventId' => $id ]); if (count($response) <= 0) throw new XiboApiException('Expecting a single record, found ' . count($response)); return clone $this->hydrate($response[0]); } /** * Create Campaign/Layout event * @param $eventTypeId * @param $fromDt * @param $toDt * @param $campaignId * @param $displaygroupIds * @param $dayPartId * @param $recurrenceType * @param $recurrenceDetail * @param $recurrenceRange * @param $displayOrder * @param $isPriority * @return XiboSchedule */ public function createEventLayout($fromDt, $toDt, $campaignId, $displaygroupIds, $dayPartId, $recurrenceType, $recurrenceDetail, $recurrenceRange, $displayOrder, $isPriority) { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->eventTypeId = 1; $this->fromDt = $fromDt; $this->toDt = $toDt; $this->campaignId = $campaignId; $this->displayGroupIds = $displaygroupIds; $this->dayPartId = $dayPartId; $this->recurrenceType = $recurrenceType; $this->recurrenceDetail = $recurrenceDetail; $this->recurrenceRange = $recurrenceRange; $this->displayOrder = $displayOrder; $this->isPriority = $isPriority; $response = $this->doPost('/schedule', $this->toArray()); return $this->hydrate($response); } /** * Create Command event * @param $eventTypeId * @param $fromDt * @param $commandId * @param $displaygroupIds * @param $recurrenceType * @param $recurrenceDetail * @param $recurrenceRange * @param $displayOrder * @param $isPriority * @return XiboSchedule */ public function createEventCommand($fromDt, $commandId, $displaygroupIds, $recurrenceType, $recurrenceDetail, $recurrenceRange, $displayOrder, $isPriority) { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->eventTypeId = 2; $this->fromDt = $fromDt; $this->commandId = $commandId; $this->displayGroupIds = $displaygroupIds; $this->recurrenceType = $recurrenceType; $this->recurrenceDetail = $recurrenceDetail; $this->recurrenceRange = $recurrenceRange; $this->displayOrder = $displayOrder; $this->isPriority = $isPriority; $response = $this->doPost('/schedule', $this->toArray()); return $this->hydrate($response); } /** * Create Overlay event * @param $eventTypeId * @param $fromDt * @param $toDt * @param $campaignId * @param $displaygroupIds * @param $dayPartId * @param $recurrenceType * @param $recurrenceDetail * @param $recurrenceRange * @param $displayOrder * @param $isPriority * @return XiboSchedule */ public function createEvetOverlay($fromDt, $toDt, $campaignId, $displaygroupIds, $dayPartId, $recurrenceType, $recurrenceDetail, $recurrenceRange, $displayOrder, $isPriority) { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->eventTypeId = 3; $this->fromDt = $fromDt; $this->toDt = $toDt; $this->campaignId = $campaignId; $this->displayGroupIds = $displaygroupIds; $this->dayPartId = $dayPartId; $this->recurrenceType = $recurrenceType; $this->recurrenceDetail = $recurrenceDetail; $this->recurrenceRange = $recurrenceRange; $this->displayOrder = $displayOrder; $this->isPriority = $isPriority; $response = $this->doPost('/schedule', $this->toArray()); return $this->hydrate($response); } /** * Edit * @param $eventTypeId * @param $fromDt * @param $toDt * @param $campaignId * @param $commandId * @param $displaygroupIds * @param $dayPartId * @param $recurrenceType * @param $recurrenceDetail * @param $recurrenceRange * @param $displayOrder * @param $isPriority * @return XiboSchedule */ public function edit($eventTypeId, $fromDt, $toDt, $campaignId,$commandId, $displaygroupIds, $dayPartId, $recurrenceType, $recurrenceDetail, $recurrenceRange, $displayOrder, $isPriority) { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->eventTypeId = $eventTypeId; $this->fromDt = $fromDt; $this->toDt = $toDt; $this->campaignId = $campaignId; $this->commandId = $commandId; $this->displayGroupIds = $displaygroupIds; $this->dayPartId = $dayPartId; $this->recurrenceType = $recurrenceType; $this->recurrenceDetail = $recurrenceDetail; $this->recurrenceRange = $recurrenceRange; $this->displayOrder = $displayOrder; $this->isPriority = $isPriority; $response = $this->doPut('/schedule/' . $this->eventId, $this->toArray()); return $this->hydrate($response); } /** * Delete * @return bool */ public function delete() { $this->doDelete('/schedule/' . $this->eventId); return true; } }