openstamanager/modules/stati_preventivo/src/API/v1/StatiPreventivi.php

29 lines
542 B
PHP
Raw Normal View History

2019-07-19 15:23:00 +02:00
<?php
namespace Modules\StatiPreventivo\API\v1;
use API\Interfaces\RetrieveInterface;
2019-07-19 16:51:52 +02:00
use API\Resource;
2019-07-19 15:23:00 +02:00
2019-07-19 16:51:52 +02:00
class StatiPreventivi extends Resource implements RetrieveInterface
2019-07-19 15:23:00 +02:00
{
public function retrieve($request)
{
$table = 'co_statipreventivi';
$select = [
'*',
];
$where = $request['where'];
if (empty($where['deleted_at'])) {
$where['deleted_at'] = null;
}
return [
'select' => $select,
'table' => $table,
];
}
}