acf-boolean.php
3 years ago
acf-choice.php
3 years ago
acf-text.php
3 years ago
browser.php
3 years ago
condition.php
3 years ago
date-range.php
3 years ago
date.php
3 years ago
day.php
3 years ago
device.php
3 years ago
ip-location.php
3 years ago
lang.php
3 years ago
login-status.php
3 years ago
operating-system.php
3 years ago
page.php
3 years ago
post-type.php
3 years ago
post.php
3 years ago
return-visitor.php
3 years ago
shortcode.php
3 years ago
static-page.php
3 years ago
time-range.php
3 years ago
url-referer.php
3 years ago
url-string.php
3 years ago
user-role.php
3 years ago
woo-cart-products.php
3 years ago
woo-cat-page.php
3 years ago
woo-category.php
3 years ago
woo-last-purchase.php
3 years ago
woo-orders.php
3 years ago
woo-product-cat.php
3 years ago
woo-product-price.php
3 years ago
woo-product-stock.php
3 years ago
woo-total-price.php
3 years ago
condition.php
59 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 | * Compare Condition Value. |
| 44 | * |
| 45 | * @access public |
| 46 | * @since 4.7.0 |
| 47 | * |
| 48 | * @param array $settings element settings. |
| 49 | * @param string $operator condition operator. |
| 50 | * @param string $value condition value. |
| 51 | * @param string|bool $tz time zone. |
| 52 | * @param string $method location detect method. |
| 53 | * |
| 54 | * @return bool|void |
| 55 | */ |
| 56 | public function compare_location( $settings, $operator, $value, $compare_val, $tz, $method ) {} |
| 57 | |
| 58 | } |
| 59 |