BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
wp-content
/
plugins
/
robin-image-optimizer
/
includes
/
classes
/
processing
📤 Upload
📝 New File
📁 New Folder
Close
Editing: class-rio-processing.php
<?php use WBCR\Factory_Processing_759\WP_Background_Process; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Класс для работы оптимизации в фоне * * @version 1.0 */ abstract class WRIO_Processing extends WP_Background_Process { /** * @var string */ protected $prefix = 'wrio'; /** * @var string */ protected $action = 'optimize_process'; /** * @var string */ public $scope; /** * Processing constructor. * * @param $scope */ public function __construct( $scope ) { $this->scope = $scope; $this->action = "{$this->action}_{$scope}"; parent::__construct(); } abstract public function push_items(); /** * Fire before start handle the tasks */ protected function handle_before() { WRIO_Plugin::app()->logger->info( 'START auto optimize process.' ); } /** * Fire after end handle the tasks */ protected function handle_after() { WRIO_Plugin::app()->logger->info( 'END auto optimize process.' ); } /** * Fire after complete handle * * @return void */ protected function handle_after_complete() { WRIO_Plugin::app()->updatePopulateOption( 'process_running', false ); } }
Save
Cancel