mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-12 01:20:36 +01:00
29 lines
548 B
PHP
29 lines
548 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\StatiIntervento\API\v1;
|
||
|
|
||
|
use API\Interfaces\RetrieveInterface;
|
||
|
|
||
|
class StatiInterventi 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,
|
||
|
];
|
||
|
}
|
||
|
}
|