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
952 B
PHP
Raw Normal View History

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides Admin TASK management
*
2013-03-19 22:35:19 +00:00
* @package Task
* @category Controllers/Admin
* @author Deon George
2013-03-19 22:35:19 +00:00
* @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;
protected $secure_actions = array(
2013-05-02 09:52:19 +00:00
'log'=>TRUE,
);
/**
* Show a list of tasks run
*/
2013-05-02 09:52:19 +00:00
public function action_log() {
Block::factory()
->title(_('Task Log'))
->body(Table::display(
ORM::factory('Task_Log')->find_all(),
25,
array(
'id'=>array('label'=>'ID','url'=>URL::link('admin','task/view/')),
'date_orig'=>array('label'=>'Date'),
'task->display("name")'=>array('label'=>'Task'),
'result'=>array('label'=>'Result'),
'message'=>array('label'=>'Message'),
),
array(
'page'=>TRUE,
2013-05-02 09:52:19 +00:00
)));
}
}
?>