mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-07 21:32:22 +01:00
28 lines
504 B
PHP
28 lines
504 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\StatiContratto\API\v1;
|
||
|
|
||
|
use API\Interfaces\RetrieveInterface;
|
||
|
|
||
|
class StatiContratti implements RetrieveInterface
|
||
|
{
|
||
|
public function retrieve($request)
|
||
|
{
|
||
|
$table = 'co_staticontratti';
|
||
|
|
||
|
$select = [
|
||
|
'*',
|
||
|
];
|
||
|
|
||
|
$where = $request['where'];
|
||
|
if (empty($where['deleted_at'])) {
|
||
|
$where['deleted_at'] = null;
|
||
|
}
|
||
|
|
||
|
return [
|
||
|
'select' => $select,
|
||
|
'table' => $table,
|
||
|
];
|
||
|
}
|
||
|
}
|