This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/task/classes/Controller/Admin/Task.php

41 lines
893 B
PHP
Raw Permalink Normal View History

2013-10-10 02:44:53 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides Admin TASK management
*
* @package Task
* @category Controllers/Admin
* @author Deon George
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
*/
2013-05-02 09:52:19 +00:00
class Controller_Admin_Task extends Controller_Task {
protected $auth_required = TRUE;
2013-10-10 02:44:53 +00:00
protected $secure_actions = array(
2013-05-02 09:52:19 +00:00
'log'=>TRUE,
2013-10-10 02:44:53 +00:00
);
/**
* Show a list of tasks run
*/
2013-05-02 09:52:19 +00:00
public function action_log() {
2016-07-29 01:19:30 +00:00
$this->meta->title = 'Task Log';
2013-05-02 09:52:19 +00:00
Block::factory()
->title(_('Task Log'))
2016-07-29 01:19:30 +00:00
->title_icon('fa fa-list')
2013-10-10 01:13:29 +00:00
->body(Table::factory()
2013-11-28 06:41:34 +00:00
->page_items(50)
2013-10-10 01:13:29 +00:00
->data(ORM::factory('Task_Log')->find_all())
->columns(array(
'id'=>'ID',
'date_orig'=>'Date',
'task->display("name")'=>'Task',
'result'=>'Result',
'message'=>'Message',
2013-11-28 06:41:34 +00:00
)));
2013-10-10 02:44:53 +00:00
}
}
?>