| Server IP : 89.108.64.180 / Your IP : 216.73.217.95 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dom-schastya.ru/wp-content/plugins/elementor-extras/base/ |
Upload File : |
<?php
namespace ElementorExtras\Base;
// Extras for Elementor Classes
use ElementorExtras\Utils;
// Elementor Classes
use Elementor\Controls_Manager;
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* \Base\Condition
*
* @since 2.2.0
*/
abstract class Condition {
/**
* @var Module_Base
*/
protected static $_instances = [];
protected $element_id;
/**
* Return the current module class name
*
* @access public
* @since 1.6.0
*
* @eturn string
*/
public static function class_name() {
return get_called_class();
}
/**
* @return static
*/
public static function instance() {
if ( empty( static::$_instances[ static::class_name() ] ) ) {
static::$_instances[ static::class_name() ] = new static();
}
return static::$_instances[ static::class_name() ];
}
/**
* Checks if current condition is supported
* Defaults to true
*
* @since 2.2.0
* @return string
*/
public static function is_supported() {
return true;
}
/**
* Get Group
*
* Get the group of the condition
*
* @since 2.2.0
* @return string
*/
public function get_group() {}
/**
* Get Name
*
* Get the name of the module
*
* @since 2.2.0
* @return string
*/
public function get_name() {}
/**
* Get Name
*
* Get the title of the module
*
* @since 2.2.0
* @return string
*/
public function get_title() {}
/**
* Get Default Value
*
* Get the default value of the value control
*
* @since 2.2.0
* @return string
*/
public function get_name_control() { return false; }
/**
* Get Default Value
*
* Get the default value of the value control
*
* @since 2.2.0
* @return string
*/
public function get_value_control() {}
/**
* Check user login status
*
* @since 2.0.0
*
* @access protected
*
* @param mixed $name The control name to check
* @param mixed $value The control value to check
* @param string $operator Comparison operator.
*/
public function check( $name = null, $operator, $value ) {}
/**
* Compare conditions.
*
* Calls compare method
*
* @since 2.2.0
* @access public
* @static
*
* @param mixed $left_value First value to compare.
* @param mixed $right_value Second value to compare.
* @param string $operator Comparison operator.
*
* @return bool
*/
public function compare( $left_value, $right_value, $operator ) {
return Utils::compare( $left_value, $right_value, $operator );
}
/**
* Set Condition Element ID
*
* Set the element ID for this condition
*
* @since 2.2.27
* @return string
*/
public function set_element_id( $id ) {
$this->element_id = $id;
}
/**
* Get Condition Element ID
*
* Returns the previously set element id
*
* @since 2.2.27
* @return string
*/
protected function get_element_id() {
return $this->element_id;
}
}