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:
@@ -26,11 +26,15 @@
|
||||
|
||||
class registrations {
|
||||
|
||||
/**
|
||||
* declare constant variables
|
||||
*/
|
||||
const app_name = 'registrations';
|
||||
const app_uuid = '5d9e7cd7-629e-3553-4cf5-f26e39fefa39';
|
||||
|
||||
/**
|
||||
* declare private variables
|
||||
*/
|
||||
private $app_name;
|
||||
private $app_uuid;
|
||||
private $permission_prefix;
|
||||
private $list_page;
|
||||
public $show;
|
||||
@@ -81,8 +85,6 @@
|
||||
}
|
||||
|
||||
//assign private variables
|
||||
$this->app_name = 'registrations';
|
||||
$this->app_uuid = '5d9e7cd7-629e-3553-4cf5-f26e39fefa39';
|
||||
$this->permission_prefix = 'registration_';
|
||||
$this->list_page = 'registrations.php';
|
||||
$this->show = 'local';
|
||||
|
||||
Reference in New Issue
Block a user