Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/elementor/data/v2/base/processor.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
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
+