mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user