1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-06 12:56:56 +01:00
openstamanager/modules/stati_contratto/api/v1/StatiContratti.php

29 lines
539 B
PHP
Raw Normal View History

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