mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
cd815acdbf
- Added new config entry job_type_permissions_white_list in jqm.php - Added new navigation entry jobsqueueviewer - Added new model application/models/system/JobsQueue_model.php - Added new option in FilterWidget for hours comparison with dates - Added new filter core-jq-lastHour to system/filtersupdate.php - Added new statements to system/dbupdate_3.3.php to create tables system.tbl_jobstatuses, system.tbl_jobtypes and system.tbl_jobstatuses - Added new views application/views/system/jq/jobsQueueViewer.php and application/views/system/jq/jobsQueueViewerData.php
63 lines
1.1 KiB
PHP
63 lines
1.1 KiB
PHP
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Library that contains all the needed functionalities to operate with the Jobs Queue System
|
|
*/
|
|
class JobsQueueLib
|
|
{
|
|
// Job types
|
|
// SAP
|
|
const JOB_TYPE_SAP_STAMMDATEN_UPDATE = 'SAPStammdatenUpdate';
|
|
const JOB_TYPE_SAP_PAYMENT = 'SAPPayment';
|
|
// DVUH
|
|
const JOB_TYPE_OEH_PAYMENT = 'OEHPayment';
|
|
|
|
// Job statuses
|
|
const STATUS_NEW = 'new';
|
|
const STATUS_RUNNING = 'running';
|
|
const STATUS_DONE = 'done';
|
|
const STATUS_FAILED = 'failed';
|
|
|
|
// Parameter names
|
|
const PARAM_JOB_TYPE = 'type';
|
|
const PARAM_JOB_STATUS = 'status';
|
|
const PARAM_JOBS = 'jobs';
|
|
|
|
private $_ci; // CI instance
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct($authenticate = true)
|
|
{
|
|
// Gets CI instance
|
|
$this->_ci =& get_instance();
|
|
}
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
// Public methods
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function getJobsByType()
|
|
{
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function addNewJobsToQueue()
|
|
{
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function getJobsByStatus()
|
|
{
|
|
}
|
|
}
|