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