芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/apv.mgaplay.com.br/vendor/xibosignage/oauth2-xibo-cms/src/Entity/XiboDaypart.php
doGet($this->url, $params); foreach ($response as $item) { $entries[] = clone $this->hydrate($item); } return $entries; } /** * @param $id * @return XiboDaypart * @throws XiboApiException */ public function getById($id) { $response = $this->doGet($this->url, [ 'dayPartId' => $id ]); if (count($response) <= 0) throw new XiboApiException('Expecting a single record, found ' . count($response)); return clone $this->hydrate($response[0]); } /** * Create * @param $name * @param $description * @param $startTime * @param $endTime * @param $exceptionDays * @param $exceptionStartTimes * @param $exceptionEndTimes * @return XiboDaypart */ public function create($name, $description, $startTime, $endTime, $exceptionDays, $exceptionStartTimes, $exceptionEndTimes) { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->name = $name; $this->description = $description; $this->startTime = $startTime; $this->endTime = $endTime; $this->exceptionDays = $exceptionDays; $this->exceptionStartTimes = $exceptionStartTimes; $this->exceptionEndTimes = $exceptionEndTimes; $response = $this->doPost('/daypart', $this->toArray()); return $this->hydrate($response); } /** * Delete * @return bool */ public function delete() { $this->doDelete('/daypart/' . $this->dayPartId); return true; } }