acf-boolean.php
4 years ago
acf-choice.php
4 years ago
acf-text.php
4 years ago
browser.php
4 years ago
condition.php
4 years ago
date-range.php
4 years ago
date.php
4 years ago
day.php
4 years ago
device.php
4 years ago
ip-location.php
4 years ago
lang.php
4 years ago
login-status.php
4 years ago
operating-system.php
4 years ago
page.php
4 years ago
post-type.php
4 years ago
post.php
4 years ago
time-range.php
4 years ago
url-referer.php
4 years ago
user-role.php
4 years ago
woo-cat-page.php
4 years ago
woo-category.php
4 years ago
woo-last-purchase.php
4 years ago
woo-orders.php
4 years ago
woo-product-cat.php
4 years ago
woo-product-price.php
4 years ago
woo-product-stock.php
4 years ago
woo-total-price.php
4 years ago
condition.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Condition blueprint for all available conditions. |
| 4 | */ |
| 5 | |
| 6 | namespace PremiumAddons\Includes\PA_Display_Conditions\Conditions; |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; // Exit if accessed directly. |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Abstract Class Condition. |
| 14 | */ |
| 15 | abstract class Condition { |
| 16 | |
| 17 | /** |
| 18 | * Get Controls Options. |
| 19 | * |
| 20 | * @access public |
| 21 | * @since 4.7.0 |
| 22 | * |
| 23 | * @return array|void controls options |
| 24 | */ |
| 25 | public function get_control_options() {} |
| 26 | |
| 27 | /** |
| 28 | * Compare Condition Value. |
| 29 | * |
| 30 | * @access public |
| 31 | * @since 4.7.0 |
| 32 | * |
| 33 | * @param array $settings element settings. |
| 34 | * @param string $operator condition operator. |
| 35 | * @param string $value condition value. |
| 36 | * @param string|bool $tz time zone. |
| 37 | * |
| 38 | * @return bool|void |
| 39 | */ |
| 40 | public function compare_value( $settings, $operator, $value, $compare_val, $tz ) {} |
| 41 | |
| 42 | } |
| 43 |