PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / base / elements-iteration-actions / base.php

base.php in Elementor Website Builder – more than just a page builder 3.32.2, at core/base/elements-iteration-actions/base.php

83 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Core\Base\Elements_Iteration_Actions;
3
4 use Elementor\Element_Base;
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly.
8 }
9
10 abstract class Base {
11 /**
12 * The current document that the Base class instance was created from.
13 *
14 * @var \Elementor\Core\Document
15 */
16 protected $document;
17
18 /**
19 * Indicates if the methods are being triggered on page save or at render time (value will be either 'save' or 'render').
20 *
21 * @var string
22 */
23 protected $mode = '';
24
25 /**
26 * Is Action Needed.
27 *
28 * Runs only at runtime and used as a flag to determine if all methods should run on page render.
29 * If returns false, all methods will run only on page save.
30 * If returns true, all methods will run on both page render and on save.
31 *
32 * @since 3.3.0
33 * @access public
34 *
35 * @return bool
36 */
37 abstract public function is_action_needed();
38
39 /**
40 * Unique Element Action.
41 *
42 * Will be triggered for each unique page element - section / column / widget unique type (heading, icon etc.).
43 *
44 * @since 3.3.0
45 * @access public
46 *
47 * @return void
48 */
49 public function unique_element_action( Element_Base $element_data ) {}
50
51 /**
52 * Element Action.
53 *
54 * Will be triggered for each page element - section / column / widget.
55 *
56 * @since 3.3.0
57 * @access public
58 *
59 * @return void
60 */
61 public function element_action( Element_Base $element_data ) {}
62
63 /**
64 * After Elements Iteration.
65 *
66 * Will be triggered after all page elements iteration has ended.
67 *
68 * @since 3.3.0
69 * @access public
70 *
71 * @return void
72 */
73 public function after_elements_iteration() {}
74
75 public function set_mode( $mode ) {
76 $this->mode = $mode;
77 }
78
79 public function __construct( $document ) {
80 $this->document = $document;
81 }
82 }
83