41 lines
952 B
PHP
41 lines
952 B
PHP
<?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
|
|
*/
|
|
class Controller_Admin_Task extends Controller_Task {
|
|
protected $auth_required = TRUE;
|
|
|
|
protected $secure_actions = array(
|
|
'log'=>TRUE,
|
|
);
|
|
|
|
/**
|
|
* Show a list of tasks run
|
|
*/
|
|
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,
|
|
)));
|
|
}
|
|
}
|
|
?>
|