2019-07-19 15:23:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\StatiIntervento\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 StatiInterventi extends Resource implements RetrieveInterface
|
2019-07-19 15:23:00 +02:00
|
|
|
{
|
|
|
|
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,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|