Files
giacomo 21bf9acf48 Add "Identificativo DB" field to Log Licenze functionality
Added support for the "Identificativo DB" field across Log Licenze views, controller actions, and database operations. Updated UI elements, including table headers, rows, and search filters, to display and manage the new field.
2026-04-23 08:55:44 +02:00

53 lines
1.2 KiB
PHP

<?php
class V1_LicenzeController extends App_Controller_Rest_Controller
{
public function init()
{
$this->_resourceName = 'Licenze';
parent::init();
}
public function deleteAction()
{
$this->disableCallAction();
}
//-----------------------------------------------
public function switchMethodFunction($method)
{
switch ($method) {
default:
$this->defaultGetList();
break;
}
}
public function afterInsertElement($data)
{
// Inserimento record di Log
$this->inserimentoRecordDiLog($data, 'Inserimento dati licenza');
return $data;
}
public function afterUpdateElement($data)
{
$this->inserimentoRecordDiLog($data, 'Inserimento dati licenza');
return $data;
}
private function inserimentoRecordDiLog($data, $op)
{
$this->_genericModel->insert('LogLicenze', [
'Descrizione' => $op,
'IdentificativoPC' => $data['IdentificativoPC'],
'IdentificativoDB' => $data['IdentificativoDB'],
'PartitaIva' => $data['PartitaIva'],
'CodiceFiscale' => $data['CodiceFiscale']
]);
}
}//END CLASS