����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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();
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Base.php | File | 1.71 KB | 0644 |
|
| Exception.php | File | 1.68 KB | 0644 |
|
| False.php | File | 327 B | 0644 |
|
| True.php | File | 323 B | 0644 |
|