This commit is contained in:
proelements
2025-11-13 15:18:34 +02:00
commit 9ac2bf2aa0
1178 changed files with 296944 additions and 0 deletions

13
data/base/controller.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
namespace ElementorPro\Data\Base;
use Elementor\Data\Base\Controller as Controller_Base;
abstract class Controller extends Controller_Base {
public function __construct() {
parent::__construct();
$this->namespace = 'elementor-pro/v1';
}
}

23
data/http-status.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
namespace ElementorPro\Data;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// TODO: Move to core.
class Http_Status {
// Successful responses
const OK = 200;
const CREATED = 201;
const NO_CONTENT = 204;
// Client error responses
const BAD_REQUEST = 400;
const UNAUTHORIZED = 401;
const FORBIDDEN = 403;
const NOT_FOUND = 404;
// Server error responses
const INTERNAL_SERVER_ERROR = 500;
}