PluginProbe
Elementor Website Builder – more than just a page builder / 4.2.1
Elementor Website Builder – more than just a page builder v4.2.1
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 / data / v2 / base / processor.php

processor.php in Elementor Website Builder – more than just a page builder 4.2.1, at data/v2/base/processor.php

39 lines 872 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Data\V2\Base;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly.
6 }
7
8 /**
9 * Processor is just typically HOOK, who called before or after a command runs.
10 * It exist to simulate frontend ($e.data) like mechanism with commands and hooks, since each
11 * controller or endpoint is reachable via command (get_format).
12 * The `Elementor\Data\V2\Manager::run` is able to run them with the ability to reach the endpoint.
13 */
14 abstract class Processor {
15
16 /**
17 * Controller.
18 *
19 * @var \Elementor\Data\V2\Base\Controller
20 */
21 private $controller;
22
23 /**
24 * Get processor command.
25 *
26 * @return string
27 */
28 abstract public function get_command();
29
30 /**
31 * Processor constructor.
32 *
33 * @param \Elementor\Data\V2\Base\Controller $controller
34 */
35 public function __construct( $controller ) {
36 $this->controller = $controller;
37 }
38 }
39