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.
phptsmadmin/includes/kohana/modules/minion/classes/Task/Help.php

29 lines
615 B
PHP
Raw Normal View History

2012-11-22 03:25:06 +00:00
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Help task to display general instructons and list all tasks
*
* @package Kohana
* @category Helpers
* @author Kohana Team
* @copyright (c) 2009-2011 Kohana Team
* @license http://kohanaframework.org/license
*/
class Task_Help extends Minion_Task
{
/**
* Generates a help list for all tasks
*
* @return null
*/
protected function _execute(array $params)
{
$tasks = $this->_compile_task_list(Kohana::list_files('classes/Task'));
$view = new View('minion/help/list');
$view->tasks = $tasks;
echo $view;
}
}