芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/apv.mgaplay.com.br/vendor/xibosignage/oauth2-xibo-cms/src/Entity/XiboRegion.php
userId = $this->getEntityProvider()->getMe()->getId(); $this->width = $width; $this->height = $height; $this->top = $top; $this->left = $left; $this->layoutId = $layoutId; // Array response from CMS $response = $this->doPost('/region/' . $this->layoutId, $this->toArray()); // Hydrate the Region object $region = $this->hydrate($response); // Response Array from the CMS will contain a playlists entry, which holds the attributes for // each Playlist. foreach ($response['playlists'] as $item) { $playlist = new XiboPlaylist($this->getEntityProvider()); // Hydrate the Playlist object with the items from region->playlists $playlist->hydrate($item); // Add to parent object $region->playlists[] = $playlist; } return $region; } /** * Edit Region * @param $width * @param $height * @param $top * @param $left * @param $zindex * @param $loop * @return XiboRegion */ public function edit($width, $height, $top, $left, $zindex, $loop) { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->width = $width; $this->height = $height; $this->top = $top; $this->left = $left; $this->zIndex = $zindex; $this->loop = $loop; $response = $this->doPut('/region/' . $this->regionId, $this->toArray()); return $this->hydrate($response); } /** * Delete Region * @return bool */ public function delete() { $this->doDelete('/region/' . $this->regionId); return true; } }