mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-27 16:23:19 +01:00
29 lines
542 B
PHP
29 lines
542 B
PHP
<?php
|
|
|
|
namespace Modules\StatiPreventivo\API\v1;
|
|
|
|
use API\Interfaces\RetrieveInterface;
|
|
use API\Resource;
|
|
|
|
class StatiPreventivi extends Resource implements RetrieveInterface
|
|
{
|
|
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,
|
|
];
|
|
}
|
|
}
|