芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/apv.mgaplay.com.br/vendor/xibosignage/oauth2-xibo-cms/src/Entity/XiboDataSetRow.php
dataSetId = $dataSetId; $response = $this->doGet('/dataset/data/'. $this->dataSetId, [ 'rowId' => $id ]); if (count($response) <= 0) throw new XiboApiException('Expecting a single record, found ' . count($response)); return $response[0]; } /** * Create Row * @param $rowData * @param $dataSetId * @param $columnId * @return XiboDataSetRow */ public function create($dataSetId, $columnId, $rowData) { $this->dataSetId = $dataSetId; $this->userId = $this->getEntityProvider()->getMe()->getId(); $response = $this->doPost('/dataset/data/'. $this->dataSetId, [ 'dataSetColumnId_' . $columnId => $rowData ]); return $response; } /** * Edit Row * @param $rowData * @param $dataSetId * @param $columnId * @return XiboDataSetRow */ public function edit($dataSetId, $columnId, $rowData) { $this->dataSetId = $dataSetId; $this->userId = $this->getEntityProvider()->getMe()->getId(); $response = $this->doPut('/dataset/data/'. $this->dataSetId . $this->rowId, [ 'dataSetColumnId_' . $columnId => $rowData ]); return $response; } /** * Delete Row * @return bool */ public function delete() { $this->doDelete('/dataset/data/' . $this->dataSetId . $this->rowId); return true; } }