1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-20 20:25:17 +01:00
openstamanager/modules/stati_intervento/api/v1/StatiInterventi.php
2019-07-19 16:51:52 +02:00

30 lines
583 B
PHP

<?php
namespace Modules\StatiIntervento\API\v1;
use API\Interfaces\RetrieveInterface;
use API\Resource;
class StatiInterventi extends Resource implements RetrieveInterface
{
public function retrieve($request)
{
$table = 'in_statiintervento';
$select = [
'*',
'id' => 'idstatointervento',
];
$where = $request['where'];
if (empty($where['deleted_at'])) {
$where['deleted_at'] = null;
}
return [
'select' => $select,
'table' => $table,
];
}
}