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

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides Admin TASK management
*
* @package lnApp
* @subpackage Page/Task
* @category Controllers
* @author Deon George
* @copyright (c) 2010 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Controller_Admin_Task extends Controller_TemplateDefault_Admin {
protected $secure_actions = array(
'listlog'=>TRUE,
);
/**
* Show a list of tasks run
*/
public function action_listlog() {
Block::add(array(
'title'=>_('Task Log'),
'body'=>Table::display(
2012-11-09 23:13:57 +00:00
ORM::factory('Task_Log')->order_by('id','DESC')->find_all(),
25,
array(
'id'=>array('label'=>'ID','url'=>'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,
)),
));
}
}
?>