| Server IP : 87.98.154.146 / Your IP : 216.73.216.165 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/shortpixel-image-optimiser/class/Model/ |
Upload File : |
<?php
namespace ShortPixel\Model;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use ShortPixel\Controller\ResponseController as ResponseController;
class ResponseModel
{
// Identification for Item.
public $item_id;
public $item_type; // set by queue
// General item variables
public $fileName;
public $is_error;
public $is_done;
public $apiStatus;
public $fileStatus;
// Images being processed variables. From APIController
public $tries;
public $images_done;
public $images_waiting;
public $images_total;
public $issue_type; // Optional - if there is any issue to report.
public $message; // This can be base text, but decision textually is within responsecontroller.
public $action; // Custom Operations use this ( i.e. migrate )
// public $queueName;
/**
*
* @param $item_id int The attachment_id of the item in process
* @param $item_type string item type: media or custom.
*
**/
public function __construct($item_id, $item_type)
{
$this->item_id = $item_id;
$this->item_type = $item_type; // media or custum
}
}