Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-content/plugins/reviewx/app/Api/CategoryApi.php
Назад
<?php namespace Rvx\Api; use Rvx\Apiz\Http\Response; class CategoryApi extends \Rvx\Api\BaseApi { /** * @param $id * @return Response * @throws \Exception */ public function selectable() : Response { return $this->get('category/selectable'); } public function getCategory() : Response { return $this->get('categories'); } public function create(array $data) { return $this->withJson($data)->post('category'); } /** * @param $id * @return mixed * @throws \Exception */ public function remove($id) { \error_log("delete uid " . $id); return $this->delete('category/' . $id); } /** * @param array $data * @param $uid * @return Response * @throws \Exception */ public function update(array $data, $uid) : Response { return $this->withJson($data)->put('category/' . $uid . '/update'); } public function dataSync(array $data) { return $this->withJson($data)->post('sync/categories'); } }
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка