| Server IP : 87.229.120.60 / Your IP : 216.73.216.245 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/plugins/elementor/core/base/elements-iteration-actions/ |
Upload File : |
<?php
namespace Elementor\Core\Base\Elements_Iteration_Actions;
use Elementor\Element_Base;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
abstract class Base {
/**
* The current document that the Base class instance was created from.
*/
protected $document;
/**
* Indicates if the methods are being triggered on page save or at render time (value will be either 'save' or 'render').
*
* @var string
*/
protected $mode = '';
/**
* Is Action Needed.
*
* Runs only at runtime and used as a flag to determine if all methods should run on page render.
* If returns false, all methods will run only on page save.
* If returns true, all methods will run on both page render and on save.
*
* @since 3.3.0
* @access public
*
* @return bool
*/
abstract public function is_action_needed();
/**
* Unique Element Action.
*
* Will be triggered for each unique page element - section / column / widget unique type (heading, icon etc.).
*
* @since 3.3.0
* @access public
*
* @return void
*/
public function unique_element_action( Element_Base $element_data ) {}
/**
* Element Action.
*
* Will be triggered for each page element - section / column / widget.
*
* @since 3.3.0
* @access public
*
* @return void
*/
public function element_action( Element_Base $element_data ) {}
/**
* After Elements Iteration.
*
* Will be triggered after all page elements iteration has ended.
*
* @since 3.3.0
* @access public
*
* @return void
*/
public function after_elements_iteration() {}
public function set_mode( $mode ) {
$this->mode = $mode;
}
public function __construct( $document ) {
$this->document = $document;
}
}