Add category and get_category method
This commit is contained in:
@@ -34,6 +34,7 @@ class fax_queue {
|
||||
*/
|
||||
const app_name = 'fax_queue';
|
||||
const app_uuid = '3656287f-4b22-4cf1-91f6-00386bf488f4';
|
||||
const app_category = 'queue';
|
||||
|
||||
/**
|
||||
* Set in the constructor. Must be a database object and cannot be null.
|
||||
@@ -55,7 +56,6 @@ class fax_queue {
|
||||
*/
|
||||
private $name;
|
||||
private $table;
|
||||
private $category;
|
||||
private $toggle_field;
|
||||
private $toggle_values;
|
||||
private $location;
|
||||
@@ -78,12 +78,20 @@ class fax_queue {
|
||||
//assign the variables
|
||||
$this->name = 'fax_queue';
|
||||
$this->table = 'fax_queue';
|
||||
$this->category = 'queue';
|
||||
$this->toggle_field = '';
|
||||
$this->toggle_values = ['true', 'false'];
|
||||
$this->location = 'fax_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.
|
||||
*
|
||||
@@ -291,7 +299,6 @@ class fax_queue {
|
||||
|
||||
//copy the checked records
|
||||
if (is_array($records) && @sizeof($records) != 0) {
|
||||
|
||||
//get checked records
|
||||
foreach ($records as $record) {
|
||||
if ($record['checked'] == 'true' && is_uuid($record['fax_queue_uuid'])) {
|
||||
|
||||
Reference in New Issue
Block a user