HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/wp-content/plugins/backwpup/inc/class-jobtypes.php
<?php

abstract class BackWPup_JobTypes {

	/**
	 * The type of job for files only backup.
	 *
	 * @var array
	 */
	public static $type_job_files = [ 'FILE', 'WPPLUGIN' ];

	/**
	 * The type of job for database only backup.
	 *
	 * @var array
	 */
	public static $type_job_database = [ 'DBDUMP' ];

	/**
	 * The type of job for both files and database backup.
	 *
	 * @var array
	 */
	public static $type_job_both = [ 'FILE', 'DBDUMP', 'WPPLUGIN' ];

	/**
	 * The name of the job type for file backups.
	 *
	 * @var string
	 */
	public static $name_job_files = 'Files';

	/**
	 * The name of the job type for database backup.
	 *
	 * @var string
	 */
	public static $name_job_database = 'Database';

	/**
	 *  The name of the job type that includes both files and database backup.
	 *
	 * @var string
	 */
	public static $name_job_both = 'Files & Database';

	/**
	 * The info of job type.
	 *
	 * @var array
	 */
	public $info = [];

    abstract public function __construct();

    /**
     * Get the default Options.
     *
     * @return array of default options
     */
    abstract public function option_defaults();

    /**
     * @param $jobid
     */
    abstract public function edit_tab($jobid);

    /**
     * @param $jobid
     */
    abstract public function edit_form_post_save($jobid);

    /**
     * use wp_enqueue_script() here to load js for tab.
     */
    public function admin_print_scripts()
    {
    }

    public function edit_inline_js()
    {
    }

    public function edit_ajax()
    {
    }

    public function admin_print_styles()
    {
    }

    /**
     * @return bool
     */
    public function creates_file()
    {
        return false;
    }

    /**
     * @param $job_object BackWPup_Job Object
     *
     * @return bool
     */
    abstract public function job_run(BackWPup_Job $job_object);
}