mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
39 lines
615 B
PHP
39 lines
615 B
PHP
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class LRT extends Auth_Controller
|
|
{
|
|
|
|
/**
|
|
* Object initialization
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct(
|
|
array(
|
|
'getRunningLRTs' => self::PERM_LOGGED,
|
|
)
|
|
);
|
|
|
|
// Loads libraries
|
|
$this->load->library('LongRunTaskLib');
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function getRunningLRTs()
|
|
{
|
|
$runningLrtsResult = $this->longruntasklib->getRunningLRTsUser(getAuthUID());
|
|
|
|
if (isError($runningLrtsResult)) $this->terminateWithJsonError($runningLrtsResult);
|
|
|
|
$this->outputJson($runningLrtsResult);
|
|
}
|
|
}
|
|
|