GRAYBYTE WORDPRESS FILE MANAGER8129

Server IP : 162.213.255.40 / Your IP : 216.73.216.6
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/optinmonster/OMAPI/Rules/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/optinmonster/OMAPI/Rules//Base.php
<?php
/**
 * Rules Base class.
 *
 * @since 2.13.0
 *
 * @package OMAPI
 * @author  Jutin Sternberg
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * OMAPI_Rules_Base class.
 *
 * @since 2.13.0
 */
abstract class OMAPI_Rules_Base {

	/**
	 * Holds the meta fields used for checking output statuses.
	 *
	 * @since 2.13.0
	 *
	 * @var array
	 */
	protected $fields = array();

	/**
	 * Holds the main Rules class instance.
	 *
	 * @since 2.13.0
	 *
	 * @var OMAPI_Rules
	 */
	public $rules;

	/**
	 * Initiates hooks
	 *
	 * @since 2.13.0
	 */
	public function init_hooks() {
		add_filter( 'optin_monster_api_output_fields', array( $this, 'merge_fields' ), 9 );
		add_action( 'optinmonster_campaign_should_output_plugin_checks', array( $this, 'set_rules_and_run_checks' ), 9 );
	}

	/**
	 * Getter for fields property
	 *
	 * @since 2.13.0
	 *
	 * @return array
	 */
	public function get_fields() {
		return $this->fields;
	}

	/**
	 * Merge fields array with the fields for this rules object.
	 *
	 * @since 2.13.0
	 *
	 * @param  array $fields The meta fields used for checking output statuses.
	 *
	 * @return array
	 */
	public function merge_fields( $fields = array() ) {
		return array_merge( $fields, $this->get_fields() );
	}

	/**
	 * Sets the rules object, then runs rule checks.
	 *
	 * @since 2.13.0
	 *
	 * @param  OMAPI_Rules $rules The OMAPI_Rules object.
	 *
	 * @throws OMAPI_Rules_False|OMAPI_Rules_True
	 * @return void
	 */
	public function set_rules_and_run_checks( $rules ) {
		$this->rules = $rules;
		$this->run_checks();
	}

	/**
	 * Runs rule checks.
	 *
	 * @since 2.13.0
	 *
	 * @throws OMAPI_Rules_False|OMAPI_Rules_True
	 * @return void
	 */
	abstract public function run_checks();
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 15:03:58
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:29
hellrfbn / hellrfbn
0644
Base.php
1.706 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
Exception.php
1.682 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
False.php
0.319 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
True.php
0.315 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF