HEX
Server: Apache
System: Linux host60.registrar-servers.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: wwwrenee (3804)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/wwwrenee/public_html/wp-content/plugins/insta-gallery/includes/models/QLIGG_Model.php
<?php

class QLIGG_Model {

  private $cache = array();
  protected $table = null;

  function save_all($data = null) {

    if (!$this->table) {
      error_log('Model can\'t be accesed directly');
      die();
    }

    $this->cache[$this->table] = $data;

    return update_option($this->table, $data);
  }

  function get_all() {

    if (!$this->table) {
      error_log('Model can\'t be accesed directly');
      die();
    }

    if (!isset($this->cache[$this->table])) {
      $this->cache[$this->table] = get_option($this->table, $this->get_defaults());
    }

    return $this->cache[$this->table];
  }

}