| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/AJAX/ |
Upload File : |
<?php
namespace IAWP\AJAX;
use IAWP\Illuminate_Builder;
use IAWP\Query;
use IAWP\Report_Options_Parser;
/** @internal */
class Save_Report extends \IAWP\AJAX\AJAX
{
/**
* @return array
*/
protected function action_required_fields() : array
{
return ['id'];
}
/**
* @return string
*/
protected function action_name() : string
{
return 'iawp_save_report';
}
/**
* @return void
*/
protected function action_callback() : void
{
$reports_table = Query::get_table_name(Query::REPORTS);
$report_options_parser = Report_Options_Parser::from_json($_POST['changes']);
if (\count($report_options_parser->get_options_for_updating()) > 0) {
Illuminate_Builder::new()->from($reports_table)->where('report_id', '=', $this->get_field('id'))->update($report_options_parser->get_options_for_updating());
}
}
}