Help.php 547 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Help task to display general instructons and list all tasks
  4. *
  5. * @package Kohana
  6. * @category Helpers
  7. * @author Kohana Team
  8. * @copyright (c) Kohana Team
  9. * @license https://koseven.ga/LICENSE.md
  10. */
  11. class Task_Help extends Minion_Task {
  12. /**
  13. * Generates a help list for all tasks
  14. *
  15. * @return null
  16. */
  17. protected function _execute(array $params)
  18. {
  19. $tasks = $this->_compile_task_list(Kohana::list_files('classes/Task'));
  20. $view = new View('minion/help/list');
  21. $view->tasks = $tasks;
  22. echo $view;
  23. }
  24. }