| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php if ( ! defined( 'ABSPATH' ) ) exit;
- /**
- * Class NF_Abstracts_Batch_Process
- */
- abstract class NF_Abstracts_BatchProcess
- {
- /**
- * Constructor
- */
- public function __construct( $data = array() )
- {
- //Bail if we aren't in the admin.
- if ( ! is_admin() )
- return false;
- }
- /**
- * Function to loop over the batch.
- */
- public function process()
- {
- /**
- * This function intentionlly left empty.
- */
- }
- /**
- * Function to run any setup steps necessary to begin processing.
- */
- public function startup()
- {
- /**
- * This function intentionally left empty.
- */
- }
- /**
- * Function to cleanup any lingering temporary elements of a batch process after completion.
- */
- public function cleanup()
- {
- /**
- * This function intentionally left empty.
- */
- }
- }
|