HEX
Server: Apache
System: Linux server 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64
User: losadagest (10000)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/aceitunaslosada.com/insta-gallery/includes/models/Setting.php
<?php

include_once 'QLIGG_Model.php';

class QLIGG_Setting extends QLIGG_Model
{

  protected $table = 'insta_gallery_settings';

  function get_args()
  {
    return array(
      'insta_flush' => 0,
      'insta_reset' => 8,
      'insta_spinner_image_id' => 666666
    );
  }

  function get_defaults()
  {
    return $this->get_args();
  }

  function get_settings()
  {
    return array_replace_recursive(
      $this->get_args(),
      $this->get_all()
    );
  }

  function save($settings)
  {
    wp_parse_args($settings, $this->get_settings());
    return update_option($this->table, $settings);
  }

  function save_settings($settings_data = null)
  {
    return $this->save_all($settings_data);
  }
}