Define app_name and app_uuid as constants (#7534)

* Set a constant on each class for app_name and app_uuid
* Update the database class to use the app_uuid and app_name
* Update the classes to use the database::new()
* Remove the instances of 'new database'
This commit is contained in:
FusionPBX
2025-09-30 21:37:09 -06:00
committed by GitHub
parent 6485b18822
commit 2fe8b65988
69 changed files with 2571 additions and 2809 deletions

View File

@@ -31,12 +31,14 @@
class email {
/**
* declare the variables
*/
private $app_name;
private $app_uuid;
private $name;
* declare constant variables
*/
const app_name = 'email';
const app_uuid = '7a4fef67-5bf8-436a-ae25-7e3c03afcf96';
/**
* declare public variables
*/
public $domain_uuid;
public $method;
public $recipients;
@@ -50,6 +52,11 @@
public $read_confirmation;
public $error;
public $response;
/**
* declare private variables
*/
private $name;
private $settings;
/**
@@ -57,9 +64,7 @@
*/
public function __construct($params = []) {
//assign the variables
$this->app_name = 'email';
$this->name = 'email';
$this->app_uuid = '7a4fef67-5bf8-436a-ae25-7e3c03afcf96';
$this->priority = 0;
$this->debug_level = 3;
$this->read_confirmation = false;