Add category and get_category method
This commit is contained in:
@@ -10,6 +10,7 @@ class email_queue {
|
||||
*/
|
||||
const app_name = 'email_queue';
|
||||
const app_uuid = '5befdf60-a242-445f-91b3-2e9ee3e0ddf7';
|
||||
const app_category = 'queue';
|
||||
|
||||
/**
|
||||
* Set in the constructor. Must be a database object and cannot be null.
|
||||
@@ -77,6 +78,15 @@ class email_queue {
|
||||
$this->location = 'email_queue.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the category of this class.
|
||||
*
|
||||
* @return string The constant category value.
|
||||
*/
|
||||
public static function get_category(): string {
|
||||
return self::app_category;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes one or more records.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user