| Server IP : 103.249.100.196 / Your IP : 216.73.217.122 Web Server : Apache System : Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64 User : dlsafepha ( 1078) PHP Version : 8.2.36 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home2/./dlsafepha/www/wp-content/plugins/popup-maker/classes/Interface/Batch/ |
Upload File : |
<?php
/**
* Interface for Batch Process
*
* @package PopupMaker
* @copyright Copyright (c) 2024, Code Atlantic LLC
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Base interface for registering a batch process.
*
* @since 1.7.0
*/
interface PUM_Interface_Batch_Process {
/**
* Determines if the current user can perform the current batch process.
*
* @return bool True if the current user has the needed capability, otherwise false.
*/
public function can_process();
/**
* Processes a single step (batch).
*
* @return int|string|WP_Error Next step number, 'done', or a WP_Error object.
*/
public function process_step();
/**
* Retrieves the calculated completion percentage.
*
* @return int Percentage completed.
*/
public function get_percentage_complete();
/**
* Retrieves a message based on the given message code.
*
* @param string $code Message code.
*
* @return string Message.
*/
public function get_message( $code );
/**
* Defines logic to execute once batch processing is complete.
*/
public function finish();
}